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 the different between abap and ooabap? Why do we use ooabap?
Explain the session method? : abap bdc
What is the function of the correction system?
What is Buffering Concept? When should a Table be buffered?
Can a transparent table exist in the data dictionary but not in the database physically?
What are the different types of luws?
Explain the advantages/disadvantages of logical databases?
What are the Synchronous and asynchronous methods in bdc ?
What is payroll area
What are screen painter and menu painter? : abap hr
Print options in smartforms?
What is the function of a data element?
What is Field group?
What are the two different ways of building a match code object?
What is full form of bdc session? : abap bdc