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
What are the differences between structure and table in data dictionary in abap? : sap abap data dictionary
On which even we can validate the input fields in module progams?
Can i know some of the Realtime tickets that anyone has been faced ?
What is cts and what do you know about it? : abap hr
i have cleared my technical round and manager round in cts but they told me u will get a call with in couple of days now i dont know about my status
What is the function of a domain? : abap data dictionary
Explain client-dependent and client-independent tables.
How do you retrieve the data for repetitive structures ? : abap hr
What is ole?
What are the differences between a database index and a match code?
Can we set page headers to details lists?
What are the advantages of different types of bdc's?
What will exactly the hide statement do?
How can we decide weather we can enhance the standard infotype or not ? : abap hr
Explain what is runtime analysis?