Skip to main content

Connect

Log on to an SAP system through SAP JCo (application server or message server with a logon group, optional SAP router and SNC) and keep the logon for the following steps.

Command in the SAP BAPI toolkit · id ooa.sap_bapi/connect · 19 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
HostStringNoApplication server host name or IP address; it may come from the vault.
System numberStringNoTwo-digit SAP system (instance) number.
ClientStringYesThree-digit SAP client.
UserStringNoSAP user name; it may come from the vault.
PasswordCredentialNoSAP password from the vault.
LanguageStringNoENLogon language, e.g. EN or DE.
Message serverStringNoMessage server host, for load balancing instead of one application server; it may come from the vault.
System IDStringNoThree-character system ID (with a message server).
Logon groupStringNoPUBLICLogon group (with a message server).
RouterStringNoSAP router string.
Snc partner nameStringNoSNC name of the SAP system; turns on SNC (secure, single sign-on).
Snc libraryFileNoPath of the SNC library (e.g. sapcrypto.dll) when SNC is used.
PropertiesDictionaryNoOther JCo destination properties, e.g. {"jco.destination.pool_capacity": "3"}.
SessionStringNosapSession name; one SAP logon per session.
Sign inStringNoHow to sign in: password (user and password), snc (secure network single sign-on), or snc_and_password (secure network plus user and password); worked out from the fields when empty.
Snc protectionStringNomaximumSNC protection level: authentication only, integrity, privacy (encryption), the system's default, or the maximum both sides support.
Gateway hostStringNoGateway host, when it is not the application or message server.
Gateway serviceStringNoGateway service (sapgwNN) or port, with the gateway host.
Jco folderFileNoFolder holding sapjco3.jar and its native library, for this runner; the runner's usual places are used when empty.

Outputs​

OutputTypeWhat it is
systemDictionarysystem_id, client, user, host and release of the logon.