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.
How to enable SAP Scripting on the SAP Logon client side?
- Go to SAP GUI Options
section Accessibility & Scripting
- In the section User Settings check the “Enable scripting” checkbox.
How to enable SAP Scripting on the SAP server side?
Basis team needs to set the RZ11 system parameter
to value TRUE.
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 .
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
- SAP GUI Scripting Security Guide
- Community Wiki on SAP GUI Scripting