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
- To implement kernel BADI
No comments:
Post a Comment