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 is an authorization in sap?
What is the function of the correction system? : abap data dictionary
Explain what is sequence of event triggered in report?
Difference between sy-tabix and sy-index? Where it is used?
Does every abap/4 have a modular structure? : abap modularization
What is the difference between table and template?
Find the scenario and give the result: a, b, c are employees, where a, b will get basic, hra, da. C gets basic and da. How to group for the allowances? : sap abap hr
Difference between user exit and badis?
Does sap handle multiple currencies?
What is the difference between skip and new-line?
How are BAPI different from normal function modules?
How to create any functions? How to go about it?
Do you know any other patterns if yes.. explain
What is the full form of spro? : sap abap hr
While using extract datasets it is required to have a special workarea for interface. State true or false. : abap modularization