Skip to main content
Version: 10.3.1

SAP setup

note

Before you start working with the SAP GUI client, you have to turn on scripting both in SAP GUI desktop client and on the server side.

Client scripting setup

Scripting is enabled in the SAP GUI desktop client either in registry or manually.

Enable scripting in registry

To turn on scripting, add changes to the registry under each Bot or user. 

For all users by default (can be overridden by current user settings) – HKLM_WOW6432Node_SAP.reg
Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SAP\SAPGUI Front\SAP Frontend Server\Scripting]
"ShowNativeWinDlgs"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SAP\SAPGUI Front\SAP Frontend Server\Security]
"DefaultAction"=dword:00000000
"SecurityLevel"=dword:00000001
"UserScripting"=dword:00000001
"WarnOnAttach"=dword:00000000
"WarnOnConnection"=dword:00000000
For local users – HKCU_SAP_SETTINGS.reg
Windows Registry Editor Version 5.00


[HKEY_CURRENT_USER\SOFTWARE\SAP\SAPGUI Front\SAP Frontend Server\Scripting]
"ShowNativeWinDlgs"=dword:00000000

[HKEY_CURRENT_USER\SOFTWARE\SAP\SAPGUI Front\SAP Frontend Server\Security]
"DefaultAction"=dword:00000000
"SecurityLevel"=dword:00000001
"UserScripting"=dword:00000001
"WarnOnAttach"=dword:00000000
"WarnOnConnection"=dword:00000000

Enable scripting manually

Edit scripting settings

By default, when you run a recorded script, the following pop-up appears, that blocks script execution and must be switched off. 

To switch off the pop-up and proceed with script execution, do as follows.

  1. Open SAP GUI Settings > Options.

  2. Select Accessibility & Scripting > Scripting.

  3. If the warning message is thrown, the option Notify when a script attaches to SAP GUI is checked. Uncheck the following options:

    • Notify when a script attaches to SAP GUI
    • Notify when a script opens a connection.

  4. Click Apply followed by OK.

Enable connection by command line

To allow connection by command line, do as follows.

  1. Open SAP GUI Settings > Options.

  2. Select Security and click on the Open Security Configuration button.

  3. Specify Allow for Default Action.

  4. Click Apply to save the changes.

Application server scripting setup

Open SAP GUI and check if scripting is turned on.

If the appropriate menu item is grayed out, perform the following steps.

  1. Start the rz11 transaction. Enter the transaction code rz11 into the OK Code field and press Enter.

  2. Open the sapgui/user_scripting parameter. Enter the parameter name into the related field and either click Display or press Enter.

  3. To edit the current value, click on the Change Value button.

  4. In the window that follows, enter TRUE in the New Value field and press Save.

  5. Re-log into the system to view the changes.