2006 Dec 12 7:13 PM
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.
2006 Dec 12 7:26 PM
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.
2006 Dec 12 7:36 PM
Thanks Michael, will try that FM.
I have another question, is there any relation between CRHDR and BDCP tables?
2006 Dec 12 7:42 PM
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.
2006 Dec 12 7:47 PM
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
2006 Dec 12 7:54 PM
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.
| User | Count |
|---|---|
| 8 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |