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

About Commit work

Former Member
0 Likes
384

Hi.

Suppose, my program inserts records into several tables and at the end of insertion

commit work.

is executed.

After this new process is started that is invisible for us and where records insertion is really executed.

How in the new SAP LUW determine when that process will be finished (by system global variables or something else)?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
367

If you don't use the AND WAIT option, the new process will not be able to acknowledge the end of the update task. There are some tricks like try to SELECT a record that is written in database during the update task, or, better, locking an object that will be released at the end of the update task (The normal way). Some programmers even went to selecting from the tables (VBLOG) used in SM13 to check the completion of an update task...

Regards

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
368

If you don't use the AND WAIT option, the new process will not be able to acknowledge the end of the update task. There are some tricks like try to SELECT a record that is written in database during the update task, or, better, locking an object that will be released at the end of the update task (The normal way). Some programmers even went to selecting from the tables (VBLOG) used in SM13 to check the completion of an update task...

Regards

Read only

0 Likes
367

Thanks.