Mentor SAP
Within an SAP LUW, you may want to postpone the execution of a change of a specific database table to the end of the corresponding database LUW. To achieve this, you can use the PERFORM ON COMMIT technique within the code of the update function modules.

 

Encapsulate the changes to that specific table in a subroutine within the appropriate function group that belongs to the corresponding update module. Then, call this routine from within the update module using PERFORM ON COMMIT. This form routine is then not executed until the last update module of the SAP LUW is processed.

 

Remember that these form routines must work with the global data of the respective function group.