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

Deletion of Basic data text in Material is not replicating from S4 to ECC

mines
Participant
0 Kudos
255

Hi Team,

We have observed that when the basic data text (STXH) exists for a material, the data replicates correctly from S/4 to ECC, and the MATMAS message includes the segment E1MTXHM as expected. However, when we delete the basic data text for the material, the change is not replicated properly to ECC. In this case, the E1MTXHM segment is missing from the MATMAS message, whereas we would expect it to be present with the '003' MSGFN (function code for deletion).

It appears that the standard process deletes the segment entirely, instead of sending an update with MSGFN '003'. Could someone advise on how to ensure that the E1MTXHM segment is included in the MATMAS message to ECC with MSGFN '003' when the basic data text is deleted?
Can someone guide me which badi need to use?
I tried in IDOC_DATA_INSERT but still no luck . 
It would be great if someone can provide a sample code.

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

d024348
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi, please check 

How-to Information for SAP Master Data Governance | SAP Community -> Using Data Replication Framework (DRF), chapter 2.6

ThomasLu
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Mines, Are you using DRF to trigger material replication via IDOCs? Here is the official notes: DRF for material does not support message function ‘003’ (deletion). DRF for material always sends the full material. Solution options: 1. Using only ALE: Sending a segment deletion is supported in standard ALE (transaction BD21). This option doesn’t need additional coding. 2. 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. Br. Thomas
mines
Participant
0 Kudos
How to delete existing Segment E1MTXHM using Mapper BADI because data is importing parameter and Mapper_tab is changing
ThomasLu
Product and Topic Expert
Product and Topic Expert
0 Kudos
Just compare the importing parameter with local system data to find out the deleted items. Then enrich these deleted items with MSGFN = 003 in Mapper Badi.