Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Handling rollback after using bapi_transaction_commit

Former Member
0 Likes
375

Hi,

I have a requirement where I need to dismantle an equipment from its current function module and install in a new function module. After successful installation i have to update the order and notification. If installation was not successfull I have to rollback the changes I have made to the equipment .

A snapshot of my code



Call function module BAPI_EQUI_DISMANTLE

Bapi_transactio_commit (For the above thing to commit i have to use this compulsorily because unless until the equipment is
dismantled i cannot install it to a new loation in the next step )

Call function module BAPI_EQUI_INSTALL

if not successfull

Rollback.. Here I have to rollback the changes that I have done by using commit for dismantling. 

endif. 

Please suggest me a best way to handle this.

1 REPLY 1
Read only

Former Member
0 Likes
303

Not possible.

The moment you commit the dismantling, you can't rollback the dismantling. Looks like you have to re-install.