2022 Dec 04 4:24 AM
Hello experts,
I need to submit a executed program after a project or wbs element is created. I try to use badi WORKBREAKDOWN_UPDATE and PROJECTDEF_UPDATE to do that. But these badi were working when database not commit.
How can i be sure to submit my program after the database COMMIT of the CJ20N?
Thanks a lot for your time.
Regards,
Son
2022 Dec 04 4:47 PM
One of the possibilities is to set a handler on the event TRANSACTION_FINISHED of class CL_SYSTEM_TRANSACTION_STATE, so that to trigger your own method. The event is raised both for COMMIT WORK and ROLLBACK WORK, so test the parameter KIND for the value CL_SYSTEM_TRANSACTION_STATE=>COMMIT_WORK (not rollback).
See the ABAP documentation for more information.
2022 Dec 05 7:28 AM
Hello nguyencongson1807_96
I can basically see two options:
Best regards
Dominik Tylczynski
2022 Dec 05 2:44 PM
Check answers such as Trigger Proxy after PRPS table updation via CJ20 , CJ01 and CJ02