<?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: Issue in populating correct target node in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654943#M168232</link>
    <description>&lt;P&gt;I used formatbyexample and issue got resolved.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Ankyy&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 07:00:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-02-27T07:00:53Z</dc:date>
    <item>
      <title>Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaq-p/654935</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;Interface : XML to idoc. &lt;/P&gt;
  &lt;P&gt;Since i want to generate multiple idocs from single xml file, i am using multi mapping.&lt;/P&gt;
  &lt;P&gt;My SAP PO version is 7.5, somehow node functions removeContext and collapseContext are not working as expected. &lt;/P&gt;
  &lt;P&gt;So i have created udf and used. Reference: &lt;A href="https://blogs.sap.com/2015/11/07/node-functions-as-udf-in-sap-pi/" target="test_blank"&gt;https://blogs.sap.com/2015/11/07/node-functions-as-udf-in-sap-pi/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Based on 1 unique value from sender records.. idocs should be generated.&lt;/P&gt;
  &lt;P&gt;Below is structure :&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/117257-idoc-structure.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Mapping for ZOTC_DELVRY01:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/117258-zotc-delvry-field.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Mapping for Z1DLHEADER:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/117259-z1dheader.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Mapping for Z1DLITEM:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/117260-z1dlitem.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Fields :&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Z1DLHEADER:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;ShippingPoint&lt;/P&gt;
  &lt;P&gt;NGBSSD&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Z1DLITEM:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Material&lt;/P&gt;
  &lt;P&gt;SAMPLE data used : &lt;/P&gt;
  &lt;P&gt;Record1 : ShippingPoint: SS01, NGBSSD: SH0001, Material: A&lt;/P&gt;
  &lt;P&gt;Record2 : ShippingPoint: SS01, NGBSSD: SH0001, Material: B&lt;/P&gt;
  &lt;P&gt;Record3 : ShippingPoint: SS02, NGBSSD: SH0002, Material: C&lt;/P&gt;
  &lt;P&gt;Record4 : ShippingPoint: SS02, NGBSSD: SH0002, Material:D&lt;/P&gt;
  &lt;P&gt;As per my requirement Idocs should be formed based on NGBSSD values.&lt;/P&gt;
  &lt;P&gt;Expected output from above sample data: 2 idocs should be formed.&lt;/P&gt;
  &lt;P&gt;1st idoc :&lt;/P&gt;
  &lt;P&gt;Header should have values from Record 1 &lt;/P&gt;
  &lt;P&gt;Item should have Material A &amp;amp; Material B&lt;/P&gt;
  &lt;P&gt;2nd idoc :&lt;/P&gt;
  &lt;P&gt;Header should have values from Record 3&lt;/P&gt;
  &lt;P&gt;Item should have Material C &amp;amp; Material D&lt;/P&gt;
  &lt;P&gt;Current Output:&lt;/P&gt;
  &lt;P&gt; 2 idocs are forming.&lt;/P&gt;
  &lt;P&gt;1st Idoc : &lt;/P&gt;
  &lt;P&gt;Header has values from Record1&lt;/P&gt;
  &lt;P&gt;Item has : Material A &amp;amp; Material B &lt;/P&gt;
  &lt;P&gt;2nd idoc with : &lt;/P&gt;
  &lt;P&gt;Header has values from Record1&lt;/P&gt;
  &lt;P&gt;Material C &amp;amp; Material D in line item.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;For 2nd idoc Header values are wrongly populated in test tab.&lt;/P&gt;
  &lt;P&gt;FYI:&lt;/P&gt;
  &lt;P&gt;when i do DisplayQueue for Z1DLHEADER i am generating correct output. but in test tab not getting correct values.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/117262-display-queue-of-header.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Please somebody help me with this.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Ankyy&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 13:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaq-p/654935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-17T13:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654936#M168225</link>
      <description>&lt;P&gt;Hi Ankky,&lt;/P&gt;
  &lt;P&gt;Do you have an example mapping for one of the header fields that is getting incorrect values and also a screenshot of the mapping?&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Ryan Crosby&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 14:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654936#M168225</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2018-02-17T14:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654937#M168226</link>
      <description>&lt;P&gt;Please check the test data.. highlighted part should have different values (Ie SS02).&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/117268-sample-output.png" /&gt;&lt;/P&gt;
  &lt;P&gt;whereas in display queue i an getting correct output.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/117264-display-queue-of-header.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Ankita&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 17:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654937#M168226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-17T17:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654938#M168227</link>
      <description>&lt;P&gt;Hi Ankita!&lt;/P&gt;
  &lt;P&gt;And what are the mappings for SHIP_POINT and EXT_DELIVERY?&lt;/P&gt;
  &lt;P&gt;Regards, Evgeniy.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 20:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654938#M168227</guid>
      <dc:creator>former_member190293</dc:creator>
      <dc:date>2018-02-17T20:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654939#M168228</link>
      <description>&lt;P&gt;For now rest of all the fields are mapped 1:1 (direct field mapping)&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Ankyy&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2018 06:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654939#M168228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-18T06:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654940#M168229</link>
      <description>&lt;P&gt;Hi Ankyy!&lt;/P&gt;
  &lt;P&gt;If you use direct mapping for SHIP_POINT and EXT_DELIVERY, doesn't it mean that you have four values for each of them in source queue with two pair of values? If so, the result you get is correct since the first two values are SS01/SH0001.&lt;/P&gt;
  &lt;P&gt;I guess you should apply the same mapping for it as you do for Z1DLHEADER.&lt;/P&gt;
  &lt;P&gt;Regards, Evgeniy.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2018 15:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654940#M168229</guid>
      <dc:creator>former_member190293</dc:creator>
      <dc:date>2018-02-18T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654941#M168230</link>
      <description>&lt;P&gt;Mapping is wrong for ZOTC_DELVRY01 and Z1DLHEADER. use collapse context after change value for ZOTC_DELVRY01 mapping.And use splitByvalue after collapse context for Z1DLHEADER mapping&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2018 17:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654941#M168230</guid>
      <dc:creator>former_member314196</dc:creator>
      <dc:date>2018-02-18T17:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654942#M168231</link>
      <description>&lt;P&gt;Direct field mapping means that your header contexts don't match the header field level values because you are generating 2 header level nodes but passing 4 sets of header field level data. You have condensed the header nodes to 2 but retained the 4 unique values using direct mapping but for that header field level you also need to use collapse context to restrict to the unique values.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Ryan Crosby&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 18:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654942#M168231</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2018-02-19T18:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654943#M168232</link>
      <description>&lt;P&gt;I used formatbyexample and issue got resolved.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Ankyy&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654943#M168232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-27T07:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654944#M168233</link>
      <description>&lt;P&gt;Hi Evgeniy,&lt;/P&gt;
  &lt;P&gt;I used formatbyexample and issue got resolved.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Ankyy&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:07:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654944#M168233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-27T07:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in populating correct target node</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654945#M168234</link>
      <description>&lt;P&gt;Issue is resolved. Thanks for suggestion.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Ankyy&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-populating-correct-target-node/qaa-p/654945#M168234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-27T07:16:14Z</dc:date>
    </item>
  </channel>
</rss>

