A Step-by-Step Guide to deploying the Automatic Creation of Sales Orders from Excel (4G5) bot from the Content Store
2024-1-4 08:38:5 Author: blogs.sap.com(查看原文) 阅读量:9 收藏

SAP Build Process Automation provides a simpler and faster way to automate business processes by enabling business users to automate processes and tasks with drag-and-drop simplicity. SAP Build Process Automation combines workflow management, RPA functionality, decision management, process visibility, and embedded AI capabilities into one intuitive low-code experience. The solution enables business users to create automations and/or contribute their process expertise to projects to deliver the solutions they need without having to write code.

You can jumpstart automation projects with hundreds of process content packages, RPA bots and connectors designed specifically to enhance the capabilities of your SAP applications. From the built-in content store, you can easily browse and access line-of-business and industry-specific content designed specifically to enhance the capabilities of your SAP applications such as SAP S/4HANA, SAP Ariba, SAP SuccessFactors and more. In this blog post I am going to show how you can deploy a standard bot available in built-in content store and execute it in attended mode. For this exercise we are going to deploy Automatic Creation of Sales Orders from Excel (4G5) bot for your S/4HANA on-prem system. .

The Automatic Creation of Sales Orders from Excel template bot automates the sales order creation process, allowing companies to create a larger volume of sales orders in less time with reduced error in their system.

The bot monitors a specified base folder with Excel files and/or scans unread emails with the keyword Sales Order in the subject line and having the Excel files as attachments. The bot transforms the Excel files to a structure that can be used by the sales order creation API. The bot then creates the sales orders in the system based on the details in the Excel file. The bot notifies relevant stakeholders with details of sales orders created in the system.

Table of Contents: 

  1. Subscribing to SAP Build Process Automation
  2. Install and Set Up the Desktop Agent
  3. Create Agent Attributes
  4. Prepare Sample Input File
  5. Activate Sample OData Service in your backend system
  6. Deploy the “Automatic Sales Order Creation” bot package from the store
  7. Launching the bot and validating the results
  1. Subscribing to SAP Build Process Automation: Follow this tutorial to subscribe to SAP Build Process AutomationSubscribe to SAP Build Process Automation using Booster in SAP BTP Free Tier | Tutorials for SAP Developers
  2. Install and Set Up the Desktop Agent | Tutorials for SAP Developers
  3. Create Agent Attributes
    1. In your development Lobby go to the Control Tower, click Agent Attributes and create attribute.
    2. Click Type drop-down field and select Predefined option. Give a unique name (>=25 characters) and some value and click Create button to create the attribute.
  4. Prepare Sample Input File
    1. Download MS Excel Sample Input Template from this link

