07-09-2008 12:13 PM
07-09-2008 12:15 PM
07-09-2008 12:18 PM
update function modules are used whe u want to perform the updates all at once. for e.g u have a sequence of screens on which user will enter data. on each screen if u save the data directly to a table then if there is some problem before completing the transaction, system will have incomplete and inconsistent data.
for this u will use
call function 'FUNCTION_MODULE_NAME' in UPDATE TASK.
and pass it the data.
when u will trigger the COMMIT WORK command system will execute all the function modules with UPDATE TASK and update the database then only,
<removed_by_moderator_together_with_points>
Edited by: Julius Bussche on Jul 14, 2008 11:43 AM
07-09-2008 12:19 PM
Hi,
Go to the Tcode SE37 and select the find button from the menu and type update in the description and execute.
you will get the number of Function Modules that are available in SAP for Update.
Hope this helps you.
Thanks & Regards,
Y.R.Prem Kumar
07-09-2008 12:23 PM
Hi,
We bundle all our Open SQL statments for database changes in an update function module. The function module is called with addition IN UPDATE TASK. The function module is executed using an update work process when the program reaches the COMMIT WORK statement.
A typical use is to release locks using update function modules.
To choose from synchronous and asynchronous updates is at your disposal. You have to specifiy that when you create and update function module.
Regards,
Prosenjit.