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 an Automation to Extract Data

Create an automation to extract order details from an Excel file

Overview

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

You will learn

  • โœ”How to create an automation in SAP Build Process Automation
  • โœ”How to use the Excel SDK
  • โœ”How to use control blocks: Conditions and Loops

Prerequisites

Prerequisites

Steps

Intro

IMPORTANT: Please refer to sample Sales Order Management (MI03) in the SAP Build Store if you face any issues while following the tutorials. To retrieve the sample refer to step 6 of Run the Process With an Automation.

An Automation is a succession of steps to orchestrate multiple activities and applications on a local machine.


Step 1 Create the automation
โ€”

In this exercise, you will automate the process to read the sales order details from an Excel and select the specific sales order details based on the input from the submitted form. To design the automation, you will need an Excel file filled with the sales order data. You can:

Order NumberOrder AmountOrder DateShipping CountryExpected Delivery DateOrder Status
PO7991410418.221/21/2022United States of America1/29/2022In Time
PO7918150935.131/22/2022United Kingdom1/27/2022Urgent
PO7375313977.821/23/2022United Kingdom2/20/2022In Time
PO7311755055.41/24/2022United Kingdom3/30/2022In Time
PO6858429358.41/25/2022United Kingdom2/20/2022In Time
PO636843739.821/26/2022India3/25/2022In Time
PO6189483574.121/27/2022Germany2/5/2022In Time
PO3115273993.561/28/2022Germany3/10/2022In Time
PO2686220887.561/29/2022Germany3/5/2022In Time
PO8282436955.641/30/2022United States of America3/30/2022In Time
  1. In the Lobby from the editable version of your project, do the following:

    • Select the process Order Processing.
    • Choose +.

    001
    001

  2. Select Automation.

    001
    001

  3. Choose Blank Automation.

    001
    001

  4. A pop up will appear to configure the Desktop Agent version. Do the following in the pop up:

    • From the dropdown, select the version of the Desktop Agent installed on your machine. It would be displayed with suffix as Registered.
    • Under Platforms, choose Windows or Mac depending on the Platforms you are working on.
    • Choose the Confirm button.

    001
    001

  5. A new pop-up will appear to create the automation. Do the following in the pop-up:

    • Under Name enter: Get Order Details.
    • Under Description enter: Automation for Order Process.
    • Choose the Create button.

    Identifier will be auto-filled.

    001
    001

    An automation Get Order Details will be created successfully.

    001
    001

Step 2 Create environment variable
+
Step 3 Add Excel activities
+
Step 4 Add input and output parameters
+
Step 5 Create a variable
+
Step 6 Looping through Excel sheet and searching for the order
+
Step 7 Link automation parameters with business process
+
Step 8 Test the automation
+
Step 9 Simplify the start form
+
Step 10 Update Process Condition
+
Step 11 Mapping forms of 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 11
1. Create the automation 2. Create environment variable 3. Add Excel activities 4. Add input and output parameters 5. Create a variable 6. Looping through Excel sheet and searching for the order 7. Link automation parameters with business process 8. Test the automation 9. Simplify the start form 10. Update Process Condition 11. Mapping forms of the process

Learn more →