This topic describes the operations you must perform before you use the SAP Solutions Add-in to test SAP GUI for Windows applications.
When you install your SAP GUI for Windows application, select the SAP GUI Scripting installation option. If you did not select this option when you installed the SAP GUI for Windows application, it is essential that you reinstall it and select this option before setting the other configuration options described in this
SAP provides a range of security mechanisms that enable the administrator to limit the use of SAP GUI Scripting by system, by group, by user, and by scripting functionality. To test SAP GUI for Windows applications, you must ensure that these security mechanisms are not activated. For details on the various security options, see the online SAP GUI Scripting Security Guide at the SAP Service Marketplace.
UFT One communicates directly with the SAP GUI Scripting API and records and runs steps based on the API events sent from the client to the SAP server.
Therefore, to record and run tests and business components on an SAP GUI for Windows application or on an SAP NWBC client running SAP GUI, you must enable scripting on both the server and client sides. By default, scripting is disabled.
To enable scripting on the server side:
Confirm that you have the proper support package and kernel patch levels installed:
Kernel Patch Level
Kernel 3.1I level 650
Kernel 4.0B level 903
Kernel 4.5B level 753
Kernel 4.6D level 948
Kernel 4.6D level 948
Kernel 4.6D level 948
Kernel 6.10 level 360
Note: This table shows the minimum required versions and levels. You must have these versions and levels or higher.
For details, see SAP OSS note # 480149.
Enable scripting on your SAP application.
Enter the Maintain Profile Parameters window of transaction rz11 with administrative permissions.
Set the sapgui/user_scripting parameter to TRUE on the application server.
Set the sapgui/nwbc_scripting parameter to FALSE on the application server.
For more details, see Enable scripting on the SAP application (server-side).
To enable scripting for all users, set the parameters on all application servers. To enable scripting for a specific group of users, set the parameters only on application servers with the appropriate access restriction settings.
Note: If you connect to a server on which scripting is disabled, an error message displays when you try to record on your SAP GUI for Windows application.
To enable scripting on the client side:
Make sure the SAP GUI Scripting option is installed. If this option is not installed, reinstall your SAP GUI for Windows application and be sure to select the SAP GUI Scripting check box.
Eliminate warning messages on your SAP client.
By default, you regularly receive two warning messages when using UFT One with an SAP GUI for Windows application:
When UFT One connects to the Scripting API, the following warning message is displayed: A script is trying to attach to the GUI.
When UFT One opens a new connection using the Scripting API, the following warning message is displayed: A script is opening a connection to system <system_name>.
We recommend disabling these warning messages in the SAP GUI for Windows application when working with UFT One.
Confirm that the Low speed connection option is NOT selected for the server to which you are connecting before recording and running GUI tests.
This is because when you log on to SAP using the Low speed connection option to communicate with the server, the SAP server does not send sufficient information for UFT One to properly record and run tests. (UFT One displays an error message if the Low speed connection option is selected.)
For details, see SAP OSS note #587202.
Confirm that the modal dialog box option is selected. This enables UFT One to record the display of F1 Help in your tests. (The F1 Help in your SAP GUI for Windows application can be displayed using either the Performance Assistant or as a modal dialog box.)
Confirm that your client is set to load F4 Help screens in Dialog mode. (The SAP GUI for Windows application cannot load F4 Help screens in Control mode when using the SAP GUI Scripting API (Enable Scripting option.)
Note: This is a per-user setting. You must set this option on each client that you want to test using the UFT One SAP Solutions Add-in. Alternatively, the SAP system administrator can change the system default for you.
Disable recording on the SAP application
Note the following when you disable recording on your SAP application (by setting the sapgui/user_scripting_disable_recording parameter to TRUE):
UFT One can run your existing tests on the application.
The objects on the application are spied as Standard Windows objects, not SAPGUI objects.
If you click the Record button in UFT One, the Record toolbar appears but it does not work.