<?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/5096005#M1182746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Arun Kayal,&lt;/P&gt;&lt;P&gt;                       I got the method EXPAND_NODE but i have to pass the node_key which i got only if there are any single Click event .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 11:44:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-03T11:44:21Z</dc:date>
    <item>
      <title>ALV TREE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/5096003#M1182744</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;      i am working on alv tree (CL_GUI_COLUMN_TREE) . i have expand/collapse  buttons.  So if I select a node and hit the expand button, the program should expand everything below it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. is there is any single click event in event table(TYPE CNTL_SIMPLE_EVENTS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tarak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 11:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/5096003#M1182744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T11:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV TREE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/5096004#M1182745</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;PRE&gt;&lt;CODE&gt;
Class CL_GUI_COLUMN_TREE inherit methods of class CL_TREE_CONTROL_BASE, so just use the method expand_root_nodes
CALL METHOD tree-&amp;gt;expand_root_nodes
  EXPORTING  level_count = level_count
             expand_subtree = expand_subtree
  EXCEPTIONS failed = 1
             illegal_level_count = 2
             cntl_system_error = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where level_count : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0: Only the root nodes are expanded - no underlying nodes. &lt;/P&gt;&lt;P&gt;1: The current node and the next hierarchy level are expanded. &lt;/P&gt;&lt;P&gt;and expand_subtree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'X': Expands all nodes in the subtree. The system ignores any value of LEVEL_COUNT &lt;/P&gt;&lt;P&gt;To collapse all nodes use method COLLAPSE_ALL_NODES &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at SAP Tree and Tree Model (BC-CI) or SAP Tree Model for documentation and read SAP demo programs like SAPCOLUMN_TREE_CONTROL_DEMO, SAPSIMPLE_TREE_CONTROL_DEMO, and&lt;/P&gt;&lt;P&gt;SAPTLIST_TREE_CONTROL_DEMO, BCALV_TREE_SIMPLE_DEMO and BCALV_TREE_DEMO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun Kayal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 11:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/5096004#M1182745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T11:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV TREE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/5096005#M1182746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Arun Kayal,&lt;/P&gt;&lt;P&gt;                       I got the method EXPAND_NODE but i have to pass the node_key which i got only if there are any single Click event .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 11:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/5096005#M1182746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T11:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV TREE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/5096006#M1182747</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;&lt;/P&gt;&lt;P&gt;Use selection_changed event to collapse or expand all nodes when left mouse button clicked on any node and call methods collapse_all_nodes and expand_node in the event handler method.&lt;/P&gt;&lt;P&gt;Selection_changed event triggers for every left click on any node&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can refer the given below link for demo program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITREE/BCCITREE.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITREE/BCCITREE.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arun Kayal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arun Kayal on Feb 3, 2009 12:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 11:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/5096006#M1182747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T11:50:27Z</dc:date>
    </item>
  </channel>
</rss>

