‎2010 Oct 28 2:40 PM
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.
‎2010 Oct 28 2:44 PM
Not possible.
The moment you commit the dismantling, you can't rollback the dismantling. Looks like you have to re-install.