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

Create a Decision

Create a decision to determine approvers who will be authorized to approve sales order based on complex rules

Overview

🎓 intermediate 20 min. SAP Build Process AutomationIntermediateSAP Business Technology PlatformFree Tier

You will learn

  • โœ”How to create & configure decision in the process
  • โœ”How to create & configure data types
  • โœ”How to model decision tables with rules expressions

Prerequisites

Steps

Step 1 Add a Decision to the Process
โ€”

A decision consists of one or more policies. Each policy consists of a collection of rules. They are used to automate the decision-making parts of a business process. After you create a decision, define your business logic by adding rules to the policy. There are two types of rules:

  • Decision Table Rule: A decision table is a collection of input and output rule expressions in a tabular representation.
  • Text Rule: A text rule is the collection of rule expressions in a simple if-then format.

To add a decision, you must first identify the set of rules that you need to add to the decision-making process. Once you have identified your rules, then define the data types relevant for designing the rules. This is an important step before you start modelling your decision because these data types will contain all necessary fields that will be needed to model the rule.

In this section, you will create and configure a decision which will be used to determine the relevant approvers based on the sales order fields.

  1. In the process builder, choose + of the default conditional flow.

    001
    001

  2. Select Decision.

    001b
    001b

  3. Click on Blank Decision.

    001c
    001c

  4. In the Create Decision window, do the following:

    • In the Name field enter Determine Approver,
    • In the Description field enter Rule to identify the potential approvers for sales order,
    • Choose Create button.

    002
    002

  5. Now you have to model the decision. For that, choose the 3 dots next to Determine Approver decision, to open the menu and choose Open Editor.

    002
    002

  6. A decision editor opens. You can see the decision diagram on the left panel and configuration option for Input and Output on the right panel. Notice the default policy that is pre-created with the decision.

    A Decision Diagram is a flow chart that describes the execution flow of the decision logic from the input to the output. Using a decision diagram, you can view the input, output, policies of a decision and the rules of the policies. You can also access each component of a decision, like a policy or a rule, via the decision diagram itself.

    A Policy is a collection of rules to be executed in strict order, meaning that they will run in the order in which they are added to the policy, and only the results of the last rule execution will be given as the final output of the decision.

    002
    002

Step 2 Create Data Types
+
Step 3 Configure Decision
+
Step 4 Configure Decision in Process Builder
+
Step 5 Update the Process
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Add a Decision to the Process 2. Create Data Types 3. Configure Decision 4. Configure Decision in Process Builder 5. Update the Process

Learn more →