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:rollback
 
pub.sap.bapi:rollback
Rolls back a transaction with a single or multiple BAPI calls.
Note:
You need to use pub.sap.client:lockSession or pub.sap.client:releaseSession to keep your connection in transaction scenarios because 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.
Return Values
Return
Return code in BAPI style keeping the success/failure of the commit.