<?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/1181100#M125811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you solve the problem. I have the same problem an I don't know how to work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Apr 2010 06:35:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-21T06:35:52Z</dc:date>
    <item>
      <title>ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181090#M125801</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;I am using CL_GUI_LIST_TREE to display my tree, here i've a problem in the left pane we have option to expand /collapse .i'm able to capture the event for expansion, but i'm unable to find the event for collapse.&lt;/P&gt;&lt;P&gt;(left side &amp;lt;| click for expand/collapse).what is the event for collapse? if any one have any idea please let me know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 11:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181090#M125801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181091#M125802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The super class of CL_GUI_LIST_TREE  , &lt;/P&gt;&lt;P&gt;   CL_ITEM_TREE_CONTROL has some methods for collapse&lt;/P&gt;&lt;P&gt;   I hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GSR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 11:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181091#M125802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T11:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181092#M125803</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;Look at the link may be you will find some thing.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;If this helps you reward with points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 11:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181092#M125803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T11:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181093#M125804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'know that, in cl_gui_list_tree it self i have a mthod for collapse. but the problem here is i want te event which fires after you click on collapse.&lt;/P&gt;&lt;P&gt;i hope it is clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 11:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181093#M125804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T11:42: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/1181094#M125805</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;PRE&gt;&lt;CODE&gt;lv_tree
      exporting
          parent              = g_custom_container
          node_selection_mode = cl_gui_column_tree=&amp;gt;node_sel_mode_single
          item_selection      = 'X'
          no_html_header      = ''
          no_toolbar          = ''
      exceptions
          cntl_error                   = 1
          cntl_system_error            = 2
          create_error                 = 3
          lifetime_error               = 4
          illegal_node_selection_mode  = 5
          failed                       = 6
          illegal_column_name          = 7.



    perform build_hierarchy_header changing l_hierarchy_header.

    p_logo = 'Your Logo'.

    perform f_build_comment changing is_header
                                     it_header.

    is_variant-report = sy-repid.
    is_variant-log_group = 'LIST'.


    call method g_alv_tree-&amp;gt;set_table_for_first_display
       exporting
                  i_structure_name     = 'Y1MM_IMAC010_ALV'
                  is_variant           = is_variant
                  i_save               = 'A'
                  is_hierarchy_header  = l_hierarchy_header
                  it_list_commentary   = it_header
                  i_logo               = p_logo
                  i_background_id      = 'ALV_BACKGROUND'
       changing
                  it_outtab            = i_out_tree.

* §4. Create hierarchy (nodes and leaves)
    perform create_hierarchy.

* §5. Send data to frontend.
    call method g_alv_tree-&amp;gt;frontend_update.

* Events registering for double click event
    perform f_register_events.


form f_register_events.
* Event registration: tell ALV Tree which events shall be passed
* from frontend to backend.
  data: lt_events type cntl_simple_events,
        l_event type cntl_simple_event,
        l_event_receiver type ref to lcl_tree_event_receiver.
*        l_tb_event_receiver type ref to toolbar_event_receiver.
*        l_dnd_event_receiver TYPE REF TO lcl_dnd_event_receiver.

* Register additional events for your own purposes:
* §Remark: you do not need to register dnd events on frontend

* Note 648983: Register double click event in any case!
* If parameter NO_CALL_TA is set 'X' (e.g. when called from
* batch information cockpit) double click on an BWU elemet results
* in calling the respective transaction starting a new task.
* If parameter NO_CALL_TA is initial, transactions will be displayed
* in the same mode as the batch-where-used list.
  call method g_alv_tree-&amp;gt;get_registered_events
        importing events = lt_events.

* Frontend registration(ii): add additional event ids
  l_event-eventid = cl_gui_column_tree=&amp;gt;eventid_item_double_click.
  append l_event to lt_events.

