Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Commit work and wait without asynchronous function modules

Former Member
0 Kudos

Hello,

I have a question regarding COMMIT WORK AND WAIT.

What I understood so far is that the additionon of AND WAIT will make the processing synchronus, e.g. waiting for function module which were called IN UPDATE TASK.

However, what does this mean in case of changes which were called not in update task?

Considering I have made change via (non BAPI) standard function modules. These modules were not called in update task. Thus the "only" thing to do after committ is to actually write changes to the data base.

In my understanding in this case COMMIT WORK and COMMIT WORK AND WAIT will not make a difference as my changes will be processed synchronously anyways. This is since the pure COMMIT WORK will also wait for my changes to be written to the data base.

Am I right with this assumption?

Thank you very much for your help

3 REPLIES 3

Former Member
0 Kudos

Can anybody help me out with this question?

raymond_giuseppi
Active Contributor
0 Kudos

Read the COMMIT WORK statement documentation.

  • At a step, it will execute update task FM, if no high-priority update task FM "VB1" was registered, the WAIT will be ignored.
  • At the last step it will trigger a database commit, so validating change executed out of standard (...) Of course no other Explicit or Implicit Database Commits should have been already triggered)
  • Of course there can be delay due to database server and buffering, but this is an other story...