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

Change documents for created for Customer Master

Former Member
0 Likes
1,428

An existing program makes changes to the Customer master table KNA1. The changes are made at the table level using the UPDATE command. Since the changes are being made at table level, the change documents are not created.

I need to create IDocs for all changes. So the question is, how to create change documents for changes to the particular fields being UPDATEd in the report program.

I understand that a BDC program on XD01 screen should have been the best way for this, but I'm here to break-fix and trying to identify solutions with least development effort.

An existing program makes changes to the Customer master table KNA1. The changes are made at the table level using the UPDATE command. Since the changes are being made at table level, the change documents are not created.

I need to create IDocs for all changes. So the question is, how to create change documents for changes to the particular fields being UPDATEd in the report program.

I understand that a BDC program on XD01 screen should have been the best way for this, but I'm here to break-fix and trying to identify solutions with least development effort.

5 REPLIES 5
Read only

Former Member
0 Likes
1,024

You can update the change pointer tables, BDCP/BDCPS, using function CHANGE_POINTERS_CREATE_DIRECT. Just populate T_CP_DATA table and the message type. Add the function call after a successful update to the table.

Read only

0 Likes
1,024

Thanks Michael, will try that FM.

I have another question, is there any relation between CRHDR and BDCP tables?

Read only

0 Likes
1,024

Not directly. CDHDR/CDPOS contain change history that is accessible from the maintenance transactions. For example, if you display a customer via XD03 and go to Environment->Field Changes, the result is based on entries in CDHDR and CDPOS. BDCP and BDCPS are only updated for modified data flagged as change pointer relevant.

Read only

0 Likes
1,024

Hi ganadeep,

When an application makes any changes to an object it wrties change documents which are stored in the table CDHDR and CDPOS for each change made.

BDCP table holds the change pointers which point to the change documents in the CDHDR table.

Regards

Parag

Read only

0 Likes
1,024

I would like to add that the change pointers are created/stored in BDCP tabel only if the ALE distribution model is setup to distribute that change to atleast one receiver.