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: 

Is "COMMIT WORK AND WAIT" a local update task?

phoenixming0912
Product and Topic Expert
Product and Topic Expert
0 Kudos
542

Hi experts,

If an update task was called and then COMMIT WORK AND WAIT.

Is the update task running in current process or in another update process?

Regards,
Eric

6 REPLIES 6

raymond_giuseppi
Active Contributor
433

It depends, did you call SET UPDATE TASK LOCAL before (no crystal ball available)

  • NO - updates will perform in the update work process , but current process will wait til high-priority update function modules (synchronous updating)
  • YES - updates will perform in the current work process

0 Kudos
433

I think there is just COMMIT WORK AND WAIT. But in call stack, you can see a LOCAL_UPDATE_TASK, looks like it's a form in COMMIT WORK AND WAIT (if you switch on system debug).

0 Kudos
433

There is also a parameter abap/force_local_update_task = [0,1].

(You mean the form local_update_task of SAPMSSY4)

0 Kudos
433

phoenixming0912 You should verify. Add a breakpoint at SET UPDATE TASK LOCAL early in the execution.

Local update task may also be activated via "call transaction using" with option updmode = 'L'.

Sandra_Rossi
Active Contributor
433

The ABAP documentation made by SAP gives all the details.

Sandra_Rossi
Active Contributor
433

"update task was called" is not very clear, I guess you mean "CALL FUNCTION ... IN UPDATE TASK ... was done".