Skip to Content
0
Former Member
Dec 03, 2007 at 04:21 AM

Rollback for BAPI

34 Views

In my application, I use 3 BAPIs executed one after the other. If any one of these BAPIs fail, I should rollback whatever database updates I did using the other BAPIs. Is it possible to achieve this? and how?

call BAPI A

if BAPI-A success

call BAPI-B

if BAPI-B suceess

call BAPI-C

if BAPI-C success

commit BAPI-A BAPI-B BAPI-C

else

rollback BAPI-A BAPI-B

else

rollback BAPI-A

endif.

Points will be rewarded.