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 Pointers

itabhishek9
Participant
0 Likes
1,491

Hi SDNites,

I have configured change pointer for a custom field in a custom table and it not creating entries into BDCP2 / CDHDR / CDPOS table. Following are the steps done from my end,

1. Created new custom meesage type

2. Created an object in SCDO

3. Added custom field and also Key field in BD52.

4. Activated message type in BD50.

5. Added the change document flag in data element for custom field.

Can you please let me know do I need to do some programming at the back of it also or everything should happen automatically. If automatically, can you please let me know if any settings missed from my end based on above provided details.

Regards,

Abhi

6 REPLIES 6
Read only

Former Member
0 Likes
1,397

Hi,

please check, that the data element of your custom field has the Change Document flag set in Further Characteristics.

Regards,

Klaus

Read only

itabhishek9
Participant
0 Likes
1,397

Thanks Klaus for the reponse.

Yes I had already set the change document flag.

Regards,

Abhi

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,397

Do you really need to create change documents for a custom table? If it's a custom table, then it will be easier to do full custom code without change documents.

If you really want to create change documents, you must call funcdtion modules CHANGEDOCUMENT_* from your custom program, so that to generate the change documents.

Read the SAP library if you need more information about change documents.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,397

The SCDO transaction created some includes and FM (Generation Info) You have to usell those in the programs that update the table (e.g. some CALL Z_XXX_WRITE_DOCUMENT [IN UPDATE TASK] with before/after image)

Do not confuse change document and table change logging, only the last one doesn't require development as it is integrated in open-sql.

Hint : in BC Extended Applications Function Library online documentation look for Change Documents.

Regards,

Raymond

Read only

0 Likes
1,397

Thanks Raymond for the above. I was having the same understanding. Belo are few quick questions which requires your comments,

1. For Custom table fields which I have used as a new table control in standard transaction. If I modify it via screen or SM30, I have to write the code in the event of the table. I have to use the FM generated as part of SCDO object creation. This will lead to creation of an entry into CDHDR, CDPOS and BDCP2 table.

2. For standard table fields, if it has change document checked, then I do not need to write any code to create an entry into tables CDHDR, CDPOS and BDCP2. Only I have add the fields required into the new custom message type.

Regards,

Abhi

Read only

0 Likes
1,397

yes and yes