Enable support for SAP GUI for Windows

Prerequisite: Make sure that SAP GUI Scripting is installed

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 section.

Note: 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.

Back to top

Enable scripting on the SAP application (server-side)

  1. Confirm that you have the proper support package and kernel patch levels installed:

    Software Component

    Release

    Support Package

    Kernel Patch Level

    SAP_APPL

    31I

    SAPKH31I96

    Kernel 3.1I level 650

    SAP_APPL

    40B

    SAPKH40B71

    Kernel 4.0B level 903

    SAP_APPL

    45B

    SAPKH45B49

    Kernel 4.5B level 753

    SAP_BASIS

    46B

    SAPKB46B37

    Kernel 4.6D level 948

    SAP_BASIS

    46C

    SAPKB46C29

    Kernel 4.6D level 948

    SAP_BASIS

    46D

    SAPKB46D17

    Kernel 4.6D level 948

    SAP_BASIS

    610

    SAPKB61012

    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.

  2. Enable scripting on your SAP application. (By default, scripting is disabled.) You do this by entering the Maintain Profile Parameters window with administrative permissions and setting the sapgui/user_scripting profile parameter to TRUE on the application server.

    • To enable scripting for all users, set this parameter on all application servers.
    • To enable scripting for a specific group of users, set the parameter only on application servers with the appropriate access restriction settings.

    For more details, see Enable scripting on the SAP Application (Server-Side).

  3. 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.

Back to top

Enable scripting on the SAP application (client-side)

You can do this on your SAP client only if 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. For details, see your SAP GUI for Windows documentation.

Eliminate warning messages

By default, you regularly receive two warning messages when using UFT with an SAP GUI for Windows application:

  • When UFT connects to the Scripting API, the following warning message is displayed: A script is trying to attach to the GUI.
  • When UFT 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.

Back to top

Check the connection speed on the SAP server

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 to properly record and run tests. (UFT displays an error message if the Low speed connection option is selected.)

For details, see SAP OSS note #587202.

Back to top

Set F1 Help to use the modal dialog box mode

Confirm that the modal dialog box option is selected. This enables UFT 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.)

Back to top

Set F4 Help to use the dialog display mode

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 SAP Solutions Add-in. Alternatively, the SAP system administrator can change the system default for you.

Back to top