SAP WinGUI Automation
Overview
SAP WinGUI is commonly used to access SAP functionality in SAP applications. Clicknium supports SAP WinGUI automation, and it requires the SAP WinGUI API scripting enabled.
The SAP WinGUI version 7.4,7.5, and 7.6 are supported.
The following functions can works with SAP:
Other general functions are also supported for SAP WinGUI elements, such as click, set_text, get_text etc.
Enabling SAP WinGUI API scripting
Server-Side Configuration
- Launch
saplogon
, log on SAP server - Run transaction code
RZ11
- Input the parameter name
sapgui/user_scripting
, click buttonDisplay
- In the dialog
Display Profile Parameter Attributes
, click buttonChange Value
, set Current Value toTRUE
, and then save the changes. - Repeat step 4 and set the following parameters' value to
FALSE
- sapgui/user_scripting_disable_recording
- sapgui/user_scripting_force_notification
- sapgui/user_scripting_per_user
- sapgui/user_scripting_set_readonly
Notes: All changed values in transaction RZ11
are temporary and will be lost after the system restarts. To change permanently, please contact SAP System Administrator.
Client Side Configuration
- Select the menu
Options
- Go to Accessibility & Scripting and click on scripting.
- Check the Enable scripting option.
- Clear the checkbox for the following options:
- Notify when a script attaches to SAP GUI
- Notify when a script opens a connection
- Save the changes by clicking OK. The SAP WinGUI scripting is now enabled.
Enabling Modal Dialog Boxes
- From the SAP Easy Access window, click Settings under the Help menu. The Personal Settings for user window is displayed.
- Access the F1 Help tab and select the Modal Dialog Box option from the Display section.
- For date selection, access the F4 Help tab and select Control (amodal) option from the Display section.
- Click the Apply button to save changes and close the Personal Settings for User window.