* Frontend registration(iii):provide new event table to alv tree
  call method g_alv_tree-&amp;gt;set_registered_events
    exporting
      events = lt_events
    exceptions
      cntl_error                = 1
      cntl_system_error         = 2
      illegal_event_combination = 3.
  if sy-subrc &amp;lt;&amp;gt; 0.
* Fehler in der Control-Verarbeitung! (&amp;amp;)
    message s300(12) with 'ERROR'.
  endif.



* Register events on backend (ABAP Objects event handling)
  create object l_event_receiver.
  set handler l_event_receiver-&amp;gt;handle_item_double_click
              for g_alv_tree.

endform.                    " f_register_events.


In the data declaration 
CLASS lcl_tree_event_receiver DEFINITION.

  PUBLIC SECTION.
* Define an event handler method for each event you want to react to.
    METHODS handle_item_double_click
      FOR EVENT item_double_click OF cl_gui_alv_tree
      IMPORTING node_key fieldname sender.
* 'sender' is an implicit event parameter that is provided by
* ABAP Objects runtime system. It contains a reference to the
* object that fired the event. You may directly use it to
* call methods of this instance.
ENDCLASS.
*******************************************************************
CLASS lcl_tree_event_receiver IMPLEMENTATION.
* Implement your event handler methods.

  METHOD handle_item_double_click.
    PERFORM f_show_dclick USING node_key fieldname.
  ENDMETHOD.
ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;here i have defined for double click you need to define for expand/collapse that.. is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;METHOD HANDLE_EXPAND_NC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shekhar Kulkarni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 11:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181094#M125805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T11:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181095#M125806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kulkarni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yea for expansion i've used the same event, but that is not triggering for collapse,&lt;/P&gt;&lt;P&gt;are you able to make it tirgger for both.please let me know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 11:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181095#M125806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T11:53: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/1181096#M125807</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;PRE&gt;&lt;CODE&gt;set handler me-&amp;gt;handle_expand_nc
set handler me-&amp;gt;handle_node_double_click
set handler me-&amp;gt;handle_node_context_menu_rq
set handler me-&amp;gt;handle_node_context_menu_sel
set handler me-&amp;gt;handle_item_double_click
set handler me-&amp;gt;handle_item_context_menu_rq
set handler me-&amp;gt;handle_item_context_menu_sel
&amp;lt;b&amp;gt;set handler me-&amp;gt;handle_selection_changed&amp;lt;/b&amp;gt;
set handler me-&amp;gt;handle_button_click
set handler me-&amp;gt;handle_link_click
set handler me-&amp;gt;handle_header_click
set handler me-&amp;gt;handle_checkbox_change
set handler me-&amp;gt;handle_item_keypress
set handler me-&amp;gt;handle_node_keypress
set handler me-&amp;gt;handle_on_drag
set handler me-&amp;gt;handle_on_drop
set handler me-&amp;gt;handle_on_drag_multiple
set handler me-&amp;gt;handle_on_drop_complete
set handler me-&amp;gt;handle_on_drop_complete_mult
set handler me-&amp;gt;handle_on_drop_get_flavor&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the handlers events that you can use in tree i do not see one for collapse however there exists a method&lt;/P&gt;&lt;P&gt;COLLAPSE_SUBTREE will try to use it and see if by this if is possible in some way to do something when the subtree collapses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shekhar Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 12:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181096#M125807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T12:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181097#M125808</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;i used all of the above events for different things, i could not able to find it for collapse, yes i know collapse_subtree method,but &lt;/P&gt;&lt;P&gt; when can i call this method..., where can i call this method if there no event related.&lt;/P&gt;&lt;P&gt;any way thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Babu Dudla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 12:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181097#M125808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T12:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181098#M125809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry for  my english. try this... it works but the EXPAND method is not the best one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_tree_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  double click item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    METHODS handle_double_click&lt;/P&gt;&lt;P&gt;      FOR EVENT node_double_click OF cl_gui_alv_tree&lt;/P&gt;&lt;P&gt;      IMPORTING node_key.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Drag&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    METHODS handle_on_drag&lt;/P&gt;&lt;P&gt;      FOR EVENT on_drag OF cl_gui_alv_tree&lt;/P&gt;&lt;P&gt;      IMPORTING drag_drop_object&lt;/P&gt;&lt;P&gt;                fieldname&lt;/P&gt;&lt;P&gt;                node_key.&lt;/P&gt;&lt;P&gt;    METHODS on_before_user_command&lt;/P&gt;&lt;P&gt;      FOR EVENT before_user_command OF cl_gui_alv_tree&lt;/P&gt;&lt;P&gt;      IMPORTING ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    METHODS on_after_user_command&lt;/P&gt;&lt;P&gt;      FOR EVENT after_user_command OF cl_gui_alv_tree&lt;/P&gt;&lt;P&gt;      IMPORTING ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "CL_TREE_EVENT_RECEIVER DEFINITION&lt;/P&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;      CLASS CL_TREE_EVENT_RECEIVER IMPLEMENTATION&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;CLASS cl_tree_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;handle double_click&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  METHOD handle_double_click.&lt;/P&gt;&lt;P&gt;    CHECK NOT node_key IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   PERFORM display_ss_log USING node_key.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM display_bkpf_infos USING node_key.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "HANDLE_DOUBLE_CLICK&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Drag &amp;amp; Drop&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  METHOD handle_on_drag.&lt;/P&gt;&lt;P&gt;    CHECK NOT node_key IS INITIAL.&lt;/P&gt;&lt;P&gt;    PERFORM display_ss_log USING node_key.&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        new_code = fcode_entr.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "HANDLE_ON_DRAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD on_before_user_command.&lt;/P&gt;&lt;P&gt;    DATA: l_selected_parent TYPE lvc_nkey.&lt;/P&gt;&lt;P&gt;    DATA: l_selected_node   TYPE lvc_nkey.&lt;/P&gt;&lt;P&gt;    DATA: l_selected_nodes  TYPE lvc_t_nkey.&lt;/P&gt;&lt;P&gt;    DATA: w_lines           TYPE i.&lt;/P&gt;&lt;P&gt;    DATA: l_key             type lvc_nkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE i000(0k) WITH text-e18 ucomm.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CASE ucomm.&lt;/P&gt;&lt;P&gt;      WHEN '&amp;amp;COLLAPSE'.&lt;/P&gt;&lt;P&gt;        CALL METHOD tree1-&amp;gt;collapse_all_nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN '&amp;amp;EXPAND'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD tree1-&amp;gt;get_selected_item&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            e_selected_node   = l_selected_node&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            no_item_selection = 1&lt;/P&gt;&lt;P&gt;            cntl_system_error = 2&lt;/P&gt;&lt;P&gt;            failed            = 3&lt;/P&gt;&lt;P&gt;            OTHERS            = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL METHOD tree1-&amp;gt;get_top_node&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              e_node_key = l_selected_node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        APPEND l_selected_node TO l_selected_nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD tree1-&amp;gt;expand_nodes&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            it_node_key = l_selected_nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "on_before_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD on_after_user_command.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE i000(0k) WITH text-e20 ucomm.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CASE ucomm.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WHEN '&amp;amp;COLLAPSE'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       CALL METHOD tree1-&amp;gt;collapse_all_nodes.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WHEN '&amp;amp;EXPAND'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WHEN OTHERS.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDCASE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDMETHOD.                    "on_after_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "CL_TREE_EVENT_RECEIVER IMPLEMENTATION&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: tree_event_receiver TYPE REF TO cl_tree_event_receiver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 13:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181098#M125809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T13:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181099#M125810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved it on my own&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 05:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181099#M125810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-17T05:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV  tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181100#M125811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how did you solve the problem. I have the same problem an I don't know how to work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 06:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree/m-p/1181100#M125811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T06:35:52Z</dc:date>
    </item>
  </channel>
</rss>

