--- title: "SAP GUI Connection Settings in ScriptBuilder" slug: "sap-gui-connection-settings-in-scriptbuilder" updated: 2026-08-12T11:48:36Z published: 2026-08-12T11:48:36Z canonical: "success.panaya.com/sap-gui-connection-settings-in-scriptbuilder" --- > ## Documentation Index > Fetch the complete documentation index at: https://success.panaya.com/llms.txt > Use this file to discover all available pages before exploring further. # SAP GUI Connection Settings in ScriptBuilder ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-9QVCEQBU.png) --- ## Direct SAP Connection If no default connection has been defined, ScriptBuilder will allow you to select a connection from a list. --- ## Interactive SAP GUI Connection An alternative login method. When selecting this option, the “Connect to SAP” instruction will open the SAP Login screen, allowing the user to view the username and password input. The “Direct” option bypasses these steps for immediate connection. > [!CAUTION] > Important! > > Use this connection method when the **Direct SAP Connection** does not work or when your [SAP GUI Security settings](https://success.panaya.com/docs/sap-test-automation-setup#scripting-and-security-settings) do not allow SAP GUI to be started from the command line. > > With the **Interactive SAP GUI Connection**, the [SAP Connection Name](https://success.panaya.com/docs/sap-connections) in Panaya must match the name of the SAP server in SAP GUI. > > For the **Interactive SAP GUI Connection**, set the [**SAP logon exe path**](https://success.panaya.com/docs/sap-connection-settings-in-scriptbuilder#sap-logon-exe-path) to the location of **saplogon.exe**. --- ## SAP logon exe path Panaya predefined the SAP logon exe path, which should be directed to the location of **sapshcut.exe**. You can override the path if necessary. The path appearing here will determine the path used for the connection instruction in the script. Learn more about [SAP Connections](/v1/docs/sap-connections). --- ## Automatically close SAP Logon You can configure ScriptBuilder to close SAP Logon at the end of the execution by enabling this setting. This helps maintain clean SAP sessions and can improve troubleshooting by preventing unnecessary active SAP Logon instances. [Learn more about SAP GUI and SAP Logon Behavior by the execution mode](/v1/docs/sap-gui-and-sap-logon-behavior-by-execution) ![](https://cdn.document360.io/f404076c-de23-4609-848e-2dfd4ef701b0/Images/Documentation/image-A8ESTZ7C.png)