adsense

Sunday, 16 June 2013

Function Group Enhancement



Function Group Enhancement
 
§          Function modules can be enhanced by adding parameters to the standard function module interface
      
§          The parameters must be ‘optional’ in nature, since if a mandatory parameter is added, then all calls will need to get altered 
 
§          From the menu, choose ‘Function module -> Enhance interface’ to add optional parameters to a function module
        
§         One thing to be noted, any function module that is part of the Central Basis cannot be enhanced (for example: function  module ‘REUSE_ALV_GRID_DISPLAY’) 
 
 
 
Class Enhancement 
§     The global Classes and Interfaces can be enhanced as follows:
Ø    Optional parameters can be added to existing Methods
Ø    New Methods can be added to the global Class / Interface
Ø    Pre-exit, Post-exit or Overwrite-exit can be added to an existing Method
       The Pre and Post exits get executed before and after invoking the respective method. An automatically generated local class stores all the methods.
Ø    To enhance a class, more specifically, to add new methods or parameters, menu path is  ‘Class -> Enhance’
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø      To add or delete the Pre/Post/Overwrite exit methods, menu option  is ‘Edit -> Enhancement operations’. 
 
 
 
Kernel-BADI Enhancement 
  •     An improvement in old classic-BADI
  •    Kernel-BADI is faster than old classic BADI 
   The old classic BADI’s definition and implementation are achieved at the ABAP workbench    level(global classes and interfaces ). The new Kernel-BADI takes it to the ABAP language level. 
  •    To implement kernel BADI 
   An Enhancement Spot is needed to hold the BADI definitions. Again the BADI implementations must also be assigned to Enhancement Implementations. The BADI definition and implementation editors are integrated  into SE80.
 
 
 
 
 
 
 

No comments:

Post a Comment