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 for Invoice Approval Process

Create a decision to determine the approver of the invoices

Overview

🎓 intermediate 20 min. SAP Build Process AutomationIntermediateSAP Business Technology PlatformDocument Information ExtractionArtificial IntelligenceFree Tier

You will learn

  • โœ”How to create a decision
  • โœ”How to make use of data types and how to create them
  • โœ”How to maintain a decision table and include it in the process flow

Prerequisites

Prerequisites

Steps

Intro

With a Decision you can include several policies, guidelines, business rules and so on into your process flow.


Step 1 Add a decision and create a data type
โ€”

You will now add a decision to the flow of your process. With this you are able to include business logic.

  1. Choose + following the automation Extract Invoice Data.

    Add decision
    Add decision

  2. In the menu select Decision.

    Add decision
    Add decision

  3. Click on Blank Decision.

    Add decision
    Add decision

  4. In the Create Decision window:

    • Maintain the Name: Determine Approver,
    • Description: Decision to determine who could approve the invoice,
    • Choose Create.

    The Identifier will be created automatically.

    Decision Name
    Decision Name

  5. The Determine Approver Decision is now in the process and should open automatically in the Decision Editor.

  6. Navigate back to the Get Invoice Details process and save your process.

  7. Select the decision in the process, choose the three dots and select Open Editor.

    Open Editor
    Open Editor

  8. You see a Decision Diagram showing the flow of the data within the Decision, and also the Input and Output Parameters.

  9. Add an input parameter with the following information:

    • Name: Invoice Parameter,
    • Description: Invoice Details,
    • Type: Invoice.

    “Invoice” is the data type which has been created in the Automation and contains all relevant extracted data.

    Change Input
    Change Input

  10. The data type for Output needs to be created. Therefore, select the Folder Icon.

    Create new Data Type
    Create new Data Type

  11. Select + and choose Create > Data Type.

    Create new Data Type
    Create new Data Type

  12. In the new pop-up window:

    • Define the Name: Approver,
    • Add a Description: Including the approvers email address,
    • Choose Create.

    The Identifier will be created automatically.

    Name data type
    Name data type

  13. Create a New Field:

    • Maintain the Name eMail,
    • Choose the Type as String.

    eMail
    eMail

  14. The new data type containing the email address of the approver is now created.

  15. Save your work.

    Save new data type
    Save new data type

  16. Go back to your Determine Approver Decision. Add an Output Parameter:

    • Name: Approver Output,
    • Description: Invoice Approver,
    • Select Type: the newly created data type Approver.

    Select new data type
    Select new data type

  17. Save your work.

Step 2 Create a decision table
+
Step 3 Maintain input and output of the decision
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Add a decision and create a data type 2. Create a decision table 3. Maintain input and output of the decision

Learn more →