Skip to Content
author's profile photo Former Member
Former Member

updation made in table not getting reflected in CDHDR

Hi friends,

I am new to ABAP. I want to write a report which will display changes(updation of data) made in my table. I tried to write prg using table CDHDR. but whatever updation i am doing in my table(user created) is not getting reflected in CDHDR.

Can anybody please guide me how to do this program.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Jun 13, 2008 at 12:38 PM

    Hi Swetha,

    Just to add to what Gautam has said, you may need to check the technical settings of the table.

    The option Log data Changes must be checked. Otherwise the table changes will not be logged in DBTABLOG.

    Regards,

    Ravi Kanth Talagana

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2008 at 12:39 PM

    Hi Shweta Pandey

    As you said it is user created table. If you need to find updations in this table u need a track of changes u need to chek a check box called (Change document) which is at data element level for each particular field.

    Here u need to maintain this check box checked for primary key. Then the CDHDR will be effected.

    Try this. Reward if useful.

    Venkat.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2008 at 12:49 PM

    The answers so far are misleading. Change documents (CDHDR/CDPOS) and table logging (DBTABLOG) are two different ways to log data changes. Both are being used for standard and Z-tables alike.

    For table logging, the activation procedure has been described already.

    For change documents for Z-Tables, you need to create your own change document object via transaction SCDO and call the resulting generated function module at the end of the maintenance transaction. In addition, the data elements need to be activated for change documents as described above.

    Greetings

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

    • Please confirm:

      You have activated the check box "log data changes" in the technical settings of your Z-Table.

      If yes, changes to that table will from now on be logged in table DBTABLOG.

      To view the log, use program RSVTPROT.

      If it does not work yet, I cannot help further.

      Greetings

      Thomas

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 06:43 AM

    after changing technical setting still i m not getting changes logged in DBTALOG or CDHDR.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2008 at 12:35 PM
    -1

    hi shweta,

    cdhdr will trigger only for standard tables but not custom .

    all the changes to Ztables r stored in table DBTABLOG.

    REWARD POINTS IF HLPFUL.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.