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

update task

Former Member
0 Likes
951

hi,

what is meant by update task.

1 ACCEPTED SOLUTION
Read only

h_senden2
Active Contributor
0 Likes
917

sometimes you want to execute some actions after the commit work has been executed. When you do these actions, you can perform them (mostly function modules) IN UPDATE TASK, so they will be execute in update modus.

regards,

Hans

7 REPLIES 7
Read only

h_senden2
Active Contributor
0 Likes
918

sometimes you want to execute some actions after the commit work has been executed. When you do these actions, you can perform them (mostly function modules) IN UPDATE TASK, so they will be execute in update modus.

regards,

Hans

Read only

Former Member
0 Likes
917

Hi,

The main update technique for bundling database changes in a single database LUW is to use CALL FUNCTION... IN UPDATE TASK. This section describes various ways of updating the database.A program can send an update request using COMMIT WORKTo the update work process, where it is processed asynchronously. The program does not wait for the work process to finish the update ( Asynchronous Update).For asynchronous processing in two steps ( Updating Asynchronously in Steps.)To the update work process, where it is processed synchronously. The program waits for the work process to finish the update ( Synchronous Update).To its own work process locally. In this case, of course, the program has to wait until the update is finished ( Local Update.)Asynchronous Update A typical R/3 installation contains dialog work processes and at least one update work process. The update work processes are responsible for updating the database.

Regards

Sudheer

Read only

0 Likes
917

thanks for sending the details .

i have studied the details. But i did not understand properly can u send me a small example or any scenario.

if u send it that will be helpful for me.

thank you.

Read only

Former Member
0 Likes
917

Hi,

Update Task is related to LUW(Logical unit of work). Suppose we are updating dissrent tables using update statment but what we want is to update the datbase only if the last update is successfull in that case SAP associate all the task in LUW using Update task so that all the tables get updated in one go.

Thanks

Tanweer

Read only

Former Member
0 Likes
917

hi

good

To apply the changes made to the runtime objects of persistent classes to the actual persistent objects in the database, execute the COMMIT WORK statement. (Alternatively, use COMMIT WORK AND WAIT or SET UPDATE TASK LOCAL). Unless you are executing an object-oriented transaction from within the Transaction Service, you must include the COMMIT WORK statement explicitly in the program. Otherwise, it is encapsulated in the Transaction Service. (If you explicitly include the COMMIT WORK statement as described here, the t op-level transaction runs in compatibility mode).

http://help.sap.com/saphelp_nw04/helpdata/en/d2/7849b8bec911d4b2e80050dadfb92b/content.htm

reward point if helpful.

thanks

mrutyun^

Read only

0 Likes
917

thanks for sending the details .

i have studied the details. But i did not understand properly can u send me a small example or any scenario.

if u send it that will be helpful for me.

thank you.