Boosting the Sales Order Management Process with an Automation

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

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’ll then learn how to map the inputs and outputs of the different artifacts according to the changes of the process. Lastly, you’ll use the Desktop Agent to run your process.

Note

The Desktop Agent does not work on a Mac device. You will need to use a Windows machine to complete this part of the lesson, or a Mac running a virtual desktop with Windows. Refer to the prerequisites in Unit 1 for more information.
The two modes of Bots: unattended mode and attended mode.

Task automation can run in two ways:

Unattended mode
Bots are working 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

Select each marker to learn more.

The figure shows the areas of the Automation Editor.

The Automation Editor of SAP Build Process Automation is composed of four main parts:

The Toolbar
Can do simple actions such as undo, redo, delete a step, save your automation, or even test it.
The Workflow
Shows you the list of the steps inside your automation.
The Right-side Panel
Adds steps to your automation. You can add activities, data, or different controls to your workflow.
The Console

Access the design and test console to see the different errors, warnings and info of your automation while designing it or while testing it. You also have access to the variables of the automation.

Prepare the Excel File With Sales Order Details

Business Scenario

SAP Build Process Automation has native integration to several Microsoft Office products including Outlook and Excel SDK. In this exercise, you will learn how to use Excel files in your automations.

To design your automation, you will need an Excel file filled with the sales orders data. You have the possibility to create it by yourself using the sample below.

Note

In this exercise, you will create an Excel file containing Sales Order data. You can either create it manually (see task 1) or download the prepared file (see task 2).

Task 1: Alternative 1: Prepare the Excel File With Sales Order Details

Steps

  1. Create an Excel file.

    Use the following cell formats:

    ColumnFormat
    Order NumberText
    Order AmountNumber
    Order DateDate
    Shipping CountryText
    Expected Delivery DateDate
    Order StatusText

    Note

    Ensure that you use the correct format of the cells in the columns, listed above!

    1. Open MS Excel.

    2. Create an excel file with the columns you find in the table above.

    3. Save the file under a name of your wish.

  2. Add data to the columns.

    Use the following data:

    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/2022United Kingdom3/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. If not done, open the file.

    2. Enter the data from the table above.

    3. Save the file.

Task 2: Alternative 2: Download the File

Steps

  1. Download the file.

    1. Choose the following URL: https://education.hana.ondemand.com/education/pub/mmcp/group/GR_1C5B25FF9CC48BA3/25341A492A1A669A.xlsx?download=1

    2. The file will download to your PC.

Creation and Edition of an Automation

As preparation for the next exercise, watch the following video about creating the Automation.

Create and Edit the Automation

Business Scenario

Now that your excel file is ready, let’s create the automation. For that you will open the process in Process Builder and add a new automation between the Trigger Form and the Approval Form. You will create the automation and edit the automation details and map the Excel file variables with the sales order data. Then you will use a loop to confirm that the result of the inputs look correct.

To learn more about how to create and edit the automation, follow this interactive tutorial.

Task Flow

In the task of this exercise, you will perform the following steps:

  1. Add a New Automation to the process.
  2. Set the Environment Variables of the project.
  3. Add Excel activities.
  4. Perform Excel Data Mapping.
  5. Close the Excel instance.
  6. Add input and output parameters.
  7. Create a variable.

Exercise Options

To start the exercise, choose Start Exercise in the figure below.

A pop-up opens. You have the following options:

  • Choosing Start: the simulation starts. Follow the simulation to learn how to create and edit the automation.
  • Choosing Open PDF Document: a PDF opens. Based on the steps described in this document, you can perform the exercise in your own system landscape.

Steps

  1. Create and edit the automation.

    1. Choose Add Process Step.

    2. Choose Automation.

    3. Choose Blank Automation.

    4. In the Configure agent version dialog box, choose Agent Version.

    5. Choose 3.25.

    6. Choose Confirm.

    7. In the Name field, enter Get Order Details.

      You will find these fields in the Create Automation dialog box.

    8. In the Description field, enter Automation for Order Process2.

    9. Choose Create.

    10. Choose Settings.

    11. Choose Environment Variables.

    12. Choose Create.

    13. In the Identifier field, enter OrderFilePath.

    14. Choose the drop-down arrow by Type.

    15. Choose String.

    16. Choose the Create button.

    17. Choose Close.

    18. Choose More Options (three dots icon).

    19. Choose Open Editor.

    20. In the Search field, enter Open Excel.

    21. Drag Open Excel Instance and drop it below Start.

    22. Choose Remove.

    23. In the Search field, enter Excel Cloud Link.

    24. Drag Excel Cloud Link and drop it below Open Excel Instance.

    25. Choose Excel Cloud Link.

    26. Choose Edit Activity.

    27. Choose browse.

    28. Choose Sales Orders.

    29. Choose Open.

    30. In the Workbook Path field, enter OrderFilePath.

    31. Choose From Excel data.

    32. In the Name field, enter Sales Order.

    33. Choose Create.

    34. Choose Overview.

    35. Select the scroll area to scroll down.

    36. Choose Sales Order.

    37. Choose Get Order Details.

    38. Choose Excel Cloud Link.

    39. Choose Remove.

    40. In the Output Parameters field, enter Orders.

    41. In the Step Name field, enter Close Excel Instance.

    42. Drag Close Excel Instance and drop it below Excel Cloud Link.

    43. Choose Input/Output.

    44. In the Inputs field, enter Order Number.

    45. Choose Add new output parameter.

    46. In the Inputs field, enter SelectedOrder.

    47. In the Inputs field, enter Selected order details are processed.

    48. Choose String.

    49. Choose Sales Order.

    50. Choose Tools.

    51. Choose Remove.

    52. In the Search field, enter Sales.

    53. Drag Sales Order and drop it below Close Excel Instance.

    54. Choose Create Sales Order variable.

    55. Choose Remove.

    56. Choose Save.

