Application Development and Automation 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: 
Read only

Difference between commit and commit and wait

Luca_Cavarretta
Explorer
0 Likes
2,903

what is the difference between:

-commit

-commit and wait

I need the commit which "saves" everything before moving forward

thank you

2 REPLIES 2
Read only

BiberM
Contributor
2,721

The difference is that the latter waits for All asynchronous Update Tasks to be finished before the Code after the commit Statement.

Read only

Sandra_Rossi
Active Contributor
2,721

Not very difficult to find the answer in the ABAP documentation: "if the addition AND WAIT is specified, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating)."