Application Development 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: 

How to track changes

Former Member
0 Kudos

Hi friends,

I am a XI consultant. My query is regarding how to track the chages.I heard that CDHDR and CDPOS tables are used to store the information regarding the changes made to the objects/tables in SAP.My scenario is i have a table having few fields related to P.o and a flag indiacating Insert/Update/Delete, so upon the creation/upadate/deletion of a P.O(related to perticular WBS Element) i want the data to be transfered into my table automatically.

Is there any standard transaction available to do that....means i want to track all the P.Os under a perticular WBS element..

If not Do we have to write a Abap program and use CHANGEDOCUMENT_READ_HEADERS,CHANGEDOCUMENT_READ_POSITIONS functions to store the data into internal tables ?????

Regards,

Gowtham K.

1 REPLY 1

Former Member
0 Kudos

HI gowtham,

Yes, u are right,

we have to right some abap code.

"CHANGE DOCUMENTS" in SAP Terminology

1 The same thing which u are asking

we had developed here. For Eg : Any change

in the material master will be detected

and a mail will be sent to the concerned

employee.

THIS WILL ALSO DETECT WHICH FILEDS HAVE CHANGED.

IT CAN ALSO GIVE, The Old Value, And The New Value.

2. This Mechanism is called CHANGE DOCUMENTS in

SAP Terminology

3. 2 Fuction Modules are Required.

(They will fetch necessary data from CDHDR,CDPOS)

CHANGEDOCUMENT_READ_HEADERS

CHANGEDOCUMENT_READ_POSITIONS

4. The First FM gives list of all

records ( with change no) which have changed.

5. Loop at the above and the second FM will

provide the details (old-val, new-val) for

each record.

6. While using 1st Fm, i used docclass as 'MATERIAL'.

BCOS

the concept of change documents is applicable

to other type of documents also (depends upon

customization)

regards,

amit m.