How to Set General Settings to Enable/Run GUI Script
Background:
Some of the new and Enjoy Transactions require GUI Scripting for its execution. In order to enable GUI Scripting for SAP GUI, some of the parameters are to be set in SAP. These parameters do not necessarily exist on all SAP systems by default but they should be set as demonstrated below – if present in RZ11.
How to Enable GUI Script For All Users
To enable settings for GUI scripting, in SAP assign profile parameter as below:
| Sr. No | Parameter | Set Value |
Description |
|---|---|---|---|
| 1 | sapgui/user_scripting | TRUE | By default, GUI scripting is not enabled in SAP system. To enable GUI scripting, set the value of this profile parameter to TRUE. |
| 2 | sapgui/user_scripting_disable_recording | FALSE | When this parameter is set to FALSE, script playback and recording both are possible. However if this parameter is set to TRUE, script playback is possible but recording is not permitted. |
| 3 | sapgui/user_scripting_force_notification | FALSE | When this parameter is set to FALSE, the display of notification will depend upon client options in ‘Warning options on Client Side’, whereas if this parameter is set to TRUE, a notification is constantly displayed at the frontend despite of the client options at 'Warning options on Client Side'. |
| 4 | sapgui/user_scripting_set_readonly | FALSE | Set this parameter to FALSE to enable us to read as well as modify user interface elements in SAP GUI Scripting. When this parameter is set to TRUE. Scripts may only act on read-only user interface elements. |
| 5 | sapgui/nwbc_scripting (EHP7 onwards) | FALSE | It is recommended to set this parameter as FALSE if you are not using NWBC with side panels. |
Profile parameter ‘sapgui/nwbc_scripting’ is only available in EHP7 and onwards.
Profile Parameter ‘sapgui/user_scripting_disable_recording’, ‘sapgui/user_scripting_force_notification’ and ‘sapgui/user_scripting_set_readonly’ are not available on all SAP Systems. If a parameter is not found, ‘Parameter name is not known’ message is displayed in SAP GUI.