Show TOC

Developing Decisions and Processing Logic in ABAPLocate this document in the navigation structure

Context

You can set up decisions and processing logic in one of two ways. This procedure describes the procedure using ABAP. You can also use business rules framework plus (BRFplus). For more information, see Using BRFplus to Set Up Output Management Decisions and Processing Logic

Procedure

  1. Open the Maintain Output Management Adapter Settings Customizing activity under Start of the navigation path Processes and Tools for Enterprise Applications Next navigation step Reusable Objects and Functions for BOPF Environment Next navigation step PPF Adapter for Output Management End of the navigation path.
  2. Create the PPF output agents for the business object (BO) nodes:
    1. Choose the New Entries pushbutton, and enter the name of the BO and node.

    2. Enter an appropriate name for the PPF agent, for example /BOFU/DEMO1.

      You must have already set up an action profile for this BO and node. For more information, see Setting up Post Processing Framework for Output Management and Creating Conditions for a Post Processing Framework Application in Output Management.

    3. In the Agnt Class. for Node (Agent Class for Node) field, enter the class that inherits from class /BOFU/CL_PPF_SERV_FOR_BO.

      You should program decision logic and processing logic in your agent class. For more information, see Prerequisites for Output Management

      You can use class /BOFU/CL_PPF_SERV_FOR_BO as a default implementation if you don’t need a particular application-specific implementation.

    4. Select the Enabled checkbox if you want the output management adapter to action output.

    5. Select the Incl. Child Chgs (Include Child Changes) checkbox if you want to consider changes to the child node as changes to the parent node.

  3. Assign PPF profiles:
    1. In the Action Profile field, enter the name of the action profile you created for this BO and node in the Maintain PPF Settings Customizing activity.

    2. In the Output Type field, enter Has Critical o/p: Process during Save – before Commit for critical outputs. Enter Has Uncritical o/p: Process after Commit (background) for uncritical outputs.

    3. Select the Needs DB Image (Needs Database Image) checkbox if you need an uncritical output to have the previous DB state of application data for decisions and processing.

  4. In the Action Settings view, enter the name of the action definition you created for this BO and node in the Maintain PPF Settings Customizing activity.

    You can also select the Can Generate Without Condition Check checkbox if you want the option of generating an action without the system performing a schedule condition check.

  5. In the Processing Type Settings view, enter the class name of the context as the processing type. You can also make the following specifications:
    • Select the Can Execute Without Condition Check checkbox if you want the option of executing an action without the system performing a start condition check.

    • Enter a text template ID if you want to use a default body text for e-mails.

    • Specify a processing type description if you want the system to display a descriptive text for an action, with a processing type of method call.