<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Duplicate values in message mapping in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197513#M3684427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Marko P&lt;/P&gt;&lt;P class="almost_half_cell"&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;Validate your&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;specification&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;...&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;since&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;E1EDL44-&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;MATNR&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;segment (&lt;/SPAN&gt;Handling Unit &lt;SPAN class="hps"&gt;Item)&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be different from&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;E1EDP01-MATNR&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(Item&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;General&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Data)&lt;/SPAN&gt;, you should &lt;SPAN class="hps"&gt;check with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;consultant&lt;/SPAN&gt; &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;SAP&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;which&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;position&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;delivery&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;mapped.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Based on this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;definition&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;should&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;apply the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;mapping.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Juan &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 17:43:28 GMT</pubDate>
    <dc:creator>juan_antonio_murad</dc:creator>
    <dc:date>2014-04-01T17:43:28Z</dc:date>
    <item>
      <title>Duplicate values in message mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaq-p/10197509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have IDoc to file scenario and source IDoc have two same fields from two different segments but target there is only one field to send to. What is the best way and how to map two source fields to one target field by removing duplicate values from source fields? Can this be done with graphical mapping or need UDF?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source:&lt;BR /&gt;&amp;lt;E1EDP01 SEGMENT=""&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;MATNR&amp;gt;12345&amp;lt;/MATNR&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/E1EDP01&amp;gt;&lt;BR /&gt;&amp;lt;E1EDL44 SEGMENT=""&amp;gt;&lt;BR /&gt; &amp;lt;MATNR&amp;gt;12345&amp;lt;/MATNR&amp;gt;&lt;BR /&gt; &amp;lt;/E1EDL44&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Target:&lt;BR /&gt;&amp;lt;Material&amp;gt;12345&amp;lt;/Material&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 15:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaq-p/10197509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-01T15:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate values in message mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197510#M3684424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marko - How are you creating the target root element.. one for each &lt;SPAN style="color: #333333; font-size: 12px;"&gt;E1EDL44 &lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so to remove the duplicates&amp;nbsp; try the below mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR (&lt;SPAN style="color: #333333; font-size: 12px;"&gt;E1EDL44 &lt;/SPAN&gt;) -&amp;gt; remove contexts -&amp;gt;sort -&amp;gt; split by value (value changed) -&amp;gt;collapse context -&amp;gt; split by value(for each value) - target field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there would be only one material always, then it doesn't matter which one you map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 15:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197510#M3684424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-01T15:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate values in message mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197511#M3684425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting MATNR from each of E1EDP01 and E1EDL44 and sometimes they are same values so I need to remove if any duplicate values coming and only pass single value to target material field. I will need to map MATNR to both E1EDP01 and E1EDL44 and filter either by queue or context. I had seen above mapping but could not think of using it for two source fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 17:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197511#M3684425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-01T17:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate values in message mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197512#M3684426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark - it is a bit unclear on the target structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share the sample source xml and expected output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to remove duplicates(MATNR) then above mapping should work. Did you try..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 17:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197512#M3684426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-01T17:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate values in message mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197513#M3684427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Marko P&lt;/P&gt;&lt;P class="almost_half_cell"&gt;&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;Validate your&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;specification&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;...&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;since&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;E1EDL44-&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;MATNR&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;segment (&lt;/SPAN&gt;Handling Unit &lt;SPAN class="hps"&gt;Item)&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be different from&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;E1EDP01-MATNR&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(Item&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;General&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Data)&lt;/SPAN&gt;, you should &lt;SPAN class="hps"&gt;check with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;consultant&lt;/SPAN&gt; &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;SAP&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;which&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;SPAN class="hps"&gt;position&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;delivery&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to be&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;mapped.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Based on this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;definition&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;should&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;apply the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;mapping.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Juan &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 17:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/duplicate-values-in-message-mapping/qaa-p/10197513#M3684427</guid>
      <dc:creator>juan_antonio_murad</dc:creator>
      <dc:date>2014-04-01T17:43:28Z</dc:date>
    </item>
  </channel>
</rss>

