What is updated Function Module.
Answer Posted / aditi
It is basically used to bundle distributed updates within different programs spots, to one place (in FM).
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 UDPDATE TASK it doesn't go inside. Instead in registeres this XXX FM in VBLOG table (you 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 clears VBLOG table (so no FM are registered for change anymore) and continues the program.
This is the most common and safe way to make changes to DB within one [SAP LUW|http://help.sap.com/saphelp_46c/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/frameset.htm]. There is also other way of doing the same within distributed subroutines which are also described in this document.
But if you are asking yourself what is the reason for use of such bundling techniques. It is because [DB LUW|http://help.sap.com/saphelp_46c/helpdata/en/41/7af4bca79e11d1950f0000e82de14a/frameset.htm] differes from the SAP LUW. It is just a smaller part of the latter and is used to submit changes (permanently) in DB after each UPDATE/INSERT/DELETE. In case of later errors during DB update you could then no longer restore previous state of DB with ROLLBACK. That's why SAP created its own SAP LUW.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How is conversion of data types done between abap/4 & external level?
What is a transport?
Explain badi in abap.
dynamic programming in sap abap
What is an Open Item in SAP? How will you find an Open Item in SAP?
data:zxyz type xyz. where xyz is a standard sap structure where it contains data type fields and line type (refer to other structure) fields. my question is how to assign values to field zxyz-str-matnr where str is a structure inside xyz structure.
what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?
Explain how data is stored in cluster table?
What is dynamic action? : sap abap hr
What is technically difference between in Table creation in table creation maintenance not allowed ,maintenance allowed with restriction, maintenance allowed ?
What is a logical database?
What are the user groups?
Does the table can have multiple foreign keys?
Explain the difference between function group and function module?
What type of user exits have you written ?