<?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: Create two different IDoc types using Multi-Mapping? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaa-p/12260145#M4591874</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I solved this not using a multi-mapping but using the EDI Separator. This blog was helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2016/11/16/part-2-split-ups-are-hard-using-the-sap-b2b-edi-separator-adapter-for-a-xml-message-split/" target="_blank"&gt;&lt;/A&gt;&lt;A href="https://blogs.sap.com/2016/11/16/part-2-split-ups-are-hard-using-the-sap-b2b-edi-separator-adapter-for-a-xml-message-split/" target="test_blank"&gt;https://blogs.sap.com/2016/11/16/part-2-split-ups-are-hard-using-the-sap-b2b-edi-separator-adapter-for-a-xml-message-split/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards, Peter&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 17:38:59 GMT</pubDate>
    <dc:creator>peter_wallner2</dc:creator>
    <dc:date>2020-07-24T17:38:59Z</dc:date>
    <item>
      <title>Create two different IDoc types using Multi-Mapping?</title>
      <link>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaq-p/12260142</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;
  &lt;P&gt;I am receiving XML files from a 3rd party.&lt;BR /&gt;This is the challenge: these files contain multiple business documents. I have to create ORDCHG (update sales order) and SHPCON (update outbound delivery) IDocs from these, depending on a field in the payload "DELIVERY_NO":&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1829681-multipleidocs.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Is this possible? Can I do this using a multi-mapping, I looked at this blog for example: &lt;A href="https://blogs.sap.com/2011/02/24/multi-mapping-without-bpm-for-idoc-scenarios-yes-it-s-possible/" target="_blank"&gt;https://blogs.sap.com/2011/02/24/multi-mapping-without-bpm-for-idoc-scenarios-yes-it-s-possible/&lt;/A&gt;&lt;BR /&gt;But my target message would be 2 different IDoc types, so my structure would look like this:&lt;/P&gt;
  &lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;DELVRY07&amp;gt;&lt;/P&gt;
  &lt;P&gt;&amp;lt;IDOC BEGIN="1"&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/DELVRY07&amp;gt;&lt;BR /&gt;&amp;lt;ORDERS05&amp;gt;&lt;/P&gt;
  &lt;P&gt;&amp;lt;IDOC BEGIN="1"&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/ORDERS05&amp;gt;&lt;/P&gt;
  &lt;P&gt;I appreciate any input on this. Thank you.&lt;/P&gt;
  &lt;P&gt;Best regards, Peter&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 23:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaq-p/12260142</guid>
      <dc:creator>peter_wallner2</dc:creator>
      <dc:date>2020-07-21T23:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create two different IDoc types using Multi-Mapping?</title>
      <link>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaa-p/12260143#M4591872</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;You can split the message using condition and execute 2 different mappings. 1 for SHPCON and the other for ORDCHG.&lt;/P&gt;&lt;P&gt;The condition will check the existence of the field delivery no, if that is not blank execute the SHPCON else the ORDCHG.&lt;/P&gt;&lt;P&gt;In case of multiple Order detail segments, you can create a SHPCON and ORDCHG IDoc xsds with 0..unbounded occurrence.&lt;/P&gt;&lt;P&gt;Hope I understood your requirement correctly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sugata &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 08:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaa-p/12260143#M4591872</guid>
      <dc:creator>sugata_bagchi2</dc:creator>
      <dc:date>2020-07-22T08:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create two different IDoc types using Multi-Mapping?</title>
      <link>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaa-p/12260144#M4591873</link>
      <description>&lt;P&gt;Hello Sugata,&lt;BR /&gt;this is what I have currently now which works well if I receive a file with DELIVERY_NO filled on all ORDER_DETAIL.&lt;BR /&gt;Or with DELIVERY_NO empty on all ORDER_DETAIL&lt;/P&gt;&lt;P&gt;The condition only checks the first occurrence. So if there is a mix the condition is not catching it. So from what I see the split needs to happen in the mapping, correct?&lt;/P&gt;&lt;P&gt;Best regards, Peter&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 16:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaa-p/12260144#M4591873</guid>
      <dc:creator>peter_wallner2</dc:creator>
      <dc:date>2020-07-22T16:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create two different IDoc types using Multi-Mapping?</title>
      <link>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaa-p/12260145#M4591874</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I solved this not using a multi-mapping but using the EDI Separator. This blog was helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2016/11/16/part-2-split-ups-are-hard-using-the-sap-b2b-edi-separator-adapter-for-a-xml-message-split/" target="_blank"&gt;&lt;/A&gt;&lt;A href="https://blogs.sap.com/2016/11/16/part-2-split-ups-are-hard-using-the-sap-b2b-edi-separator-adapter-for-a-xml-message-split/" target="test_blank"&gt;https://blogs.sap.com/2016/11/16/part-2-split-ups-are-hard-using-the-sap-b2b-edi-separator-adapter-for-a-xml-message-split/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards, Peter&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 17:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-two-different-idoc-types-using-multi-mapping/qaa-p/12260145#M4591874</guid>
      <dc:creator>peter_wallner2</dc:creator>
      <dc:date>2020-07-24T17:38:59Z</dc:date>
    </item>
  </channel>
</rss>

