DI-API: endTransaction

sap-sdk

 

Ends a global transaction that started with the StartTransaction method.

 

endTransacton=endType
0=commit
1=Rollback

 

You can only use the StartTransaction and EndTransaction methods when the connection with the database is active.

If an exception occurs when you call EndTransaction, the changes are not committed. To correct this:

Troubleshoot and fix the exception.

Call StartTransaction.

Resubmit the changes (by calling the Add, Update, and Delete methods).

Call EndTransaction.