Hi,
I'm trying to make a program that track changes done to a table in a day and then perform some actions accordingly.
We've evaluated several methods of tracking changes to the table's records (e.g. DBTABLOG, CD, ...) and the Change Documents facility was chosen.
Now I've seen that to create a Change Document you have to use transaction SCDO and add every table of interest to one CD. Then, to enable logging to tables CDHDR and CDPOS, you have to enable the "Change Document" flag (via SE11) for every Data Element used in the table's structure definition that one wants to log. I have to track three custom tables.
The issue I'm facing is that I cannot enable the "Change Document" flag for standard Data Elements (e.g. BEGDA, ENDDA). Two of the custom tables doesn't have any Includes, so I'm thinking of replacing each data element with a custom equivalent (e.g. Z_BEGDA, Z_ENDDA). The last table is an HRP* custom table and has standard includes (HRIKEY).
Before going on and even considering replacing that include's structure with a custom one, I'm wondering:
- Are Change Documents the right way to track changes to table data?
- Is there a way not to replace the standard Include/Data Elements in order to enable logging?
Thank you,
Pietro