Hi to everyone!!! If you having trouble with these two tables CDPOS and CDHDR and you really don´t know how to solve the issue. So in this article we will check Cdpos and Cdhdr table in SAP to see the change history of transaction and master tables of SAP using ABAP. we will cover Cdpos table in sap & Cdhdr table in SAP, Change Documents in SAP,How To Use of cdhdr and cdpos tables in SAP and Cdhdr object class list
As far as we know, using below mention parameters we would be getting the information which we need.
Table: CDHDR
Object class (OBJECTCLAS)
Change ID (CHANGE_IND)
Table of Contents
Cdpos and Cdhdr table in SAP
Cdpos table in SAP
CDPOS is an item table which stores the log of changes. In ABAP it is use to retrieve the Item data of changes log which we created.
FIELD | DATA ELEMENT | DATA TYPE | LENGTH | SHORT DESCRIPTION |
MANDANT | MANDT | CLNT | 3 | Client |
OBJECTCLAS | CDOBJECTCL | CHAR | 15 | Object class |
OBJECTID | CDOBJECTV | CHAR | 90 | Object value |
CHANGENR | CDCHANGENR | CHAR | 10 | Document change number |
TABNAME | TABNAME | CHAR | 30 | Table Name |
TABKEY | CDTABKEY | CHAR | 70 | Changed table record key |
FNAME | FIELDNAME | CHAR | 30 | Field Name |
CHNGIND | CDCHNGIND | CHAR | 1 | Change Type (U, I, S, D) |
TEXT_CASE | CDXFELD | CHAR | 1 | Flag: X=Text change |
UNIT_OLD | CDUNIT | UNIT | 3 | Change documents, unit referenced |
UNIT_NEW | CDUNIT | UNIT | 3 | Change documents, unit referenced |
CUKY_OLD | CDCUKY | CUKY | 5 | Change documents, referenced currency |
CUKY_NEW | CDCUKY | CUKY | 5 | Change documents, referenced currency |
VALUE_NEW | CDFLDVALN | CHAR | 254 | New contents of changed field |
VALUE_OLD | CDFLDVALO | CHAR | 254 | Old contents of changed field |
_DATAAGING | DATA_TEMPERATURE | DATS | 8 | Data Filter Value for Data Aging |

Cdhdr table in SAP
CDHDR is header table which stores the log of changes. In ABAP it is use to retrieve the header data of changes log which we created.
FIELD | DATA ELEMENT | DATA TYPE | LENGTH | SHORT DESCRIPTION |
MANDANT | MANDT | CLNT | 3 | Client |
OBJECTCLAS | CDOBJECTCL | CHAR | 15 | Object class |
OBJECTID | CDOBJECTV | CHAR | 90 | Object value |
CHANGENR | CDCHANGENR | CHAR | 10 | Document change number |
USERNAME | CDUSERNAME | CHAR | 12 | User name of the person responsible in change document |
UDATE | CDDATUM | DATS | 8 | Creation date of the change document |
UTIME | CDUZEIT | TIMS | 6 | Time changed |
TCODE | CDTCODE | CHAR | 20 | Transaction in which a change was made |
PLANCHNGNR | PLANCHNGNR | CHAR | 12 | Planned change number |
ACT_CHNGNO | CD_CHNGNO | CHAR | 10 | Change number of the document created by this change |
WAS_PLANND | CD_PLANNED | CHAR | 1 | Flag that changes were generated from planned changes |
CHANGE_IND | CDCHNGINDH | CHAR | 1 | Application object change type (U, I, E, D) |
LANGU | LANGU | LANG | 1 | Language Key |
VERSION | CHAR3 | CHAR | 3 | 3-Byte field |
_DATAAGING | DATA_TEMPERATURE | DATS | 8 | Data Filter Value for Data Aging |

How To Use of cdhdr and cdpos table in SAP
Suppose we have requirement to find the changes in delivery header through any custom program created by an ABAPer for that we need to check change log of delivery header. The changes logs are stored in CDPOS and CDHDR table, to create a program we will read the CDHDR and CDPOS tables by its objectclasss.
Cdhdr object class list
Sometime we are trying to find changes in our document or changes log or our document which was stored in tables CDHDR and CDPOS. We will use the Foncution Module “CHANGEDOCUMENT_READ_HEADERS” to get the header information which requires the objectclass of type CDHDR-OBJECTCLAS.
We have a field called object class -> which is nothing but the SAP object which is used for the change document. SAP object are material master, sales document, Vendor master, purchasing document, delivery document customer master etc.
And here another column which is change number i.e CHANGENR -> a unique number generated each time a change is done.
For example of purchase order how these change document helps to identify changes made on the purchase document.
For the Purchase document, the object class is EINKBELEG. You can get details about object class using Tcode SCDO and from table TCDOB.
To find the object class you can check the table TCDOB.
FIELD | DATA ELEMENT | DATA TYPE | LENGTH | SHORT DESCRIPTION |
OBJECT | CDOBJECTCL | CHAR | 15 | Object class |
TABNAME | CDTABNAME | CHAR | 30 | Change document creation: Table name |
MULTCASE | CDMULTCASE | CHAR | 1 | Create change documents: ‘X’=Multiple case, ‘ ‘=Single case |
DOCUDEL | CDDOCUDEL | CHAR | 1 | Change document creation: ‘X’=Field doc.when deleting |
DOCUINS | CDDOCUINS | CHAR | 1 | Create Change Document: “X” = Field Documentation for Insert |
REFNAME | CDTABNAME | CHAR | 30 | Change document creation: Table name |
OLDTABNAME | CDTABNAME | CHAR | 30 | Change document creation: Table name |
ARCHMULT | CDARCHMULT | CHAR | 1 | Multi-Record Processing in Archiving |
DOCUD_NOIF | CDDOCUDEL_NOIF | CHAR | 1 | CDs: ‘X’=Single Field Documentation (No Initial Delete) |
DOCUI_IF | CDDOCUINS_IF | CHAR | 1 | Change Document: ‘X’=Single Field Docu./Insert w./Initial |

FAQ : Cdpos and Cdhdr table in SAP
1.What is Cdpos and Cdhdr
CDPOS is the item table which store the change log of item data.
CDHDR is the header table which store the change log header data.
2.How to use CDHDR and CDPOS SAP Tables?
Go to transaction SE16N enter table name CDHDR and fill the change document object and document number details well open in CDHDR and pass the same into CDPOS table you will get the all items details for the same.
3.What is the table of object list.
TCDOB is the table where all object list stores.
4.What is Change Log?
Change log or document are used to store the changes of master records, tables, and changes in any document. These changes are stored in two tables that is CDHDR and CDPOS. here CDHDR is the header table and CDPOS is the item table.
You May Also Like:
- What is Search Help in SAP ABAP
- How to create elementary search help in sap abap ?
- How to create Collective search help in SAP ABAP ?
- Cell Color in ABAP ALV Grid Report | Cell Color in ALV Grid Display
- BAPI_PO_CREATE1
For the next blog please connect with us and follow us on twitter.com/einfonett
3 thoughts on “Cdpos and Cdhdr table in SAP | Change Documents in SAP”