Show TOC

Creating and Changing Action ValidationsLocate this document in the navigation structure

Context

Business Object Builder (BO Builder) provides you with a wizard for creating an action validation.

Procedure

  1. Starting the Wizard
    Note

    You can assign action validations only to the following types of actions:

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

    • 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 that is currently open

    Open the business object or the enhancement in which you want to create an action validation.

    In the Node Browser navigation, choose the node that contains the action you need to extend with an action validation.

    In the Entity Browser navigation, choose the action to which you want to assign the action validation. To start the Create Action Validation wizard, choose Create Action Validation in the context menu of the action.

  2. Name and Description

    In this step, you enter the name and the description of the action validation.

    Input Field

    Description

    Action Name

    This displays the name of the action to which the action validation is assigned. Executing the action is either allowed or prevented by the action validation at runtime.

    Action Validation Name

    The name of the action validation must be unique in the business object. If the action validation is created in an enhancement, it must start with the namespace or the prefix of the enhancement. This ensures that the entities of different enhancements are clearly separated.

    The namespace or prefix must be completed with an action validation name.

    Example

    <namespace or prefix>_<action validation name>

    Description

    Enter a short description of the action validation.

  3. Specifying the Implementing Class

    The implementing class contains the business logic of the action validation. 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_ VALIDATION interface. This is useful if the business logic of another action validation can be reused. The system does not overwrite existing implementing classes.

  4. Finishing the Wizard

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

Results

  • The system adds the new action validation to the model of the business object or of the enhancement and displays it in the Entity Browser navigation.

  • The implementing class is generated and must be manually implemented.

  • The constants interface of the business object or of the enhancement is regenerated and contains a unique constant identifying this action validation.

After you have created an action validation, you can change the following specifications:

  • Action Validation Name

  • Description

  • Implementing Class