<?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>topic getting root data in item node in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784911#M1879247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i am created 2 nodes . They are root node and item as subnode.&lt;/P&gt;&lt;P&gt;Initially i entered root data then i went to item data ,here i want to read the root data .&lt;/P&gt;&lt;P&gt;How i can read the root data in item node.&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: root node and item node i am having emp_id field.. here once i enter the root data emp id ,then i go to item node here emp_id filled by default with&amp;nbsp; emp id entered in root node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;through determination i am trying to read the root data. in item level.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone give me the code to read the root data in item node..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Dec 2014 07:26:36 GMT</pubDate>
    <dc:creator>former_member5006</dc:creator>
    <dc:date>2014-12-25T07:26:36Z</dc:date>
    <item>
      <title>getting root data in item node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784911#M1879247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i am created 2 nodes . They are root node and item as subnode.&lt;/P&gt;&lt;P&gt;Initially i entered root data then i went to item data ,here i want to read the root data .&lt;/P&gt;&lt;P&gt;How i can read the root data in item node.&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: root node and item node i am having emp_id field.. here once i enter the root data emp id ,then i go to item node here emp_id filled by default with&amp;nbsp; emp id entered in root node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;through determination i am trying to read the root data. in item level.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone give me the code to read the root data in item node..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 07:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784911#M1879247</guid>
      <dc:creator>former_member5006</dc:creator>
      <dc:date>2014-12-25T07:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: getting root data in item node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784912#M1879248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naveen,&lt;/P&gt;&lt;P&gt;Every composition subnode ( like your item subnode ) has two default associations. They are "To Parent" and "To Root", since your subnode item is a subnode of the ROOT , executing either of them will get you the ROOT data. Execute a Retrieve By Association, with your item node instance keys , node as ITEM , association as "TO ROOT" or "TO PARENT" and the "IV_FILL_DATA" set to true , to collect the ROOT node data directly from the Retrieve By Association call.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Indranil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2014 02:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784912#M1879248</guid>
      <dc:creator>former_member420954</dc:creator>
      <dc:date>2014-12-26T02:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: getting root data in item node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784913#M1879249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can able to read the root information from the item information using io_read-&amp;gt;retrieve_by_assocation method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass the exporting parameter has&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = item key &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; association = item-to_root &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fill_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = abap_true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Importing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_data ( root information )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 09:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784913#M1879249</guid>
      <dc:creator>former_member405745</dc:creator>
      <dc:date>2015-01-02T09:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: getting root data in item node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784914#M1879250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt; To get RooT data you have to use to_root&amp;nbsp; association as in your case root is also a parent node you can use to_parent association also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;io_read-&amp;gt;retrieve_by_assocation &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporting &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; lt_key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " key table&amp;nbsp; that hold item keys&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; association = item-to_root&amp;nbsp;&amp;nbsp;&amp;nbsp; " association name (it is created by default)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fill_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = abap_true&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;nbsp; make it&amp;nbsp; to fetch data &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Importing&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_data =&amp;nbsp;&amp;nbsp;&amp;nbsp; lt_root_data&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;you will get your root data in &lt;STRONG&gt;lt_root_data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;LK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2015 21:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784914#M1879250</guid>
      <dc:creator>laxmikant_soni</dc:creator>
      <dc:date>2015-03-14T21:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: getting root data in item node</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784915#M1879251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the root data create a Determination in item node,&lt;/P&gt;&lt;P&gt;in the determination do the &lt;STRONG&gt;retrieve&lt;/STRONG&gt; with help of parent key&lt;/P&gt;&lt;P&gt;then the root value will retrieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then map the root emp_id to item emp_id&lt;/P&gt;&lt;P&gt;then do_modify and pass item-&amp;gt;emp_id to change fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Shamsundarsing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 03:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-root-data-in-item-node/m-p/10784915#M1879251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-13T03:41:36Z</dc:date>
    </item>
  </channel>
</rss>

