Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Built-in Services | SAP Client Services | pub.sap.client:connect
 
pub.sap.client:connect
Establishes a connection to an SAP system.
Input Parameter
serverName
Alias of the SAP system to which the connection is established. The name must match a configured RFC connection alias at Adapter for SAP.
$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 will 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
"Ok" if connection was established successfully.
Example
Use the pub.sap.client:connect service when you want to establish a connection to a target SAP system. This might be useful for creating a session pool. In the most common scenarios, it is not necessary to invoke this service explicitly, as it is invoked implicitly (for example, when a pub.sap.client:invoke or pub.sap.client:invokeTransaction is issued).