Hi Sanjana,
As per my understanding from your requirement is u want to revert back particular transaction after completion of whole process .
In this case u can create a static variable of internal table type and keep all transaction entity and as per condition u can revert back the transaction entity .
lr_transaction ?= lr_entixxxxx->get_transaction( ).
if lr_transaction is bound.
if lr_transx->CHECK_SAVE_NEEDED( ) = abap_true. "Check if any unsaved object
lr_transx->revert( ). "Revert all if not saved
endif.
endif.
Hope it will help ![]()
Regards
Alok