transaction flows
Hi. I have a function module that calls five(5) BAPI_GOODSMVT_CREATE sequentially. My question is what if SAP goes down while it's executing the 3rd BAPI? ...All 5 transactions must be executed successfully or none at all.For this example, it should return 5 matdocs (mblnr).
It depends on when the BAPI_TRANSACTION_COMMIT happens.
If you want all or nothing, you could put the COMMIT at the end of the entire function.
Thanks for the reply.
Actually, if I put the commit after the 5th transaction, it does not save the 4 material documents created for the 4 previous Bapi's...
Unfortunately that's impossible. I've looked through the source code of BAPI_GOODSMVT_CREATE and it's clear that you can create only one material movement in one DB transaction (say between two COMMITs)
_________________
Best regards, Sergey Korolev