Skip to Content

Automate SAP S/4 HANA Cloud Applications using SAP UI5 Recorder

Automate the process of creating a purchase order in Manage Purchase Orders Application in SAP S/4 HANA Cloud.
You will learn
  • How to use the SAP UI5 Recorder
  • How to automate applications in SAP S/4 HANA Cloud
celineaudinsapCéline AudinFebruary 11, 2022
Created by
chaitanya-priya-puvvada
February 9, 2022
Contributors
celineaudinsap
chaitanya-priya-puvvada

Prerequisites

  • Step 1
    1. Navigate to SAP S/4 HANA Cloud Trial account.

    2. Search for Manage Purchase Orders.

    3. Select the tile Manage Purchase Orders. This will open the Manage Purchase Orders application.

      Start
  • Step 2
    1. In the Cloud Factory, click the Projects .

    2. Choose New Project.

    3. A window appears, type Upload Purchase Order in the Project name field.

    4. Click Create.

      New Project
  • Step 3

    Before recording the steps of a workflow, ensure that the Manage Purchase Orders application and the Cloud Studio are running in a Chrome browser in two separate windows.

    Open the Manage Purchase Orders application in your SAP S/4 HANA Cloud Trial Account.

    1. In the Cloud Studio, click the Create button.

    2. From the artifact menu, select the Application artifact.

      Application

      What is going on?

      The Cloud Studio starts detecting the applications and their screens currently running on your local machine. When it’s done, you’ll see a list of screens in the picker panel on the left.

    3. Select the Manage Purchase Orders screen.

    4. Select Launch Recorder.

    5. Click the Record button.

      Recorder
  • Step 4

    This step involves recording the setting of the values for Supplier, Purchasing Organization and Purchasing Group.

    Field Name Value
    Supplier USSU-TRL04
    Purchasing Organization 1710
    Purchasing Group Z10

    When you click the Record button the Cloud Studio is locked and you will be directed to the application you want to record. Recording in progress pop-up message is displayed.

    Recorder2
    1. To start the recording, click the recorder

      Recorder button
      button. The recorder will capture the screen. You can see it in the Activities list.

    2. Click the Create button on the page.

      Recorder3
    3. The activity is added.

    4. The recorder will detect a change of screen. Click the capture

      Capture button
      button to record it.

      What is going on?

      The Recorder captures the first screen of an application automatically and the following screens must be captured manually by clicking the capture

      Capture button
      button. Then the actions you perform on that screen will be recorded automatically.

      Recorder4

      CAUTION: While recording, if a new screen appears or if there is a change in the UI, you must first click the button manually. You can then perform the actions in the application screens. This is applicable across the workflow recording.

      The recorder will add the new screen with the new purchase order that needs to be created. Now you need to set the values for Supplier, Purchasing Organization and Purchasing Group.

    5. In the Supplier input field, click the Show Value Help icon.

      Recorder5
    6. A change of screen is detected, click the capture

      Capture button
      button.

      What is going on?

      Whenever a new screen appears or if there is a change in the UI, the Recorder detects the screen change in most of the cases and displays a hint message. This gives you a hint to capture a screen manually by clicking the Capture button .
      The hint message disappears when you click the capture button or perform any action on the screen.

      Recorder6
    7. Search for the Supplier ID: USSU-TRL04 in the search field and hit enter.

    8. Select the Supplier: USSU-TRL04.

      Recorder7
    9. A change of screen is detected, click the capture

      Capture button
      button.

    10. Upon selecting the Supplier ID, the Purchasing Organization input fills itself with the correct value automatically.

      Recorder8
    11. Now you can repeat the above steps for Purchasing Group: Z10.

  • Step 5

    This step involves recording the setting of the values for Material Details in a table.

    Field Name Value
    Material MZ-FG-M525
    Order Quantity 200
    Order Price 9000
    1. Click Create.

      Recorder9

      A new empty table row is created. The screen must be captured manually.

    2. Click the capture

      Capture button
      button manually.

      CAUTION: In this case, a new table row is created on the screen so you need to capture the screen before entering values into the input boxes of the table row. The recorder will not detect this kind of screen change. As a Best Practice you must click the capture

      Capture button
      button whenever there is a change in the screen or UI.

    3. In the Material input field, click the Show Value Help icon.

      Recorder10
    4. A change of screen is detected, choose the capture

      Capture button
      button.

      Recorder11
    5. Search for the Material: MZ-FG-M525 in the search field and hit enter.

    6. Select the Material: MZ-FG-M525.

      Recorder12
    7. A change of screen is detected, click the capture

      Capture button
      button.

      Recorder13
    8. Set Order Quantity to 200.

    9. Set Net Order Price to 9000.

      Recorder14
    10. Click Create.

      Recorder15

    If a new table row is created on the screen when do you capture the screen?

  • Step 6

    Once you have completed entering the data in the application screens, you can stop recording. Click the button to stop the recording. After you stop the recording, by default, the Export button is displayed.

    1. Click the stop

      Stop button
      button to stop the recording.

    2. To export the recorded steps to the Cloud Studio, choose the Export button.

      CAUTION: Before you start exporting the recording to the Cloud Studio, check if the Cloud Studio has not timed out. If it is timed out, you must re-login (do not refresh) to the Cloud Studio and then export the recording.

      Export
  • Step 7

    After successful processing, the recorder widget will be closed. You will be redirected to the Cloud Studio and the confirmation message, Recording successfully exported is displayed.

    The application Manage Purchase Orders and the automation Manage Purchase Order Autom are successfully exported.

    Overview

    You will find the Declared Application in the Cloud Studio. You can view the recorded screens under Declared Application and the recorded elements under Declared Elements. If required, you can manually edit the screens to add or remove objects.

    Overview Application

    All the recorded steps will be displayed in the automation designer of the Cloud Studio.
    You can then edit the automation to update the Step Details.

    Overview Automation

    As per your requirement, you can even record the Step 1 : Open Manage Purchase Orders Application

    Will there be a warning message detecting a screen change each time new controls appear on the existing screen?

  • Step 8
    1. Click on Test.

    2. Select your Environment.

    3. Choose Test.

      Test

    Manages Purchase Order Application is opened in a browser window and creates the purchase order with values provided in the steps of the Automation.

Back to top