Technical Articles
Technical steps to prepare for SAP GUI automation
Before we can use automation with SAP GUI, both SAP GUI client and SAP server needs to allow SAP scripting. The SAP GUI Scripting behavior can be also modified per machine in the Windows Registry.
Client-side setup
How to enable SAP Scripting on the SAP Logon client side?
- Go to SAP GUI Options
section Accessibility & Scripting
select Scripting
- In the section User Settings check the “Enable scripting” checkbox.
Server-side setup
How to enable SAP Scripting on the SAP server side?
Basis team needs to set the RZ11 system parameter
sapgui/user_scripting
to value TRUE.
Notes
There are also more fine grained options available now for SAP Scripting, for example if we need to allow read only mode or in case we want to disable recording new scripts. For additional parameters that modify the usage of sapgui/user_scripting, please read the referenced documentation below [1].
Windows Registry setup
Administrator should check the following registry key exists in the Windows Registry
HKEY_LOCAL_MACHINE\SOFTWARE\SAP\SAPGUI Front\SAP Frontend Server\Security
\UserScripting
The registry key should be set to 0 if the SAP GUI Scripting should be disabled on the particular machine.
HKEY_LOCAL_MACHINE\software\Wow6432Node\sap\SAPGUI Front\SAP Frontend Server
\Scripting
References
- SAP GUI Scripting Security Guide
- https://studio.uipath.com/docs/enabling-sap-gui-scripting
- Community Wiki on SAP GUI Scripting
SAP Notes
480149 – New profile parameter for user scripting at the front end