You are on page 1of 1

UPDATE FUNCTION MODULE: It is used to bundle distributed updates within different programs spots, to one place in function module.

Such FM would store all the UPDATE/INSERT/DELETE statements which otherwise you would write in some program place. Now when system reaches CALL FUNCTION 'XXX' IN UPDATE TASK it doesn't go inside. Instead in registers this XXX FM in VBLOG table (we can see update tasks in SM13) to be executed later. Now when in program it reaches COMMIT WORK statement, it looks into that table and calls each registered functions. The aim is to either COMMIT all the changes at once, or ROLLBACK them all. This means that if inside one of any FM these statements are encountered system writes changes to DB permanently. Next it clea rs VBLOG table (so no FM are regidtered for change anymore) and continues the program.

You might also like