Record SAP GUI for Windows Application
You can use the recorder to automate applications built using SAP GUI for Windows (also called SAP WinGUI).
This section provides tips and details to help you to understand and use the recorder appropriately with the SAP WinGUI system.
Prerequisites
To use recorder with SAP WinGUI, make sure you use only 32-bit SAP GUI for Windows Application.
More Information
-
Default Capture Parameters
The default capture parameters in WinGUI recorder are:
-
Capture Mode = Print Window
-
Max Capture Height = 16000 Pixels
-
Max Deepness = 0
-
Max Siblings = 0
These values are fixed for recording scenario and cannot be changed after recording.
-
-
WinGUI Recorder Activities
The activities introduced for WinGUI Recorder are:
-
Open Connection
SAP WinGUI recorder uses Open Connection activity to open connection to SAP GUI system when running an automation. This activity is generated automatically when recording is completed. If you want to connect to another SAP GUI system, then change the connection name parameter of this activity with connection name as shown in the SAP Log On page. Example, Q43 [PUBLIC].
-
Close Connection
Closes connection to SAP GUI system that was opened by Open Connection and Open Connection By String.
-
Click Sync
Recorder generates "Click Sync" activity on GUI Button to perform click synchronously. If Click Sync operation initiates a time-consuming action, then replace with Click.
-
-
Capture Meta-data
To capture meta-data faster, fewer properties are captured during recording.
Recorder captures meta-data such as Id, Text, Type, Name, ScreenLeft, ScreenTop, Width, and Height properties for a page or item depending on the control type.
If other properties like IconName, Tooltip, LeftLabel, RightLabel, Changeable, and ContainerType are required for recognition, then the page must be recaptured in cloud studio after recording artifacts are exported to Cloud Studio.
-
Two or More Screens of the Same Name
When two or more screens of the same name are added to the SAP GUI Application after exporting the recording, add a unique component from the DOM for each page as a Must Exist element to aid proper recognition.
Initially, with the generated automation, each page sharing the same title will work and not have issues in runtime because of the sequence of the screen appearance in the bot. When the automation is scaled, there could be recognition issues if handling multiple screens with the same criteria process is not in place. To know more details about handling multiple screens with the same criteria, refer to the Handle Multiple Screens with the Same Criteria in SAP GUI for Windows Recorder section.
-
Password Security
In SAP GUI recorder, if any password field is encountered then its value will be recorded as '********'.
For the automation to work, the bot developer needs to select the respective step in the automation and change the value of the input parameter from '*******' to your actual password. You can set the value as a parameter and provide the password at runtime.
Refer to the section Best Practices for Environment Variables of Type Password for best practices for password security.
-
Session Busy
While running the automation, If Current Session is Busy... exception is encountered, user must increase the busyTimeOut value for Set Busy Wait Time activity in the automation.
The Set Busy Wait Time activity helps the SAP WinGUI bot to check if the session is busy before sending each action to the actual SAP GUI application.
-
Cross Technology Recorder
You can use the Recorder to record applications with a combination of the SAP WinGUI and the UI Automation technology pages.
-
Recording can be started from the SAP Logon page. The SAP Logon page will be captured as the UI Automation page and other pages of the SAP WinGUI will be captured as the SAP WinGui pages.

-
It is possible to record native Microsoft Windows dialog boxes even if the Recorder is launched for the SAP WinGUI technology. Therefore, it is not required to capture such dialog boxes manually and then integrate them into the project.

-
-
Technical Events
An automation can be launched automatically in attended mode by using Project Launcher by configuring technical events. For more information, see Trigger Automations Using the Project Launcher.
The SAP WinGUI supports the launch of automation automatically in attended mode by using only screen load or unload event. You can define events by selecting either load or unload event under events dropdown. When you load or unload the selected screen, the automation triggers.
In the following example, automation is launched automatically in attended mode by using a screen load event. To define events, Loaded event is selected under Launched via dropdown.

When the selected screen is loaded, the automation triggers.
