<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212312#M1006577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 11:32:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T11:32:04Z</dc:date>
    <item>
      <title>Alv Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212308#M1006573</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;Please can anybody explain how to get sum and totals in ALV tree list display, when use FM 'RS_TREE_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 08:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212308#M1006573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T08:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212309#M1006574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;  this code will help you to constuct alv treee...&lt;/P&gt;&lt;P&gt;                               Tree Alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZPRITREE2&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPRITREE2.&lt;/P&gt;&lt;P&gt;parameters: p_werks like marc-werks.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;type pool declarations for tree&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*type-pools : fibs,stree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Data declaration for additional node information&lt;/P&gt;&lt;P&gt;data : t_node type snodetext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal table and wa decl for nodes&lt;/P&gt;&lt;P&gt;data : it_node like table of t_node initial size 0,&lt;/P&gt;&lt;P&gt;wa_node like t_node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal table and wa decl for Education table PA0022&lt;/P&gt;&lt;P&gt;data : itab_mara type standard table of marc initial size 0,&lt;/P&gt;&lt;P&gt;wa_mara like line of itab_mara .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal table and wa decl for text table t517x&lt;/P&gt;&lt;P&gt;data : it_maktx type standard table of makt initial size 0,&lt;/P&gt;&lt;P&gt;wa_maktx like line of it_maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal table and wa decl for text table t517T&lt;/P&gt;&lt;P&gt;data : it_lgort type standard table of mard initial size 0,&lt;/P&gt;&lt;P&gt;wa_lgort like line of it_lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal table and wa decl for text table t519T&lt;/P&gt;&lt;P&gt;data : it_519t type standard table of t519t initial size 0,&lt;/P&gt;&lt;P&gt;wa_519t type t519t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*initialization event&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Start of selection event&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Select the data for tree&lt;/P&gt;&lt;P&gt;perform fetch_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Build the hierarchy for tree&lt;/P&gt;&lt;P&gt;perform build_hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Build Tree for display&lt;/P&gt;&lt;P&gt;perform build_tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form fetch_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fetch_data .&lt;/P&gt;&lt;P&gt;*select data from PA0022&lt;/P&gt;&lt;P&gt;select * from marc into corresponding fields of table itab_mara up to 50&lt;/P&gt;&lt;P&gt; rows where werks  = P_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select data from T517x&lt;/P&gt;&lt;P&gt;select * from makt into corresponding fields of table it_maktx .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where langu = 'E'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select data from T517T&lt;/P&gt;&lt;P&gt;select * from mard into corresponding fields of table it_lgort .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " fetch_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form build_hierarchy&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form build_hierarchy .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Building the nodes and hierarchy for tree&lt;/P&gt;&lt;P&gt;clear : it_node[], wa_node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_node-type = 'T'.&lt;/P&gt;&lt;P&gt;wa_node-name = 'plant'.&lt;/P&gt;&lt;P&gt;wa_node-tlevel = '01'.&lt;/P&gt;&lt;P&gt;wa_node-nlength = '15'.&lt;/P&gt;&lt;P&gt;wa_node-color = '4'.&lt;/P&gt;&lt;P&gt;wa_node-text = p_werks.&lt;/P&gt;&lt;P&gt;wa_node-tlength ='20'.&lt;/P&gt;&lt;P&gt;wa_node-tcolor = 3.&lt;/P&gt;&lt;P&gt;append wa_node to it_node.&lt;/P&gt;&lt;P&gt;clear wa_node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Filling the values of internal table into tree&lt;/P&gt;&lt;P&gt;loop at itab_mara into wa_mara.&lt;/P&gt;&lt;P&gt;wa_node-type = 'P'.&lt;/P&gt;&lt;P&gt;wa_node-name = 'material'.&lt;/P&gt;&lt;P&gt;wa_node-tlevel = '02'.&lt;/P&gt;&lt;P&gt;wa_node-nlength = '8'.&lt;/P&gt;&lt;P&gt;wa_node-color = '1'.&lt;/P&gt;&lt;P&gt;wa_node-text = wa_mara-matnr.&lt;/P&gt;&lt;P&gt;wa_node-tlength ='20'.&lt;/P&gt;&lt;P&gt;wa_node-tcolor = 4.&lt;/P&gt;&lt;P&gt;append wa_node to it_node.&lt;/P&gt;&lt;P&gt;clear wa_node.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*Filling the text of T517t&lt;/P&gt;&lt;P&gt;break devuser.&lt;/P&gt;&lt;P&gt;read table it_maktx into wa_maktx with key matnr = wa_mara-matnr.&lt;/P&gt;&lt;P&gt;wa_node-type = 'P'.&lt;/P&gt;&lt;P&gt;wa_node-name = 'description'.&lt;/P&gt;&lt;P&gt;wa_node-tlevel = '03'.&lt;/P&gt;&lt;P&gt;wa_node-nlength = '15'.&lt;/P&gt;&lt;P&gt;wa_node-color = '1'.&lt;/P&gt;&lt;P&gt;wa_node-text = wa_maktx-maktx.&lt;/P&gt;&lt;P&gt;wa_node-tlength ='40'.&lt;/P&gt;&lt;P&gt;wa_node-tcolor = 4.&lt;/P&gt;&lt;P&gt;append wa_node to it_node.&lt;/P&gt;&lt;P&gt;clear wa_node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Filling the text of T519t&lt;/P&gt;&lt;P&gt;read table it_lgort into wa_lgort with key matnr = wa_mara-matnr  werks&lt;/P&gt;&lt;P&gt;= p_werks .&lt;/P&gt;&lt;P&gt;wa_node-type = 'P'.&lt;/P&gt;&lt;P&gt;wa_node-name = 'storage location'.&lt;/P&gt;&lt;P&gt;wa_node-tlevel = '03'.&lt;/P&gt;&lt;P&gt;wa_node-nlength = '25'.&lt;/P&gt;&lt;P&gt;wa_node-color = '2'.&lt;/P&gt;&lt;P&gt;wa_node-text = wa_lgort-lgort.&lt;/P&gt;&lt;P&gt;wa_node-tlength ='40'.&lt;/P&gt;&lt;P&gt;wa_node-tcolor = 4.&lt;/P&gt;&lt;P&gt;append wa_node to it_node.&lt;/P&gt;&lt;P&gt;clear wa_node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform. " build_hierarchy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form build_tree&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form build_tree .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Fm for constructing the tree&lt;/P&gt;&lt;P&gt;call function 'RS_TREE_CONSTRUCT'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;nodetab = it_node.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FM for displaying the tree&lt;/P&gt;&lt;P&gt;call function 'RS_TREE_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;callback_program = sy-repid&lt;/P&gt;&lt;P&gt;check_duplicate_name = '1'&lt;/P&gt;&lt;P&gt;color_of_node = '4'&lt;/P&gt;&lt;P&gt;color_of_mark = '3'&lt;/P&gt;&lt;P&gt;color_of_link = '1'&lt;/P&gt;&lt;P&gt;color_of_match = '5'&lt;/P&gt;&lt;P&gt;node_length = 30&lt;/P&gt;&lt;P&gt;text_length = 75&lt;/P&gt;&lt;P&gt;use_control = 'L'.&lt;/P&gt;&lt;P&gt;endform. " build_tree&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;and wat you want to further achive please explain...&lt;/P&gt;&lt;P&gt; priyank dixit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 08:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212309#M1006574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212310#M1006575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I urgently need how to get the sum and totals if there are currency nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 08:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212310#M1006575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T08:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212311#M1006576</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; The FM RS_TREE_LIST_DISPLAY is not for ALV kind of Function module. The FM is just used to display some contents in tree format. Unfortunately it dont have the option to total or subtotal any values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want all these options in a Tree then you should go for Object oriented ALV for Tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following programs on how they used the Tree display for ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BCALV_TREE_01&lt;/P&gt;&lt;P&gt; BCALV_TREE_03&lt;/P&gt;&lt;P&gt; BCALV_TREE_05&lt;/P&gt;&lt;P&gt; BCALV_TREE_06&lt;/P&gt;&lt;P&gt; BCALV_TREE_DEMO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to calculate the total yourself and add it as a value for each node in the tree. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 08:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212311#M1006576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T08:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alv Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212312#M1006577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 11:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/4212312#M1006577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T11:32:04Z</dc:date>
    </item>
  </channel>
</rss>

