‎2007 Apr 03 12:29 PM
Hi people,
I have a theory question:
What differences are there between commit work and commit work & wait?
Thx
‎2007 Apr 03 12:31 PM
Hi,
<b>COMMIT WORK:</b>
This statement will apply any outstanding database updates and wait until they have actually been put on the database before proceeding to the next statement.
An ordinary commit work will initiate the process to update the databases in a separate task and will press on in your abap.
COMMIT WORK: ( Asynchronous)
Your program does not wait for any acknowledgement. it just start executing the next statment after COMMIT WORK.
<b>COMMIT WORK and WAIT</b>: (Synchronous)
Whereas For <b>COMMIT WORK and WAIT</b>, the system waits for the acknowledgment, and then moves to the next statement.
Hope this resolves your query.
Reward all the helpful answers.
Regards
‎2007 Apr 03 12:33 PM
An ordinary commit work will initiate the process to update the databases in a separate task and will press on in your abap.
COMMIT WORK: ( Asynchronous)
Your program does not wait for any acknowledgement. it just start executing the next statment after COMMIT WORK.
Using Wait will make it to halt for acknowledgement.
~As find in SDN
Regards,
Amit
‎2007 Apr 03 12:33 PM
Hi,
Look at the below link
http://help.sap.com/saphelp_nw04/helpdata/en/d2/7849b8bec911d4b2e80050dadfb92b/content.htm
Regards
Sudheer
‎2007 Apr 03 12:34 PM
Hi Manel
This i took from SAP help.
COMMIT WORK
This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.
COMMIT WORK AND WAIT
This form specifies synchronous processing. The commit statement waits for the requested functions to finish processing. Control returns to your program after all high priority (V1) function modules have run successfully.
The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.
Hope this helps !!!
Britto
‎2007 Apr 03 12:34 PM
Hi Manel,
Commi work means until and unless your reuest complete control doesn't wait but commit worn & wait control should be wait.
Hope this helps you, reply for queries, Shall post you the updates.
Regards.
Kumar. .