SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

9 - Add 2nd Approval With Custom Variables, Conditions and Form Events

Create a second approval that can veto the badge but only within 24 hours, using custom variables, conditions and form events.

Overview

🎓 intermediate 20 min. SAP BuildIntermediateSAP Integration SuiteSAP Build Process Automation

You will learn

  • โœ”How use conditions
  • โœ”How to create and access custom variables
  • โœ”How to use form events
Daniel Wroblewski D Daniel Wroblewski April 20, 2025
Created by February 21, 2025
Contributors

Prerequisites

Prerequisites

Steps

Intro

SAP Build Process Automation enables many types of flows and branching. Here we will introduce 2 types of flow controls:

  • Conditions, where the flow can branch based on a specific condition. You can create up to 10 branches.

  • Process events, where the flow can change based on certain events that occur within a process. We will use form time events, which get raised after a specific amount of time and alter the flow.

Our scenario is: You will check if the new business partner is from the United States. If yes, then a second approval step is needed from the local staff. But … that approver only has 24 hours to veto the issuance of the badge โ€“ after that, the badge is automatically approved.

Step 1 Create custom variable
โ€”

  1. Go back to your process project.

    Make sure you are in the Editable version.

    Open editable process
    Open editable process

  2. In the Badge Process, with nothing selected, open the side panel.

    Open side panel
    Open side panel

  3. Click Variables.

  4. Under Custom Variables, click Configure.

    Custom variables
    Custom variables

  5. Click Add Variable

    Enter the following (the identifier is automatically generated).

    FieldValue
    NameLocalApprover
    TypeBoolean

    Click Apply.

    Add custom variable
    Add custom variable

  6. Click Save (upper right).

Step 2 Set variable with script task
+
Step 3 Check the business partner country
+
Step 4 Add 2nd approval
+
Step 5 Set flag to false
+
Step 6 Create form event
+
Step 7 Release and deploy process
+
Step 8 Trigger process
+
Step 9 Monitor process
+
Step 10 Further study
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 10
1. Create custom variable 2. Set variable with script task 3. Check the business partner country 4. Add 2nd approval 5. Set flag to false 6. Create form event 7. Release and deploy process 8. Trigger process 9. Monitor process 10. Further study

Learn more →