Show TOC

Creating and Changing Pre-Action EnhancementsLocate this document in the navigation structure

Context

Business Object Builder (BO Builder) provides you with a wizard for creating a pre-action enhancement.

Procedure

  1. Starting the Wizard
    Note

    You can assign pre-action enhancements only to the following types of actions:

    • Extensible actions that are created in the business object enhancement (enhancement) that is currently open

    • Extensible actions that are created in the base object of the enhancement

    Open the enhancement in which you want to create a pre-action enhancement.

    In the Node Browser navigation, choose the that contains the action you need to extend with a pre-action enhancement.

    In Entity Browser navigation, choose the action to which you want to assign the pre-action enhancement. To start the Create Pre-Action Enhancement wizard, choose Create Pre-Action Enhancement in the context menu of the action.

  2. Name and Description

    In this step, you define to which node and base action the pre-action enhancement is assigned.

    Input Field

    Description

    Node Name

    This field displays the node to which the pre-action is assigned in the model of the enhancement.

    Base Action Name

    The base action is the action to which the pre-action enhancement is assigned.

    Pre-Action Name

    The name of the pre-action enhancement must be unique in the business object. It must start with the namespace or the prefix of the corresponding enhancement. This ensures that the entities of different enhancements are clearly separated.

    The namespace or the prefix must be completed with the pre-action name.

    Example

    <namespace or prefix>_<pre-action name>

    Description

    Enter a short description of the pre-action enhancement.

  3. Implementing Class

    The implementing class contains the business logic of the pre-action enhancement. The implementing class is automatically created after finishing the wizard and you must subsequently implement it manually.

    Since the implementing class name must meet naming conventions, the wizard automatically suggests a valid class name.

    You can also define an existing class by implementing the /BOBF/IF_FRW_ACTION interface. This is useful if the business logic of another pre - action enhancement can be reused. The system does not overwrite existing implementing classes.

  4. Finishing the Wizard

    To create the pre-action enhancement and finish the wizard, see Finishing the Wizard in Creating and Changing a Business Object.

Results

  • The system adds the new pre-action enhancement to the enhancement model.

    It displays the pre-action enhancement in the Entity Browser navigation when you select the corresponding assigned node and the corresponding action.

  • The implementing class of the pre-action enhancement is generated and must be implemented.

  • The constants interface of the enhancement is regenerated.

After you have created a pre-action enhancement, you can change the following specifications:

  • Pre-Action Name

  • Description

  • Implementing Class