SAP GUI connection with ScriptBuilder issue - Connection Failed

Prev Next

If you encounter this error message when trying to connect to SAP GUI with ScriptBuilder, please follow the instructions below to solve this issue.

  1. Please verify that you followed these steps to configure at least one SAP connection, for capturing scripts with Panaya ScriptBuilder.

  2. Check your SAP Connection Settings in ScriptBuilder and see if changing it to to a different one (Direct/Interactive) helps to resolve the issue.

    1. In ScriptBuilder, click on the main menu, and select Settings. Select the SAP GUI tab, and select Direct Connection. Click on ‘Browse’ (folder icon) and navigate to the path of your SAP GUI installation.

    2. By default, if you have the 32bit version of SAP GUI, the path will be:

      C:\Program Files (x86)\SAP\FrontEnd\SAPGUI\sapshcut.exe

      If you have the 64bit version of SAP GUI, the default path will be:

      C:\Program Files\SAP\FrontEnd\SAPGUI\sapshcut.exe

    3. After browsing to and selecting the sapshcut.exe, click Save to save the path, and try again to connect.

    4. It is recommended to try the Interactive Connection as well. Open the ScriptBuilder Settings, click on the SAP GUI tab, and select the Interactive Connection. Use the folder icon to browse to the correct path. The default paths (if not changed during installation) are:

      32bit SAP GUI: C:\Program Files (x86)\SAP\FrontEnd\SAPGUI\saplogon.exe

      64bit SAP GUI: C:\Program Files\SAP\FrontEnd\SAPGUI\saplogon.exe

    5. The Interactive Connection will only work if the Connection Name in Panaya equals the Connection Name in the SAP Logon Pad. To copy the connection name from SAP Logon, right-click onto the connection you wish to copy and select Properties:

      Copy the ‘Description’ - this needs to be the exact same in the Panaya Connection Name:

      In Panaya:

    6. It is recommended to add an instruction to ‘Connect to SAP’, select the correct SAP system, and select ‘Add instruction’. Once the instruction was added, click on ‘Play’ in ScriptBuilder. If there’s an error message showing that states RPC_E_SERVERFAULT, it means that the SAP Server does not have the required settings as documented here. Request your SAP Basis team to verify and adjust the settings.

  3. In this step, we will check the Executable file that runs under the Task Manager, as this can mean a Registry change is needed.

    To check this, please try to open ScriptBuilder again and connect it to the SAP system defined.

    Now, open the Task Manager and go to the Details tab. Check the SAP executable you are seeing:

    SAPgui exe

    OR saplogon.exe

    If you see the SAPgui.exe file running, please follow the below steps to enable the saplogon.exe file on your machine, as this can be the reason for the error above.

    To resolve this and to modify the Registry settings on your machine:

    1. Open the Registry Editor - under Windows Start type Regedit and click Enter

    2. Search for SAPGUI (not “SAPGUI Front“) folder under both of these paths:

      1. Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SAP\SAPGUI

      2. Computer\HKEY_CURRENT_USER\Software\SAP\SAPGUI

    3. Look inside these paths above for the “StartSapLogon“ key and open it
       

    4. If the value is 0 - change it to 1. If it appears on both paths, change it in both locations.

      This is what you should see:

    5. Close any open SAP GUI or SAPLogon windows.

    6. Try again to connect to SAP from ScriptBuilder.