cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Add a New Segment to Message Type MDM_EQUIPMENT_SAVEREPLICA Without an Extension?

AhmedKadoura
Discoverer
0 Kudos
256

I need to add a new segment to the IDoc message type MDM_EQUIPMENT_SAVEREPLICA with basic type MDM_EQUIPMENT_SAVEREPLICA01. However, this message type does not allow extensions - Action is not possible for generated IDoc types” (I guess because this is a standard message type and cannot be changed/edited).

This message type is outbound and is triggered when an equipment change occurs in SAP, creating a change pointer that later generates an IDoc.


What I Have Tried

1.Since I cannot use a standard extension, I manually added the segment by modifying the function module ALE_EQUIPMENT_SAVEREPLICA, which is responsible for IDoc creation.

2.I created a custom segment in WE31 (ZE1BP_IEQM_GWLEN) and populated it inside ALE_EQUIPMENT_SAVEREPLICA:

Screenshot 2025-01-17 at 16.22.39.png

3.Issue:

•The segment appears correctly inside the generated IDoc with the correct data.

•However, when I modify the equipment data and reprocess the IDoc, I get IDoc status 26 (Syntax Error in IDoc).

•The error only appeared after I made changes to the equipment data, suggesting that the system is validating the IDoc structure and rejecting the new segment.

Questions

1.How can I properly add a new segment to this message type if I cannot use an extension?

2.Is there a way to modify the IDoc structure dynamically to allow this new segment?

3.Should I create a completely new message type for this? If yes, what is the recommended approach?

4.Is there an alternative method to add this field without modifying the existing message type?

 

I appreciate any insights or recommendations on the best way to handle this scenario. 🚀



Accepted Solutions (0)

Answers (0)