Procedure
1) Open transaction RZ11 in the system.
2) Enter the parameter name sapgui/user_scripting and click on Display.
3) If the parameter value is currently set to FALSE, click on the Change Value button in the toolbar.
4) A window will open. Enter the new value TRUE and save your changes.
5) Repeat the previous steps for all available parameters mentioned above.
Activating scripting on the client
You have to activate scripting on the client to steer SAP applications via the SAP scripting interface.
1) Open the menu in the Logon window by clicking on the icon and select the menu entry Options.
2) Switch to the view Accessibility & Scripting->Scripting and enable the scripting function.
3) In addition, disable the following options: Notify when a script attaches to SAP GUI and Notify when a script opens a connection.
Activating modal dialog boxes on the client
You have to activate modal dialog boxes on the client to steer SAP applications.
1) Open the SAP GUI window and select the menu entry Help->Settings... on any screen.
2) Switch to the F1 Help tab and select the option In Modal Dialog Box in the Display section.
3) Switch to the F4 Help tab and select the option Dialog (modal) in the Display section.
4) Confirm by clicking on the green check mark button.
Note - this is a per-user setting. The settings have to be configured on each client you want to test your application with. The SAP system administrator can set up the system default as Dialog (modal).