Result

You have now created and edited the automation.

Mapping the Order Using a Loop with Conditions

Watch the following video, to learn how to map the order by using a loop with conditions:

Map the Order Using a Loop with Conditions

Business Scenario

Excel Data Mapping allows you to transform column-based data from an Excel sheet into datatype that can be used in your automation. The data from the Excel sheet stays the same but the structure becomes a data type structure, making it possible to use throughout your project.

To check if you have correctly mapped the sales order data, you need to loop through the orders and check if you can find yours using the condition, and see if the order number that you received from the trigger is equal to the currentMember of the authors.

Task Flow

In the task of this exercise, you will perform the following steps:

  1. Add a New Automation to the process.
  2. Add a control activity.
  3. Set the variable.
  4. Stop the loop.

Exercise Options

To start the exercise, choose Start Exercise in the figure below.

A pop-up opens. You have the following options:

  • Choosing Start: the simulation starts. Follow the simulation to learn how to map the order using a loop with conditions.
  • Choosing Open PDF Document: a PDF opens

Finalize, Test, and Simplify the Automation

Business Scenario

At the end of your automation creation process, there are some last steps to fulfill. First, you have to create output parameters and connect them with the endpoint of the automation. If everything has been set up, you can run a test. After successful testing, to simplify the start form, you can delete all redundant information. Release your process project that finally can be deployed.

Exercise Options

To start the exercise, choose Start Exercise in the figure below.

A pop-up opens. You have the following options:

  • Choosing Start: the simulation starts. Follow the simulation to learn how to finalize, test, and simplify the automation.
  • Choosing Open PDF Document: a PDF opens. Based on the steps described in this document, you can perform the exercise in your own system landscape.

Steps

  1. Finalize, rest, and simplify the automation.

    1. Choose End.

    2. Choose Sales Order.

    3. Choose 4 selectedOrderDetails.

    4. Choose Order Processing.

    5. Choose Get Order Details 1.

    6. Choose Inputs.

    7. Choose OrderNumber (on the right side of the screen).

    8. Choose Order Number.

    9. Choose Save.

    10. Choose Close.

    11. Choose Get Order Details.

    12. Choose Test.

    13. In the OrderNumber field, enter PO7991.

    14. In the OrderFilePath field, enter C:\Users\System1\Downloads\SalesOrders.xlsx.

    15. Choose Test.

    16. To expand the Details pane, choose the arrow.

    17. Select the scroll area to scroll down.

    18. Choose Hide panel.

    19. Choose the Order Processing tab.

    20. By the Trigger/Order Processing Form, choose More Options (three dots icon).

    21. Choose Open Editor.

    22. Choose Order Amount.

    23. On Order Amount, choose More Options.

    24. Choose Delete.

    25. Choose More options of Order Date.

    26. Choose Delete.

    27. Choose More options of Shipping Country.

    28. Choose Delete.

    29. Choose Expected Delivery Date.

    30. On Expected Delivery Date, choose More Options.

    31. Choose Delete.

    32. Choose Save.

    33. Choose Close.

    34. Choose Order Processing.

    35. Choose Approval Form.

    36. Choose Inputs.

    37. Choose Order Amount.

    38. To expand the Selected Order pane, choose the arrow.

    39. Choose Order Amount.

    40. Select the scroll area to scroll down.

    41. Choose Order Delivery Date.

    42. Choose expectedDeliveryDate.

    43. Choose Save.

    44. Choose Close.

    45. Choose Order Confirmation Form.

    46. Choose Inputs.

    47. Choose Expected Delivery Date.

    48. To expand the Get Order Details1 pane, choose the arrow.

    49. Choose SelectedOrder (arrow icon beside it).

    50. Choose expectedDeliveryDate.

    51. Choose Order Amount.

    52. Choose orderAmount.

    53. Choose Save.

    54. Choose Close.

    55. Choose Order Rejection Form.

    56. Choose Inputs.

    57. Choose Expected Delivery Date.

    58. Choose SelectedOrder.

    59. Choose expectedDeliveryDate.

    60. Choose Order Amount.

    61. Choose orderAmount.

    62. Choose Save.

    63. Choose Close.

Result

You have now finalized, tested, and simplified the automation.

Log in to track your progress & complete quizzes