a month ago
How to check change logs in table CDHDR and CDPOS
CDHDR: Records the header information for document changes.
CDPOS: Stores the item-level details of the changes
Utilizing CDHDR and CDPOS SAP Tables for Change Logs or How to check change logs in table CDHDR and CDPOS
I am going to show you that how can we check the changes logs by using table CDHDR and CDPOS
Go to Transaction Code SE16N.
To view any table in SAP, you can go to transaction code SE16 or SE16N. Below is a screenshot of SE16N where I have entered the CDHDR table.
We start with table CDHDR because we need to note the “change document number” of the document we are analyzing. The “change document number” will be our linkage / basis of search for Table CDPOS.
Click on the Execute Button to proceed. For now, you can review the CDHDR results.
Notice the object value is a concatenation of the SAP Accounting Document details (Client + Company Code + Document Number + Fiscal Year) we are concerned with. That is one way to determine the change document number.
You can also refer to the Object Change field to see what kind of change was done.
You need to copy the “change document numbers” (red box) so you can paste them as part of the selection criteria in Table CDPOS. We open a separate table so that we still have the CDHDR table view.
Here you will paste the “change document numbers” you have copied from CDHDR. This should establish the linkage and show you the line item details of the change documents.
Click on the Execute Button to proceed.
Now that you have the line items of the change document, notice that there are “before” (Old Value) and “after” (New Value) details of the changes. This should give you a good overview of the changes done.
Rewards if you found this helpfull.
Regards,
Lalit Nagar
3 weeks ago
In most of the cases, we do not know from which user id, the changes has happened and on which date. Having said that your screen shot shows only these two fields and if the outcome is only few entries, you cannot straightaway, conclude only those changes has happened. It is always better to maintain OBJECTCLAS in CDHDR so that data would be fetched at the quickest possible time.