Nested Enhancement Implementations
Nested Enhancement Implementations for Interfaces
In an interface, you can enhance an existing enhancement implementation with another enhancement implementation by:
- adding new attributes
- adding new types
- adding new (optional) parameters to a method belonging to an other enhancement implementation.
To create a nested enhancement implementation for an interface, proceed as follows:
- In the Class Builder, choose Interface → Enhance.
A screen containing the already existing enhancement implementations for the interface appears.
- Choose the enhancement implementation you want to enhance and press the Create nested enhancement button.
- Enter a name for the new enhancement implementation.
The relationship between the new enhancement implementation and the already existing implementation is visible in the Parent Enhancement column.
Nested Enhancement Implementations for Classes
In a class, you can enhance an existing enhancement implementation with another enhancement implementation by:
- adding new attributes
- adding new types
- adding new (optional) parameters to a method in the class which belongs to an other enhancement implementation.
- adding PRE/POST/OVERWRITE methods for a method belonging to an enhancement implementation.
To create a nested enhancement implementation for a class, proceed as follows:
- In the Class Builder, choose Class → Enhance.
A screen with the already existing enhancement implementations for the class appears.
- Choose the enhancement implementation you want to enhance and press the Create nested enhancement button.
- Enter a name for the new enhancement implementation.
The relationship between the new enhancement implementation and the already existing implementation is visible in the Parent Enhancement column.
- To create a method exit, position the cursor on the method belonging to the enhancement implementation you want to enhance and choose Edit → Enhancement Operations → Insert Pre-Method.
For more information, see SAP Note 1286805.