Call function module IN Update Task
I have already read the forum posts about the update task addition and subsequent 'commit work', so please dont post links.
I am trying to update custom tables using statement -
MODIFY ZZ* from ITAB
. The enqueue and dequeue function modules are wrapped around the modify statement and this code is in a custom function module (called from a EDI user exit)
The values in this custom table are not getting updated sometimes and this has been a issue. To address this issue I have decided to call the custom function module using the addition 'IN UPDATE TASK' and commit the changes using COMMIT WORK in asynchronous mode.
CALL FUNCTION XXX IN UPDATE TASK EXPORTING XX TABLES XX COMMIT WORK.
My question is - Does the COMMIT WORK statement commit only the LUW in the function module or could it commit all the pending changes of other LUW as well.
I am worried about using this statement since a COMMIT WORK in user exit could commit some VBAK or VBAP changes that should not have been committed.