<?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: Build a tree with recursion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-a-tree-with-recursion/m-p/7078122#M1505580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build your tree step-by-step:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-root node is always shown -&amp;gt; initially add it to the node table of your alv-tree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;user expands root node&lt;/P&gt;&lt;P&gt;-&amp;gt;event expand_no_children has to be handled&lt;/P&gt;&lt;P&gt;-&amp;gt;check which node threw that event&lt;/P&gt;&lt;P&gt;-&amp;gt;if root node, select all persons&lt;/P&gt;&lt;P&gt;-&amp;gt;add the person nodes to your alv-tree node-list, as parent use the root node&lt;/P&gt;&lt;P&gt;-&amp;gt;refresh alv tree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;user expands person-node&lt;/P&gt;&lt;P&gt;-&amp;gt;event expand_no_children has to be handled&lt;/P&gt;&lt;P&gt;-&amp;gt;check which node threw that event&lt;/P&gt;&lt;P&gt;-&amp;gt;if person node, select all visiting hours&lt;/P&gt;&lt;P&gt;-&amp;gt;add the visiting hour nodes to your alv-tree node-list, as parent use the person node&lt;/P&gt;&lt;P&gt;-&amp;gt;refresh alv tree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;dsp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jul 2010 12:26:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-07T12:26:21Z</dc:date>
    <item>
      <title>Build a tree with recursion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-a-tree-with-recursion/m-p/7078121#M1505579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to Create a tree and with recursion (not to use SAP FM) &lt;/P&gt;&lt;P&gt;and i have a tree like the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assume i have a root like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root is level  1 -&amp;gt; customer  &lt;/P&gt;&lt;P&gt;child level 2 -&amp;gt; like contact person &amp;amp; address &lt;/P&gt;&lt;P&gt;child level 3 like visiting hours (contact person ) &amp;amp; Email address (adress )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. of the table that i need to provide as output is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item              parent_key   child_key          &lt;/P&gt;&lt;P&gt;customer                 0001          &lt;/P&gt;&lt;P&gt;contant person         0001         0002 &lt;/P&gt;&lt;P&gt;address                   0001         0002 &lt;/P&gt;&lt;P&gt;vist                        0002         0003&lt;/P&gt;&lt;P&gt;email                      0002         0003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let say i get as input always the root and i check for his child and for this node i &lt;/P&gt;&lt;P&gt;look for his child etc how can i provide a table like the above table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 06:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-a-tree-with-recursion/m-p/7078121#M1505579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T06:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Build a tree with recursion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-a-tree-with-recursion/m-p/7078122#M1505580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build your tree step-by-step:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-root node is always shown -&amp;gt; initially add it to the node table of your alv-tree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;user expands root node&lt;/P&gt;&lt;P&gt;-&amp;gt;event expand_no_children has to be handled&lt;/P&gt;&lt;P&gt;-&amp;gt;check which node threw that event&lt;/P&gt;&lt;P&gt;-&amp;gt;if root node, select all persons&lt;/P&gt;&lt;P&gt;-&amp;gt;add the person nodes to your alv-tree node-list, as parent use the root node&lt;/P&gt;&lt;P&gt;-&amp;gt;refresh alv tree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;user expands person-node&lt;/P&gt;&lt;P&gt;-&amp;gt;event expand_no_children has to be handled&lt;/P&gt;&lt;P&gt;-&amp;gt;check which node threw that event&lt;/P&gt;&lt;P&gt;-&amp;gt;if person node, select all visiting hours&lt;/P&gt;&lt;P&gt;-&amp;gt;add the visiting hour nodes to your alv-tree node-list, as parent use the person node&lt;/P&gt;&lt;P&gt;-&amp;gt;refresh alv tree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;dsp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 12:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-a-tree-with-recursion/m-p/7078122#M1505580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-07T12:26:21Z</dc:date>
    </item>
  </channel>
</rss>

