Customize an automation generated through SAP UI5 Recorder
- How to customize a Recorder generated automation
- How to use sub-automations
- How to use the UI5 Login Activity
In this tutorial, you will record the Home page of S/4 HANA Cloud Trial and Production accounts.
If you are using
S/4 HANA Cloud production account, follow the steps from Step 1 -Step4
S/4 HANA Cloud Trial accounts ,follow the steps from Step 4 - Step 6
- Step 1
Open the Cloud Studio project which was created in previous tutorial.
- Log into your SAP S/4 HANA Cloud account and go to the Home page.
- Create a new application in the Cloud Studio project.
- Click the Home Screen.
- Click Record.
The recorder window appears.
- Step 2
Refer to the following steps to record the home screen of SAP S/4 HANA Cloud
Click the Recordbutton to start the recording.
Click Manage Purchase Orders in the dashboard under the Procurement category.
The activity is added.
The Recorder will detect a change of screen. Click the Capturebutton to record it.
Click the Stopbutton to stop the recording.
The new Login application and its automation are successfully exported to the Cloud Studio project.
- Step 3
Refer to the following steps to set up the Login application to use the UI5 Login activity.
Click the Home Application that corresponds to the recorded application.
Make sure the Domain is set to equal your SAP S/4 HANA Cloud login domain.
To get the domain:
Go back to your browser
Press CTRL + SHIFT + C
Select the first screen of Home and add the Title of login screen with the OR condition to the screen’s criteria.
Click Save to save the changes.
The set up of the application is now complete.
What are the mandatory recognition criteria parameters for UI5 Login activity?
- Step 4
Refer to the following steps to customize the automation using the UI5 Login activity
Go to the Home Automation tab.
Click on the screen in the automation.
Click Define Screen Activities.
Search for the UI5 Login activity.
Drag-and-drop UI5 Login activity after the Start Screen activity.
Click on UI5 Login Activity in the automation to configure it.
For S/4 HANA Cloud Applications, select the parameter
loginPageTypeas SAP Cloud Platform
Note: UI5 login activity can be used if S/4 HANA Cloud Account has a single login page as below.
If your S/4 HANA Cloud Account login page has **multiple login screens, capture the login page manually as mentioned in Steps 5 - Step 7.
Delete Close Application Activity.
Repeat the step 7 for the Start Application Activity in the Manage Purchase Orders Automation created in the pervious tutorial.
Press Save to save changes.
Setting up the automation is now complete.
- Step 5
Refer to the following steps to create the Login application to use an SAP S/4 HANA Cloud trial account.
In this scenario, you have to capture the login screens manually since the Trial account involves navigation of two login screens.
Open the Cloud Studio project which was created in the previous tutorial.
Create a new Application in SAP Cloud Studio and select the Login page open in your browser. Enter these information in the application details:
Field Name Value Application Name Login Screen Name Login Screen 1
Make sure that you’re logged off.
The Login process for trial accounts goes through two screens. Capture the second screen:
Enter your username and click Continue on the first login page.
Create a new Application in SAP Cloud Studio and click the new Page. Enter these information in the application details:
Field Name Value Application Name Login 2 Screen Name Login Screen 2
Two new screens are created and ready to be customized.
- Step 6
These steps involve customizing the two Login applications to be usable in the automation.
Click on Username field in the application to declare it.
Repeat the same process to declare Continue button.
Object Name Username Field username Continue Button submit
Click Save to save changes.
The Log In process for trial accounts goes through two screens.
Enter your Username and click Continue.
Repeat the same process to declare both: password field and Continue button.
Object Name Password Field password Log On Button submit
Click Save to save the changes.
Both pages of the Login process are customized.
- Step 7
Refer to the following steps to create an automation to use the captured login screens
Create a new automation and name it Home.
Drag-and-drop Login Screen 1 in the automation.
Click the screen Login Screen 1 in the automation and click Define Screen Activities.
Drag-and-drop Start Screen, Set Element and Click screen activities in the Login Screen 1 screen in the automation.
Click Start Screen activity and enter your Dashboard Home URL in the
urlfield then erase Edge from navigator field and select your navigator.
the Dashboard Home URL is of this type:
Click Set Element activity, then click on Open Target Editor and select Login > Login Screen 1 > username.
Enter your username in value field.
Click the Click activity, then click on Open Target Editor and select Login > Login Screen 1 > submit.
Drag-and-drop Login Screen 2 in the automation after Login Screen 1.
Click the screen Login Screen 2 in the automation and click Define Screen Activities.
Drag-and-drop Set Element and Click screen activities in the Login Screen 2 screen in the automation.
Repeat the Step 6- Step 8 to configure the Set Element and Click screen activities
For Set Element Target select login 2 > Login Screen 2 > password, and set value field to your password.
For Click Target select login 2 > Login Screen 2 > submit.
Click the Save to save changes.
The set of automation is now complete.
- Step 8
Refer to the following steps to combine the automation generated inAutomate SAP S/4 HANA Cloud Applications using SAP UI5 Recorder tutorial and the automation generated during this tutorial.
In the Home automation, drag-and-drop
Manage Purchase Orders Automautomation after the Home application activity.
For SAP S/4 HANA Cloud Productive Accounts .
For SAP S/4 HANA Cloud Trial Accounts.
Click Save to save the changes.
Now the two automations are combined and executed sequentially when launched.
Does UI5 Login activity work with SAP S/4 HANA Cloud trial accounts?
- Step 9
Select your Environment.
The login page is opened in a browser and automatically logs in to the SAP S/4 HANA Cloud account. Then Manages Purchase Orders Application is opened from the dashboard and creates the purchase order with values provided in the steps of the automation.