Show TOC

 Creating, Editing, and Deleting Enhancement ImplementationsLocate this document in the navigation structure

Use

The enhanceable development objects like ABAP programs, ABAP classes, ABAP interfaces, ABAP function modules, and WebDynpro components fulfill a certain task that can be enhanced. The corresponding enhancement options are defined implicit or explicit. BAdIs are explicit options which are not bound to other enhanceable objects.

These differences result in different processing steps for:

  • Enhanceable Development Objects
  • BAdIs
Enhanceable Development Objects

Enhanceable developments objects have implicit or explicit options.

There are following development objects that can be enhanced:

  • ABAP source code
  • ABAP classes
  • ABAP interfaces
  • ABAP function modules
  • WebDynpro components

Procedure

  1. Open the editor of the enhanceable development object.
  2. Switch to enhancement mode.

NOTE

The following processing steps depend on the position you are. So, the following table provides an overview of the available functionalities:

Enhanceable Development Object

ABAP function modules

Function Module Enhancements

ABAP classes and interfaces

Enhancements to Classes and Interfaces

Source Code Plugins

ABAP Source Code Enhancements

Web Dynro Component Elements

Enhancement Implementations for Web-Dynpro

NOTE

In order to delete an enhancement implementation, use the Delete button in transaction SE20, or locate the enhancement implementation in the SE80 object list. Choose Delete from the context menu.

NOTE

Deleting an enhancement implementation deletes all contained elements.

See below the same processing step for Deleting BAdIs

BAdIs

There are the following possibilities to create or edit BAdI implementations:

See general information in Business Add-Ins (BAdIs)

Procedure

  1. Start the Object Navigator (SE80).
  2. Open the package in which an enhancement implementation is defined or is to be created.
    If you want to Then Or Or
    Create a BAdI implementation
    1. In the Object Navigator, select the enhancement spot.
    2. In the context menu, choose Implement.
    3. Enter a name for the (simple) enhancement implementation.
    4. Enter a short text for the (simple) enhancement implementation.
    5. [Optional:] Select a composite enhancement implementation, or create a new one.
    6. Choose Creation of Enhancement.
    7. Confirm with Enter.
    1. Open the transaction code SE19.
    2. In the window Create Implementation, select the radio button New BAdI.
    3. Enter the name of the Enhancement Spot or select it via the Input Help window.
    4. Choose the button Create Impl.
    5. In the Input Value List, enter the name of the Enhancement Implementation.
    6. Enter a Short Text.
    7. Confirm the selection.
    1. Open the transaction code SE18.
    2. Enter the name of the Enhancement Spot or the BAdI Name.
    3. Press the button Display.
    4. In the list of the available BAdIs, select the corresponding one.
    5. In the context menu, select Create BAdI implementation.

    See more in How to Implement a BAdI .

    Display or edit an BAdI implementation
    1. Select the package and expand it.
    2. Expand the Enhancements node.
    3. Expand the Enhancement Implementations node.
    4. Select the desired enhancement implementation.
    5. Select Display or Change from the context menu.
    6. [Optional] If you only want to display the enhancement implementation, choose Display.
    1. Open the transaction code SE19.
    2. In the window Edit Implementation, select the radio-button New BAdI.
    3. Enter the name of the Enhancement Implementation.
    4. Choose the button Display or Change to work on an existing implementation.
    Delete a BAdI implementation
    1. Select the package and expand it.
    2. Expand the Enhancements node.
    3. Expand the Enhancement Implementations node.
    4. Select the desired enhancement implementation.
    5. Select Change from the context menu.
    6. Choose the BAdI implementation from the implementation list.
    7. In the context menu, choose Delete.
    Delete an enhancement implementation with all contained BAdI implementations 

    NOTE

    ABAP classes will remain after deletion. If you also want to delete the ABAP class, you have to delete them separately. 

    1. Select the package and expand it.
    2. Expand the Enhancements node.
    3. Expand the Enhancement Implementations node.
    4. Select the desired enhancement implementation.
    5. In the context menu, choose Delete.
    1. Open the transaction code SE19.
    2. In the window Edit Implementation, select the radio-button New BAdI.
    3. Enter the name of the Enhancement Implementation.
    4. In the toolbar, click the button Delete.
    5. In the Delete Enhancement Impl. window, confirm the selection.