You can create, change, replace and delete source code plug-ins in addition to edit an enhancement point in the original code. The code of an enhancement section is substituted by the respective source code plug-in.
Procedure
More information about how to create explicit enhancement options: Explicit Enhancement Options in ABAP Source Code .
To exit the enhance mode, choose the Display <-> Change pushbutton.
The Select or Create Enhancement Implementation dialog box appears. You can choose an existing implementation or create a new one.
ENHANCEMENT id.
...
ENDENHANCEMENT.
A source code plug-in is assigned to exactly one enhancement option (the container) but an enhancement option can be enhanced through several source code plug-ins.
Although source code plug-ins are displayed in the same source code as the respective enhancement options, they are stored in other include programs managed by the Enhancement Builder.
Procedure
To exit enhancement mode, choose Display <-> Change.
With this function, you can change all the elements that belong to the enhancement implementation. If you wish to change a different enhancement implementation, you must first switch to display mode.
Source code plug-ins are displayed in the same source code as the corresponding enhancement options, but they are stored in a different include managed by the Enhancement Builder.
You can replace existing enhancement implementations instead of changing them.
The Enhancement Framework is not supported by the Modification Assistant. For this reason, this procedure is the preferred one because it is not a modification.
Should the replaced implementation change - for example, due to a Support Package import, it could become necessary to change the replacement as well. The requirement to do this is displayed to you in transaction SPAU_ENH .
Procedure
To exit enhancement mode, choose Display <-> Change.
ENHANCEMENT id. "Replacing …
...
ENDENHANCEMENT.
In addition, a comment is entered in the implementation. From this comment you can see that this is a replacement action.
Source code plug-ins are displayed in the same source code as the corresponding enhancement options. However, they are stored in different include programs managed by the Enhancement Builder.
Procedure
To exit enhancement mode, choose Display <-> Change.