Skip to Content

How to peform work after commit?

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 14, 2019 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2019 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.