https://hub.sap.com/package/6de1912ac31d4f54b3fbea4e66086731/documents

    1. In your Desktop, create a new folder and paste your recently copied excel file to this folder. Rename this file to Input_4G5.xls
  1. Activate Sample OData Service in your backend system
    For On-premise systems, this service needs to be added in the Activate and Maintain Services using the transaction /n/IWFND/MAINT_SERVICE. The bot will be able to use the services only when its added in the system.
  1. Deploying the Automatic Sales Order Creation bot package from the store: In this section you will deploy the package for the bot and setup additional configurations to ensure correct deployment to your on-premise agent.
    1. Launch the SAP Build Process Automation Application through your SAP BTP subaccount and go to Store inside your Application Development Lobby
    2. On the Filter By panel, under Line of Business, Select “Sales”
    3. Input the selected bot name “Automatic Creation of Sales Order from Excel (4G5)” into the search field and Enter.
    4. Click the Open drop-down menu and click Create from Template option.
    5. Click Create button to save the project.
    6. Go back to Lobby and Open your newly created project from the list of available projects.
    7. Once project is opened click settings option at the top.
    8. On Settings screen go to Dependencies and click Update all SDK button (if its enabled).
    9. Go to Configure Agent Version screen and select your Agent version from the drop-down list and click Save to save the agent version.
    10. Go to Attributes screen. Click Attributes drop-down list and select the attribute that we created in the step “Create Attribute”.
    11. Select the value from Values field and click Save and close the screen.
    12. On project screen click Release button to release the project now.
    13. Click Deploy button to start deploying the bot.
    14. On Overview page click Next to navigate to Run Time Variables page.
    15. Set the values for the following variables:
      Name Type Value (Sample)
       SYSTEMURL_ODATA  String http://cloudl000373.internal.sde.cloud.sap:50080/sap/opu/odata/sap
       S4H_USER_AUTH_4G5  Credential  <Your User, for example IRPA_TECH> Password <Your password>
       EMAIL_RECIPIENTS_4G5  String  <your email>
       BASE_FOLDER_PATH_4G5  String C:\Users\<Your_User>\Desktop\IRPA
       EMAIL_READ_4G5  Boolean  False (Switch Off)
       BUSINESS_DECISION_FASHION_4G5  Boolean  False (Switch Off)
       SAP_CLIENT  String  <your client, for example

    16. Click Next to navigate to Triggers page. Click Deploy to finally deploy the bot.
    17. You will see a success message on final screen. Click on Go To Monitor > Triggers button.
    18. On Triggers screen click Add Trigger button.
    19. From the list of deployed bots select Automatic Creation of Sales Order from Excel (4G5) bot and click Next.
    20. Select “Attended” trigger type and click Next.
    21. Specify name of your Trigger, date and time range when the trigger will be available to run. Click Create.
  1. Launching the bot and validating the results
    1. If not running, launch the Desktop Agent from the Start Menu
      Note – You can check if Desktop Agent is already running by looking for the bot icon in your system tray.
    2. If you have a previous instance of the agent running, restart the agent.
    3. Go to Projects tab. You will see Automatic Creation of Sales Order from Excel (4G5) bot listed there.
    4. Before you begin to run the bot, make sure that the excel test file is available in the folder in your Desktop.
    5. Click Activate button to activate the bot.
    6. To run the bot, simply click on the name of the bot Create Sales Orders.
      Note – Be aware that by running the bot you will be creating data in your system. Make sure that the data in your excel file is valid to avoid any data inconsistencies.
    7. As soon as the bot execution start you will notice your excel file is opened automatically and Agent status is set to In-Process.
    8. Bot will run and all errors will be added to a new folder called Error. Note that once bot finishes running the original Excel file will be deleted.
    9. In your first execution you will receive several errors related to functional configurations.
      Note – This is a functional error which means for the selected customer, Account Group configuration for Sold to party has not been assigned. Note that this error text is only available in your excel file as this is the output from the OData service.
    10. These errors were caused by data in the template not considering the valid or non- existing Business Partners and Customer details.
      Note – Valid data was identified by manually creating a Sales Order in the system via transaction VA03
    11. Once you get the valid data in your input Excel file and execute your bot your sales orders will be created successfully.
    12. To validate your results, you can now login to your Fiori Launchpad and run app Manage Sales Orders.
    13. In this App, click on the help values for Sold-to-Party.
    14. Select the customer number for which the Sales Orders were created.
    15. Compare the list of Sales Orders in the app to the list of sales orders created by the bot in the excel file.
    16. Navigate to the detail view of the Sales Order and check that the Items have been added correctly.
    17. Congratulations! You have now successfully deployed a bot for your SAP S/4HANA system.

Similarly, you can deploy other standard bots from the content store and automate processes in your system. Every bot has specific requirements and dependencies. All these details are provided in form of documents and links with the bot itself in the content library. You can also customize the pre-built content once you download it in your Application Development Library.


文章来源: https://blogs.sap.com/2024/01/04/a-step-by-step-guide-to-deploying-the-automatic-creation-of-sales-orders-from-excel-4g5-bot-from-the-content-store/
如有侵权请联系:admin#unsafe.sh