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

Tcode CS02 changed triggers idoc but not CS21 using BD21

Former Member
0 Likes
1,243

Hi

when bom is changed using CS02 then when using BD21 triggers IDOC for the message type

but

when bom is changed using CS21 then it does not trigger idoc using BD21

I checked the code for BD21 message type function

I found that change pointer (bdcp2-object id ) is different for both transaction CS02 and CS21.

CS02 is updating object id with mast-stlal but this entry is missing for CS21

I am not able to find how the table (BDCP , BDCP2) for change pointers is updated for bom change.

Can you please let me know the patof code which i should check for updating the change pointers entries in BDCP , BDCP2 for bom

4 REPLIES 4
Read only

Former Member
0 Likes
842

Hi,

I think you are missing ALE configuration. The object IDs should be linked to a message type for triggering an IDOC. This assignment can be done via transaction BD52. What you need is as follows:

1). First find out what is the object ID when changing CS21. After making any change, go to BDCP table and find out.

2). Find what message type you want to trigger.

3). Assigned the object ID and field in BD52 for the message type.

I hope this helps.

Regards,

Read only

0 Likes
842

I checked in BD52 the object name is STUE_V for the given message type (ZBOM) .

fields which are changed are MENGE, IDNRK both are maintained for object name STUE_V and table STPO

please let me know what is the format for saving Object value (object id ) in table BDCP,BDCP2

Regards

Read only

0 Likes
842

Hi,

I do not have CS21 transaction in my SAP system. Can you please check if it is creatign any entry in CDHDR table after making any chnage via CS01 and CS21?

If standard SAP is not creating any change pointers in BDCP then you can create via user exits using FM "CHANGE_POINTERS_CREATE".

Regards,

Read only

0 Likes
842

I checked the sap system is creating enteries in cdhdr change pointer usin fm STUE_V_WRITE_DOCUMENT . I checked that when used TCODE CS05 the entry is updated for stlal as

In CS02 the entry for OBJID hold the value for stlal (Alternative BOM)

ie 500M0001064220110914 01 20110914

In CS21 the entry for OBJID does not hold the value for stlal (Alternative BOM)

ie 500M0001064220110913 20110913 (entry missing for stlal)

It clears the value of stlal . Is ther any sap note or configration setting for CS21 to get the value for alternative bom .