2019 Oct 14 2:46 PM
PEFORM subroutine on COMMIT executes the subroutine before the actual commit happens. Is there any way to call a function module or subroutine AFTER the actual commit happens?
2019 Oct 14 3:04 PM
(1) Create an event handler method for TRANSACTION_FINISHED event of CL_SYSTEM_TRANSACTION_STATE class and implement your logic there.
(2)SET handler in your enhancement logic
2019 Oct 14 3:04 PM
(1) Create an event handler method for TRANSACTION_FINISHED event of CL_SYSTEM_TRANSACTION_STATE class and implement your logic there.
(2)SET handler in your enhancement logic
2019 Oct 14 3:28 PM
Thanks for the solution. My follow-up question is: how do I export parameters from my SET HANDLER context to my event handler method? (I tried to add parameters to my event handler, but I get the error "Event parameter <param> does not exist" )
2019 Oct 14 4:56 PM
2019 Oct 14 3:15 PM
You mean, that during the internal processing of ABAP "COMMIT WORK", all recorded "PERFORM subroutine ON COMMIT" (before COMMIT WORK) are actually processed before the database commit occurs.
2019 Oct 14 4:19 PM
Hi
You can try implementing your logic in function modules and use the update option as V1 or V2. Though all the FMs will be triggered on COMMIT, you can determine which FMs trigger first at commit. See if it serves your requirement.
Regards
GK
2019 Oct 14 4:58 PM
There are several solutions proposed by SAP. So that to limit the number of answers, can you explain what kind of logic you want to perform?
2019 Oct 16 4:05 PM
Agreed with your clarification of the question sandra.rossi (I am unable to edit the question now).