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
Explain how to Handle the internal tables in ABAP?
Different between Interface and Abstract classes?
Event handling in oops
What are the parameters in bdc_insert? : abap bdc
What are the functional modules used in sequence in bdc? : abap bdc
Difference between Insert, Update and Modify?
What are th control break events in abap?
What are base tables of an aggregate object? : abap data dictionary
What are advantages and disadvantages of logical data base
What functions does a data dictionary perform? : abap data dictionary
Work most on which module: name a few tables?
What kind of financial periods exist in sap? What is the relavent table for that?
What two statements are required in an abap program to output an icon using a write statement?
What are the three components of a work process?
Does the call transaction method allow multiple transactions to be processed by sap?