<?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: RE:simple tree list(oops concept) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-simple-tree-list-oops-concept/m-p/3612867#M870412</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;This method is used for Inserting Nodes and Items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes parameters Item_Table and Item_Table_Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where, Item_table is your Internal Table data and Item_Table_Structure which is name of the Structure of the Item in ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


CALL METHOD me-&amp;gt;ADD_NODES_AND_ITEMS
                   EXPORTING
*                     NODE_TABLE                     =
                     ITEM_TABLE                     = it_tab1
                     ITEM_TABLE_STRUCTURE_NAME      = zitab1
*                   EXCEPTIONS
*                     FAILED                         = 1
*                     CNTL_SYSTEM_ERROR              = 2
*                     ERROR_IN_TABLES                = 3
*                     DP_ERROR                       = 4
*                     TABLE_STRUCTURE_NAME_NOT_FOUND = 5
*                     others                         = 6
                         .
                 IF SY-SUBRC &amp;lt;&amp;gt; 0.
*                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
             ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 06:50:36 GMT</pubDate>
    <dc:creator>dhruv_shah3</dc:creator>
    <dc:date>2008-03-31T06:50:36Z</dc:date>
    <item>
      <title>RE:simple tree list(oops concept)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-simple-tree-list-oops-concept/m-p/3612865#M870410</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;&lt;/P&gt;&lt;P&gt;In class CL_GUI_LIST_TREE we have a method called &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;add_nodes_and_items&lt;/STRONG&gt;&amp;gt;.In that method you are exporting &lt;/P&gt;&lt;P&gt;2 tables ie &lt;STRONG&gt;node_table&lt;/STRONG&gt; and  &lt;STRONG&gt;item_table&lt;/STRONG&gt;.I want to know how to populate these 2 tables and also what is the purpose for these 2 tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain with a sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 06:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-simple-tree-list-oops-concept/m-p/3612865#M870410</guid>
      <dc:creator>alex_georgek</dc:creator>
      <dc:date>2008-03-31T06:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: RE:simple tree list(oops concept)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-simple-tree-list-oops-concept/m-p/3612866#M870411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Pls refer the standard pgm SAPTLIST_TREE_CONTROL_DEMO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 06:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-simple-tree-list-oops-concept/m-p/3612866#M870411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T06:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: RE:simple tree list(oops concept)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-simple-tree-list-oops-concept/m-p/3612867#M870412</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;This method is used for Inserting Nodes and Items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes parameters Item_Table and Item_Table_Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where, Item_table is your Internal Table data and Item_Table_Structure which is name of the Structure of the Item in ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


CALL METHOD me-&amp;gt;ADD_NODES_AND_ITEMS
                   EXPORTING
*                     NODE_TABLE                     =
                     ITEM_TABLE                     = it_tab1
                     ITEM_TABLE_STRUCTURE_NAME      = zitab1
*                   EXCEPTIONS
*                     FAILED                         = 1
*                     CNTL_SYSTEM_ERROR              = 2
*                     ERROR_IN_TABLES                = 3
*                     DP_ERROR                       = 4
*                     TABLE_STRUCTURE_NAME_NOT_FOUND = 5
*                     others                         = 6
                         .
                 IF SY-SUBRC &amp;lt;&amp;gt; 0.
*                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
             ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 06:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-simple-tree-list-oops-concept/m-p/3612867#M870412</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-31T06:50:36Z</dc:date>
    </item>
  </channel>
</rss>

