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 - adding a new field to existing Change Document

Former Member
0 Likes
4,084

Hi,

We have a requirement to capture the changes made to the Material object through the transaction C223. The changes to field MKAL-PRFG_F have to be captured.

There is an exisitng Change Document Object - MATERIAL. This is included in Message Type MATMAS. These are the steps we have done:

1. In SCDO - added the Z structure to the Change Document Object - Material. [Z structure contains the field MKAL-PRFG_F. Change pointer option is checked for this Data element.

2. Created a Z Message Type with reference as MATMAS.

3. In BD52 - we have listed the fields for the new Z Message Type created.

4. The Change Pointers - reactivated after the steps are done.

The changes to the field MKAL-PRFG_F through C223 Tcode are not recorded in BDCPV table.

Have we missed any steps here?

Thanks,

Pallavi

Hi,

We have a requirement to capture the changes made to the Material object through the transaction C223. The changes to field MKAL-PRFG_F have to be captured.

There is an exisitng Change Document Object - MATERIAL. This is included in Message Type MATMAS. These are the steps we have done:

1. In SCDO - added the Z structure to the Change Document Object - Material. [Z structure contains the field MKAL-PRFG_F. Change pointer option is checked for this Data element.

2. Created a Z Message Type with reference as MATMAS.

3. In BD52 - we have listed the fields for the new Z Message Type created.

4. The Change Pointers - reactivated after the steps are done.

The changes to the field MKAL-PRFG_F through C223 Tcode are not recorded in BDCPV table.

Have we missed any steps here?

Thanks,

Pallavi

6 REPLIES 6
Read only

former_member404244
Active Contributor
0 Likes
2,184

HI,

I don't think a new zmessage type is required in this case.. is the structure added to MARA table??The change document programs are there which triggers the iodcs... In SCDO transaction code , click on generation info for MATERIAL.. You will find the includes. The FM MATERIAL_WRITE_DOCUMENT creates entries in CDHDR and CDPOS, if we maintain entries in BD52 , the entries wil be written in BDCP and BDCPS tables.

Try to add your structure in MARA table as append strucre and then you can debug the IDOC from WE19 and use the FM "MASTERIDOC_CREATE_SMD_MATMAS" and then you also need to switch on Update Debugging on, to debug the changes in update FM MATERIAL_WRITE_DOCUMENT.

Please see if the change is reflected or not....

ELSE.

may be you need to create a new entry in SCDO and do all the ALE configurations for change pointers.

Please find the link for change pointers and also you can get lot of information on change pointers in SCN.

http://help.sap.com/saphelp_nw70/helpdata/EN/12/83e03c19758e71e10000000a114084/content.htm

Regards,

Nagaraj

Read only

0 Likes
2,184

Hi Nagaraj,

The field is already existing in the MKAL table. I only need to pick the changes to the field.

The includes and MATERIAL_WRITE_DOCUMENT FM are generated.

Pallavi

Read only

0 Likes
2,184

HI,

IN BD52 specify the table name, fieldname and change object as "MATERIAL" and message type as MATMAS... If you have done this then try debugging the FM as i specified in my earlier post, see if the changes are picked up.

Regards,

Nagaraj

Read only

0 Likes
2,184

BD52 entry is done, but in debug the changes are not picked up.

Pallavi

Read only

0 Likes
2,184

HI,

Have you switched on extended debugging on?? Put a break point in FM "CHANGE_POINTERS_READ"

Regards,

Nagaraj

Read only

Former Member
0 Likes
2,184

Check if exist in table BDCP2