I Have a C# web application that call multiple BAPI and stored procedure at one of the function in ASP.net Website. i need to rollback all the bapi executed on the function that called on the web if one of the method inside the function is failed.
in SQL I call
SqlTransaction transaction = connectionsql.BeginTransaction();
...
transaction.Rollback();
on the c# code if one of the method failed. (this can be done for sql rollback)
but for the SAP BAPI , even if i call BAPI_TRANSACTION_ROLLBACK on C# catch statement , the changes is still there. (rollback not success)
FYI , in my BAPI Function i use CSAP_MAT_BOM_MAINTAIN to update the BOM information.
is there any way to do rollback like sql transaction on my C# code for SAP BAPI Function and rollback all the BAPI run on C# if the web catch an exception ?