Skip to Content
avatar image
Former Member

MDG-M Material Memo text field doesn't interface from MDG into ECC when blank

Hi All,

we are having an issue with the material master interface for IDOC type MATMAS.

When you will in the MRP4 view in MDG a blank in the memo text and save the material it will be in the IDOC as “/” but when you look into the material master in ECC you will see that it did not put a blank there.

In the IDOC from MDG system, we can see blank for long text segment (E1MTXLM).

But when we try to run this with function module IDOC_INPUT_MATMAS01, it doesnt reflect in mm03 for the same material.

We found one solution from SAP document:

**3.5. Replication of Deletion Scenario:

You have replicated a material with several descriptions and long texts. You then delete some descriptions/long texts (or any other segment where deletion is possible) and replicate the material again using IDoc and DRF. The deletions do not reach the target system.

Root cause:

DRF for Material does not support message function ‘003’ (deletion). DRF for material always sends the full material. ALE/DRF filters are of course considered.

Solution options:

Using only ALE: Sending a segment deletion is supported in standard ALE (transaction BD21). This option doesn’t need additional coding.

Using DRF or ALE: This option needs additional coding in the target systems. If it is possible to determine which data gets deleted in the target system, you can also implement the IDoc Inbound BAdI IDOC_DATA_MAPPER in the target system. In this BAdI, set the segment’s message function (MSGFN) to ‘003’ (deletion). This enables the IDoc inbound (usually function module IDOC_INPUT_MATMAS01) to delete the data. This above case works for segments that are solely maintained on the hub (no data added in the target system). If one such segment exists in the target system’s database but not in the IDoc, then this could be considered an indication that this segment must be deleted. These rules and the implementation are project specific so no example coding is provided.


1. First solution we didnot apply because we dont want to delete a segment , just want to delete the data.

2. we tried with implementing BAdi 'IDOC_DATA_MAPPER' and set the message function '003'. It will set the message function 003 for IDOC but it will not do any changes for material. This solution is not working for segment E1MTXLM.

Any one knows how to achieve this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers