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.
Showing results for 
Search instead for 
Did you mean: 

Track changes on my own Z table

Former Member
0 Kudos

I have made a Z table that has 3 fields .I want to track the changes on 2 of them .How can i do it ?

I read that i must use the tables CDHDR and CDPOS .

My problem is that i can't activate this functionality so the changes to be written in this tables !!!

Can someone help me please !!!

Points will be rewarded !!!!!!


Active Contributor
0 Kudos

First you need to create a "Change Document Object" via transaction SCDO and attach you Z-table to this document, then generate the function module to use in update tasks.

Look at <a href="">Change documents</a>


0 Kudos

Can you be more specific my friend Raymond Giuseppi ???

Only this ....

Former Member
0 Kudos

if you want to track the changes for the table....

then u have to go to Techinical settings of the table and check the check box for

log changes. its at the bottom.

and use tcode SCU3 to see the changes

0 Kudos

(1) create a change object via SCDO, Zxxxx and give a text, and attach your(s) Z-table(s)

e.g.. : BELEG for FI document, EINKBELEG for purchase order, and the like

(2) Generate (SCDO again) the program to generate CDHDR/CDPOS

some includes are created along with a function module/group.

(3) In your program, add the include (top and form) and put a call to the form provided

This form will execute the generated function module in update task, so call the form with the before and after image of your data before the COMMIT WORK.

More sources of informations :

For update task and update of data, look at <a href="">Updates in the R/3 System (BC-CST-UP)</a>

For maintain of (CDHDR/CDPOS) <a href="">Change documents</a>

There are also some <a href="">threads at SDN on SCOD</a>


Former Member
0 Kudos


In your Z table go to technical setting => check Log data changes check box.

So that will track the data record changes on that table.

If you want you can view the tcode <b>Transaction Table history (SCU3).</b>

reward point if this helps

Former Member
0 Kudos


follow this link.

follow the 3 sub links.

Define change document object

Set change document flag

Generate Update and INCLUDE Objects