‎2006 Jul 06 10:02 AM
Hi friends,
I created a change document to put a trigger on FMIT table so that when ever there is any update, delete, insert and modify commands happened it should log the changes in CDHDR and CDPOS.
1.I created the object in transaction code SCDO as YBUDGETS and created the change document.
2.In transaction SU20 created 5 authorized fields and provide trigger respectively on that fields.
3.In transaction SU21 I just took the predefined object class and created object by giving all 5-authorization fields. So that whenever there was a change in that field it will logs a record in CDHDR and CDPOS against FMIT.
4.After that I generated the update program in SCDO. By this all the function modules and include programs are generated automatically.
Thanks in advance,
srinivas.
‎2006 Jul 06 10:14 AM
Hey,
If I understand your post correctly you need to log the changes made to FMIT in the change document tables.
You have already created the change document object for table FMIT. You need to generate the change object which will give you the change document function. You need to select the Generation info option to view the function which generated by SAP.
You need to call this function in the transaction which updates FMIT with proper parameters. Refer the link http://help.sap.com/saphelp_47x200/helpdata/en/2a/fa0182493111d182b70000e829fbfe/frameset.htm for further info
Using authorizations in no way related to logging changes.
-Kiran
‎2006 Jul 06 10:48 AM
Hi Kiran,
I even provided the fmit table in the change document object. I generated the update program and the function modules and include programs generated.I am using the same in my coding in proper parameters and variables.
But the problem is that when i am making any expenditure it should be logged in cdhdr and cdpos tables automatically.
I am not able to get the respective records in those tables.Hope you got the problem now.I follwed the same procedure as you sent in your previous link.
Srinivas
‎2006 Jul 06 11:03 AM
What transaction are u using for expenditures and where have you called the change document function module?
-Kiran
Message was edited by: Kiran Raorane
‎2006 Jul 06 11:16 AM
Hi,
I am using PR05 transaction to do expenditures.
PR05 is for travel management.
srinivas