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
How would you suppress the display of a parameter on the selection screen?
Power is interrupted while transferring data from internal table to application server. How will you determine many records are transferred in session method and call transaction method? : abap bdc
How do you do bdc for a table control? : abap bdc
Define batch input session?
how to modify the standard method as per your requirement
What is size category?
Explain the different types of screen keywords?
What are the differences between the table and the structure in the data dictionary in the sap abap?
Abstract class and interface, multiple inheritance, live example
Describe the data classes?
What are the types of subroutines? : abap data dictionary
What are null values? : abap data dictionary
How to select valid lines for secondary list?
2)In production what is the user exit?
In Smartforms or ADOBE Forms Can we get text from standard table in verticle form? if yes, How?