Creating Source Code Plug-Ins

Procedure

  1. Open the ABAP source with explicit or implicit enhancement options in the ABAP Editor.

    More information about how to create explicit enhancement options: Explicit Enhancement Options in ABAP Source Code.

  2. Switch to enhancement mode by using the Enhance pushbutton from the toolbar.
  3. Position your cursor on the explicit or implicit enhancement option and choose Enhancement Implementation   →Create Implementationfrom the context menu.

    The Select or Create Enhancement Implementation dialog box appears. You can choose an existing implementation or create a new one.

  4. If you choose to create a new enhancement implementation, an empty source code plug-in is automatically created. It has a unique ID and is displayed in the ABAP Editor below the enhancement option as follows:

    ENHANCEMENT id.

    ...

    ENDENHANCEMENT.

  5. Implement the enhancement between the ENHANCEMENT and ENDENHANCEMENT lines.

    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.