Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain how to Handle the internal tables in ABAP?

1142


Different between Interface and Abstract classes?

1621


Event handling in oops

1579


What are the parameters in bdc_insert? : abap bdc

1347


What are the functional modules used in sequence in bdc? : abap bdc

1167


Difference between Insert, Update and Modify?

1209


What are th control break events in abap?

1144


What are base tables of an aggregate object? : abap data dictionary

1128


What are advantages and disadvantages of logical data base

2303


What functions does a data dictionary perform? : abap data dictionary

1103


Work most on which module: name a few tables?

1102


What kind of financial periods exist in sap? What is the relavent table for that?

1166


What two statements are required in an abap program to output an icon using a write statement?

1033


What are the three components of a work process?

1166


Does the call transaction method allow multiple transactions to be processed by sap?

1048