on 2025 Jan 17 2:31 PM
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:
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. 🚀
Request clarification before answering.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.