What is update task

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


Please Help Members By Posting Answers For Below Questions

How would you suppress the display of a parameter on the selection screen?

567


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

688


How do you do bdc for a table control? : abap bdc

656


Define batch input session?

583


how to modify the standard method as per your requirement

890






What is size category?

556


Explain the different types of screen keywords?

560


What are the differences between the table and the structure in the data dictionary in the sap abap?

592


Abstract class and interface, multiple inheritance, live example

899


Describe the data classes?

614


What are the types of subroutines? : abap data dictionary

588


What are null values? : abap data dictionary

621


How to select valid lines for secondary list?

609


2)In production what is the user exit?

1578


In Smartforms or ADOBE Forms Can we get text from standard table in verticle form? if yes, How?

1815