Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tables : CDHDR & CDPOS ??????

Former Member
0 Likes
3,098

Hello All,

Please give some details about tables CDHDR & CDPOS. When will these tables get update?

Suppose I am adding a new rekord to EKPO table . Then What will happen for CDHDR & CDPOS? Will they have the change details of the table EKPO? Or when it will get update?

Please give info....

Urgent..........

Thanks in Advance

Regards,

LIJO

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,514

Hi,

whenever u change in EKKO or EKPO table automatically it will reflect in CDHDR(Header) and CDPOS(Item) tables.

1. Goto SE11

2. Give the Table name EKKO or EKPO

3. Click Dispaly Button

4. Go to TECHNICAL SETTINGS option.

5. In last check the Checkbox LOG DATA CHANGES. If it is Checked automatically will reflect.

Otherwise it won't reflect. due to performace issue mostly this will be unchecked

- Selva

Hello All,

Please give some details about tables CDHDR & CDPOS. When will these tables get update?

Suppose I am adding a new rekord to EKPO table . Then What will happen for CDHDR & CDPOS? Will they have the change details of the table EKPO? Or when it will get update?

Please give info....

Urgent..........

Thanks in Advance

Regards,

LIJO

5 REPLIES 5
Read only

Former Member
0 Likes
1,514

Hi john,

the table CDHDR and CDPOS are used to track the changes in the sales orders, etc. for example if u craete/ change a sales order, a object id record will be tracked in CDHDR table.

Simlar should work for purchase orders also.

Reward points if useful.

Read only

JackGraus
Active Contributor
1,514

That depends how you update the EKPO table (Purchase order item). When you use a SAP BAPI like BAPI_PO_CREATE1 to update the purchase order it will get updated. When updating table EKPO directly in your own program then it will not get updated and you can consider to call function module EINKBELEG_WRITE_DOCUMENT that does update CDHDR CDPOS for a purchase order.

regards Jack

Read only

Former Member
0 Likes
1,515

Hi,

whenever u change in EKKO or EKPO table automatically it will reflect in CDHDR(Header) and CDPOS(Item) tables.

1. Goto SE11

2. Give the Table name EKKO or EKPO

3. Click Dispaly Button

4. Go to TECHNICAL SETTINGS option.

5. In last check the Checkbox LOG DATA CHANGES. If it is Checked automatically will reflect.

Otherwise it won't reflect. due to performace issue mostly this will be unchecked

- Selva

Read only

1,514

not quite true.

The option "log data changes" in the technical settings will trigger automatic logging in table DBTABLOG whenever the data changes, even if you do an INSERT or UPDATE in your own program.

It is usually switched on for customizing tables, but not for application data like EKKO/EKPO.

For those, as mentioned in a previous post, CDHDR/CDPOS are being updated via standard FM when an object is being saved manually via the respective transaction, by BDC, by standard BAPI and so on.

Read only

Former Member
0 Likes
1,514

Hi LIJO JOHN ,

CDHDR - Change Document Header table

CDPOS - Change Document Item table

we come across these tables in change pointer terminology.

i.e when ever we change any master table, a change document number wil get generated.

If we give this number in CDPOS we can get old as well as new value.

These tables r meant to track changes made to master tables.

cheers!

gyanaraj

****Pls reward points if u find this helpful