Use this procedure to implement enhancements (pre, post, and overwrite methods) of global classes or interfaces. In the context of the enhancement concept, a global class or global interface provides implicit enhancement options.
To implement an enhancement of global classes or interfaces, use the Class Builder to call the Enhancement Builder.
A dialog box appears.
This takes you to the enhancement mode of the Class Builder in which the original components of the class or interface are displayed and cannot be changed.
An overwrite-method cannot exist simultaneously with pre- or post-methods for the same method.
You can further use the new components for implicit and explicit enhancement options in enhancements to the source code of the class. This can be done via ABAP Source Code Enhancements.
Additional Information
When pre/post/overwrite methods are created, a local class named lcl_<enhancement_name> is generated for the enhancement <enhancement_name>. This local class is attached to the end of the local class implementation section in the original class (as an implementation of the predefined enhancement option).
You can access the components of the original class within lcl_<enhancement_name> by the object reference CORE_OBJECT.
The local class lcl_<enhancement_name> can implement three interfaces:
The parameters of pre/post/overwrite methods are similar to the parameters of the original method but the following restrictions exist: