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

Create the needed approval and notifications forms for the Invoice Approval Process

Overview

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

You will learn

  • โœ”How to leverage the result of the Decision in an approval form
  • โœ”How to create an approval form
  • โœ”How to create forms to notify process participants
Stephan Schluchter S Stephan Schluchter January 25, 2024
Created by November 21, 2022
Contributors

Prerequisites

Prerequisites

Steps

Intro

There are different requirements and business situations when a form is needed in a business process. You have already created a form to start the process. Most often you probably need a form to maintain some input data or to approve or reject a request or even to send out some notifications. The two latter ones are your focus now.


Step 1 Create new approval form
โ€”

  1. Choose + at the connection flow after the decision Determine Approver to open the context menu.

    New Approval Form
    New Approval Form

  2. Then select Approval.

    New Approval Form
    New Approval Form

  3. Click on Blank Approval

    New Approval Form
    New Approval Form

  4. Maintain the Name Invoice Approval Form and also the Description Form to approve the invoice. Choose Create. The Identifier is created automatically.

    Maintain approval form name
    Maintain approval form name

  5. Choose the three dots on the created form’s artifact and select Open Editor to do the same. Just ignore the red frames, you will fill them later.

    Open Editor
    Open Editor

  6. Now you are in the Form’s Editor, where you can define the layout and input fields. First add via drag and drop a new Headline 1 into the canvas. Provide this headline Invoice Approval.

    Add Headline
    Add Headline

  7. Drag and drop a Paragraph into the canvas. Insert Invoice Details in the paragraph.

    Add paragraph
    Add paragraph

  8. Include a Text field in your form, change the name to Company Name and select Read Only, as you will display here some information from the process content.

    Maintain text field
    Maintain text field

  9. Add some further input fields to your form. Please ensure you have selected the correct type and also maintain all of them as Read Only.

    Field TypeName
    TextInvoice Number
    NumberGross Amount
    TextEmployee Name
  10. You are done with the layout and input fields of the approval form. Save your work.

    Further input fields
    Further input fields

  11. Go back to your process, you will recognize some errors, e.g. inputs are missing. No need to worry, you will provide the required details in the next steps.

    Errors
    Errors

  12. Select the Invoice Approval Form and in the General tab of the form properties, move to Subject and choose Select Item.

    Select Item
    Select Item

  13. Enter the text Please approve the invoice and add the process content Document Number. You will find this underneath Invoice Details. This combines plain text with process-related information and serves as an unique identifier for the end user.

    Add process content
    Add process content

  14. In the Decision you have defined the approver of the invoice. The output of the decision has been an email address. Now add from the process content within Approver_Output the eMail in the Recipients as Users. This means only the selected approver will get this approval in the inbox.

    Approval user
    Approval user

  15. Switch to the Inputs tab and within Company Name, choose Select Item. The process content will open again.

    Approval Form inputs
    Approval Form inputs

  16. Now add the attributes from the process content to the related input fields.

    You can only assign fields with the same type, e.g. text in the process content to text input field. If you cannot assign, e.g. Invoice Number from the process content to the Invoice Number in the input field, the type of the input field might be wrong. If so, please correct your form.

    Process ContentInput Field
    Employee NameEmployee Name
    Sender NameCompany Name
    Gross AmountGross Amount
    Document NumberInvoice Number
  17. As this mapping of process content and forms is quite important to ensure a proper flow of the relevant data in your process, please check them again. It should look like this.

    Check Approval Form inputs
    Check Approval Form inputs

  18. Save your work.

Step 2 Create approval notification form
+
Step 3 Create rejection notification form
+

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. Create new approval form 2. Create approval notification form 3. Create rejection notification form

Learn more →