clientConnect

The service establishes a connection to an SAP system.

Input parameters
serverName
Alias of the SAP system to which the connection must be established. The name must match a configured RFC connection alias at SAP® ERP.
$client
Optional. Client for the session. If no client is specified, the default client is used.
$user
Optional. User name for the session. If no user is specified, the default user is used.
$pass
Optional. Password for the session. If the password is not specified, then the user and password must be looked up in the SAP User store.
$language
Optional. Language used during the session. If no language is specified, the default language is used.
Return values
result
Returns Ok if connection is established successfully.

Example

Use clientConnect when you want to establish a connection to a target SAP system. It might be useful for creating a session pool. In the most common scenarios, it is not necessary to start this service explicitly, as it is started implicitly. For example, when a clientInvoke or clientInvokeTransaction is issued.