Objectives
After completing this lesson, you will be able to:
- Explain how bots are executed
- Review the Automation Editor
- Prepare the Excel file with sales order details
- Create and edit the automation
- Map the right order using a loop with conditions
- Finalize, test, simplify, release, and deploy the automation
Introduction: Boosting Business Processes with Automation
Watch this video to learn about automations.
Why use automations?
Automations can speed up your process and reduce potential errors related to manually transferring data. Now that you have mastered the basics of setting up your process, it’s time to simplify your trigger form by reducing the number of input fields. You will use robotic process automation (RPA) to extract data from an Excel file that contains the details of the sales order. You will then learn how to map the inputs and outputs of the different artifacts according to the changes of the process. Lastly, you will use the Desktop Agent to run your process.
The task automation can run in two ways:
- Unattended mode: Bots work autonomously with human supervision only – there is no human intervention in the part of the process RPA is running.
- Attended mode: The attended mode in which bots will work with humans to assist them, to help the bot.
The Automation Editor
Parts of Automation Editor
The Automation Editor of SAP Build Process Automation is composed of four main parts:
- Toolbar: Can do simple actions such as undo, redo, delete a step, save your automation, or even test it.
- Workflow: Shows you the list of steps inside your automation.
- Right-Side Panel: Adds steps to your automation. You can add activities, data, or different controls to your workflow.
- Console: Access the design and test console to see different errors, warnings, and info about your automation while designing or testing it. You can also access the variables of the automation.
Prepare the Excel File With Sales Order Details
Business Scenario
Note
In this exercise, you will create an Excel file containing Sales Order data. You can create it manually (refer to task 1) or download the prepared file (refer to task 2).
Task 1: Prepare the Excel File with Sales Order Details
Steps
Create an Excel file.
Use the following cell formats:
| Column | Format |
|---|
| Order Number | Text |
| Order Amount | Number |
| Order Date | Date |
| Shipping Country | Text |
| Expected Delivery Date | Date |
| Order Status | Text |
Note
Ensure that you use the correct format of the cells in the columns listed above.
Open MS Excel.
Create an Excel file with the columns you find in the table above.
Save the file under a name of your choice.
Add data to the columns.
Enter the following data:
| Order Number | Order Amount | Order Date | Shipping Country | Expected Delivery Date | Order Status |
|---|
| PO7991 | 410418.22 | 1/21/2022 | United States of America | 1/29/2022 | In Time |
| PO7918 | 150935.13 | 1/22/2022 | United Kingdom | 1/27/2022 | Urgent |
| PO7375 | 313977.82 | 1/23/2022 | United Kingdom | 2/20/2022 | In Time |
| PO7311 | 755055.4 | 1/24/2022 | United Kingdom | 3/30/2022 | In Time |
| PO6858 | 429358.4 | 1/25/2022 | United Kingdom | 2/20/2022 | In Time |
| PO6368 | 43739.82 | 1/26/2022 | United Kingdom | 3/25/2022 | In Time |
| PO6189 | 483574.12 | 1/27/2022 | Germany | 2/5/2022 | In Time |
| PO3115 | 273993.56 | 1/28/2022 | Germany | 3/10/2022 | In Time |
| PO2686 | 220887.56 | 1/29/2022 | Germany | 3/5/2022 | In Time |
| PO8282 | 436955.64 | 1/30/2022 | United States of America | 3/30/2022 | In Time |
Task 2: Download the Excel File
Steps
Click here to download the Excel file.
The file will get downloaded to your PC.
Creation and Edition of an Automation
In preparation for the next exercise, watch the following video about creating an automation.
Create and Edit the Automation
Business Scenario
Task Flow
- Add a New Automation to the process.
- Set the Environment Variables of the project.
- Add Excel activities.
- Perform Excel Data Mapping.
- Close the Excel instance.
- Add input and output parameters.
- Create a variable.
Exercise Options
Result
You have now created and edited the automation.
Mapping the Order Using a Loop with Conditions
Watch the video to learn how to map the order using a loop with conditions.
Map the Order Using a Loop with Conditions
Business Scenario
Task Flow
Exercise Options
Finalize, Test, and Simplify the Automation
Business Scenario
Exercise Options
Result
You have now finalized, tested, and simplified the automation.