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 do you write manual bdc session method? : abap bdc
What are the client dependant objects in abap / sap?
How to create any functions?
Explain the difference between domain and data element? What are aggregate object?
What is the function of a domain?
The data of a view is not physically stored, but derived from one or more tables (t/f) : abap data dictionary
how to use table control?if suppose i have 6 records and i want more 4 records in sequence.How to handle this scenario?
How many secondary indexes can we create in a table?
What happens if a function module runs in an update task?
Explain about drill down report?
Can you create a table with fields not referring to data elements? : abap data dictionary
how to use the xk01 in realtime.can it apply the others. how it it will goes to first page and next page.
hi,how to diable the popup window which is displayed afetr executing the SAP script program?
Explain how to write a bdc - how do you go about it?
What are number ranges?