What is update task

Answer Posted / paresh

The IN UPDATE TASK statement allows you to call a function
module but it will not be executed until an update task is
initiated by the 'COMMIT WORK' statement. This means that
the program logic after calling the FM will immediately
continue with the next line of ABAP code and the FM will sit
and wait for the commit work. This also allows you to
execute several sections of code asynchronously by calling
the ABAP function module with the IN UPDATE TASK statement
then performing the commit work command. See example below!

Execute FM in update task with separate unit of work

CALL FUNCTION 'Z_FMODULE' IN UPDATE TASK
EXPORTING
P_UNAME = sy-uname.

commit work. "Commits all work to database and also starts
all FM's running in update task

"loop at it_ekko. "program continues with next line of ABAP
without waiting for update and FM to finish
"...
"endloop.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functional areas?

789


What are the aggregate objects in the dictionary? : abap data dictionary

940


can anyone please tell me, in orient paper mill project which fields exits for creating report.

1481


Can we include customizing include or an append structure with pooled or cluster tables? : abap data dictionary

959


What is the difference between RETURNING and CHANGING parameters for a method?

1284






What is foreign key relationship? : abap hr

786


Explain what is a logical database?

777


Explain the use of insert and append statement in sap abap?

795


Explain the session method? : abap bdc

823


What is native sql?

792


What is personnel sub are

1740


Give Some examples of reports generated in real time scenarion? Also give examples of standard reports in SAP used in real time?

2537


How do you activate a function exit?

743


How to transfer data into line items using batch input session method? : abap bdc

770


How do you write manual bdc session method? : abap bdc

786