#Fm to update adrc table update
update_function must be a character-type field, which during execution of the statement contains the name of an update function module in uppercase letters.Īn update function module is a function module, for which in the Function Builder the property update module is marked. This statement registers the update function module specified in update_function.
![fm to update adrc table fm to update adrc table](https://blogs.sap.com/wp-content/uploads/2014/12/vendor_create_record1_609886.png)
![fm to update adrc table fm to update adrc table](https://content.iospress.com/media/jad/2019/68-3/jad-68-3-jad181038/jad-68-jad181038-g002.jpg)
The aim is to either COMMIT all the changes at once, or ROLLBACK them all. Now when in program it reaches COMMIT WORK statement, it looks into that table and calls each registered functions. Instead in registeres this XXX FM in VBLOG table (you can see update tasks in SM13) to be executed later. Now when system reaches CALL FUNCTION 'XXX' IN UDPDATE TASK it doesn't go inside. Such FM would store all the UPDATE/INSERT/DELETE statements which otherwise you would write in some program place.