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

Automate the Extraction of Order Details in Orders Management Application

Automate the extraction of order details and product's details in Orders Management application.

Overview

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

You will learn

  • โœ”How to build an automation in SAP Build Process Automation to extract data from a SAPUI5 screen.
  • โœ”How to get the header and line items data of a table.
  • โœ”How to use sub-automations.
Aviral Agarwal A Aviral Agarwal June 26, 2023
Created by June 13, 2023
Contributors

Prerequisites

Prerequisites

Steps

Intro

The screens and elements have been defined. You can now create the actual automation.

Think about what your bot should do. On a very high level it must:

  • Open Excel and read supplier name from there.
  • Open a Orders Management application in a web browser and extract order details from there, based on the supplier name from Excel.
  • Write the order details back into Excel.

Step 1 Define the automations
โ€”

NOTE: You can reuse the automation Orders Management Automation created by the screen recorder and modify it later.

For now, start by creating two additional automations: the main one (named Order Management) and an other one for Excel (named Write Excel).

  1. Make sure that the Overview tab is selected and then click the Create button and select the Automation artifact from the artifact menu.

    001
    001

  2. Name the Automation: Order Management and click Create.

    002
    002

    An empty automation is created.

  3. Go back to the Overview tab, create a new Automation and name it: Write Excel.

    Now you have three Automations:

    003
    003

    Let’s reuse the Recorder generated automation Orders Management Automation. Rename it to Web Portal. You can also use it as a sub-automation to open the web (Orders Management Application) and extract the needed data.

  4. Activate the Orders Management Automation tab. If the tab is closed, go to Overview and open it.

  5. Go to the Info section of Automation Details.

  6. Change the Name of the automation to Web Portal.

  7. Click Save.

    004
    004

Step 2 Main automation - Order Management
+
Step 3 Web Portal automation - Search for order number
+
Step 4 Input parameter
+
Step 5 Web Portal automation - Get Order info
+
Step 6 Web Portal automation - Get Shipping Address and Line Items information using multi-level collection
+
Step 7 Create Data Types for Shipping Address and Line Item
+
Step 8 Add Shipping Address Data Type in Web Portal automation
+
Step 9 Add Line Item Data Type in Web Portal automation
+
Step 10 Input/Output parameters
+
Step 11 Write Excel automation - First Worksheet
+
Step 12 Write Excel automation - Second Worksheet
+
Step 13 Adding the headers
+
Step 14 End
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 14
1. Define the automations 2. Main automation - Order Management 3. Web Portal automation - Search for order number 4. Input parameter 5. Web Portal automation - Get Order info 6. Web Portal automation - Get Shipping Address and Line Items information using multi-level collection 7. Create Data Types for Shipping Address and Line Item 8. Add Shipping Address Data Type in Web Portal automation 9. Add Line Item Data Type in Web Portal automation 10. Input/Output parameters 11. Write Excel automation - First Worksheet 12. Write Excel automation - Second Worksheet 13. Adding the headers 14. End

Learn more →