Show TOC

Adding a New BOPF ActionLocate this document in the navigation structure


To define the behavior of a sales order business object at runtime, we need to add a corresponding action entity to the generated business object. For our sample scenario, we are going to create an action SET_TO_PAID to change the status of the sales order item to PAID after a buyer pays for a product provided by a seller.


  1. To create an action of the business object generated in the step Defining the Business Object, open the editor of this business object and select the Actions tab.
  2. Then choose New to launch the New Action wizard.
  3. Specify the details:
    • Name: SET_TO_PAID
    • Description: Enter a short description that describes the purpose of the action.
    • Implementation Class: Accept the name for the action class that is suggested by the wizard.
    • Instance Multiplicity: Select Single Node Instance from the list box. This option allows the action to operate on a single sales order node instance. In other words: In the resulting app, we don’t want to allow the end user to execute the action on a set of multiple node instances.
    • Parameter Structure: We leave this field empty since we are not going to use action parameters in our scenario.
    New action wizard
    Figure 1: New action wizard
  4. Complete the creation procedure with Finish.
  5. Activate the business object’s actions class.


The BOPF framework assigns the new action to the business object node and creates an action class that implements the BOPF action interface /BOBF/IF_FRW_ACTION.

Added action in the BO editor
Figure 2: Added action in the BO editor