<?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 Re: ALV Tree: match node to object reference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-match-node-to-object-reference/m-p/10433652#M1845811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What worked for me is during the build of node, I am concatenating the &lt;STRONG&gt;unique values&lt;/STRONG&gt; of the itab into the &lt;STRONG&gt;node_key&lt;/STRONG&gt;.&amp;nbsp; This way, I can point back to the actual record by splitting the value and retrieving the correct itab entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 15:55:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-30T15:55:49Z</dc:date>
    <item>
      <title>ALV Tree: match node to object reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-match-node-to-object-reference/m-p/10433650#M1845809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anyone help me with matching the node shown in the ALV tree with the object reference that contained the data.&lt;/P&gt;&lt;P&gt;In my program I create a hierarchie of objects of different local classes. Then I show this hierarchie using cl_gui_alv_tree on the UI. When someone clicks on one of the nodes I want to show more attributes of the object that is represented by the node. My problem is that I do have a node_key but no way to find out which object the node represents. Is there any way to match the two?&lt;/P&gt;&lt;P&gt;In a different programming language they solved the problem this way: Every node has an attribute called "data" where I can put in whatever I want, for example a reference to an object. Is there any such thing in ABAP or is there any other best practise on how to match the data source withe the node showing the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fenja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 12:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-match-node-to-object-reference/m-p/10433650#M1845809</guid>
      <dc:creator>fenja_schulz</dc:creator>
      <dc:date>2014-07-11T12:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree: match node to object reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-match-node-to-object-reference/m-p/10433651#M1845810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fenja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as the click-events only raise the node_key (at least I couldn't detect another information), I assume the only way is maintaining an internal helper table by yourself which you build up in parallel when creating the tree and its nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The (hashed) table might contain 2 columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. node_key (as table key)&lt;/P&gt;&lt;P&gt;2. reference to an object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a click-event is raised, you look up the corresponding object reference in your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 15:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-match-node-to-object-reference/m-p/10433651#M1845810</guid>
      <dc:creator>former_member201285</dc:creator>
      <dc:date>2014-07-11T15:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree: match node to object reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-match-node-to-object-reference/m-p/10433652#M1845811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What worked for me is during the build of node, I am concatenating the &lt;STRONG&gt;unique values&lt;/STRONG&gt; of the itab into the &lt;STRONG&gt;node_key&lt;/STRONG&gt;.&amp;nbsp; This way, I can point back to the actual record by splitting the value and retrieving the correct itab entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:55:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-match-node-to-object-reference/m-p/10433652#M1845811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-30T15:55:49Z</dc:date>
    </item>
  </channel>
</rss>

