Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Built-in Services | BAPI Services | pub.sap.bapi:commit
 
pub.sap.bapi:commit
Commits a transaction with a single or multiple BAPI calls.
Note:
You need to use pub.sap.client:lockSession/releaseSession to make sure to keep your connection in transaction scenarios as the transaction context is stored with the session in the SAP system.
Input Parameters
serverName
Alias of the SAP system on which the transaction is committed. This name must match an 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.
wait
Optional. Flag indicating if call will wait until data is really written to database.
Return Values
Return
Return code in BAPI style keeping the success/failure of the commit.