Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Re: Change document error

Former Member
0 Likes
845

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.

4 REPLIES 4
Read only

Former Member
0 Likes
663

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

Read only

0 Likes
663

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

Read only

0 Likes
663

What transaction are u using for expenditures and where have you called the change document function module?

-Kiran

Message was edited by: Kiran Raorane

Read only

0 Likes
663

Hi,

I am using PR05 transaction to do expenditures.

PR05 is for travel management.

srinivas