<?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-Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198591#M762226</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;You can use the class CL_GUI_ALV_TREE and method SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By performing a where used list on this - it would return sample and demo programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP also provides demo programs as follows:&lt;/P&gt;&lt;P&gt;BCALV_TEST_SIMPLE_TREE&lt;/P&gt;&lt;P&gt;BCALV_TREE_01&lt;/P&gt;&lt;P&gt;BCALV_TREE_02&lt;/P&gt;&lt;P&gt;BCALV_TREE_03&lt;/P&gt;&lt;P&gt;BCALV_TREE_04&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;BCALV_TREE_DND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are easy to follow and if you dont have any complications can even reuse exact code from those programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/alv/alvtree.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/alv/alvtree.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Hema Sundara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2007 11:26:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-31T11:26:52Z</dc:date>
    <item>
      <title>ALV Tree-Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198588#M762223</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 new to ALV tree. There is an Tree ALV displayed in the output. Behind the node there is a check box for each node and also for the each line item of that node. when the user click on the check box of that node all the lineitem of that particular node need to checked and all the line item data has to be captureed. I have added the check box  behind the node as well as line item of that node.  when user select the node&lt;/P&gt;&lt;P&gt;how the line item will be selected automatically and how do i capture that selected line item, Please suggest me or send me some sample of code.&lt;/P&gt;&lt;P&gt;emmidiate help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyaranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 12:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198588#M762223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T12:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree-Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198589#M762224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Priyaranjan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following coding was used in a modified version of sample report &lt;STRONG&gt;BCALV_TREE_DEMO&lt;/STRONG&gt; where I added a checkbox to each displayed line in the ALV tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The event handler method &lt;STRONG&gt;HANDLE_CHECKBOX_CHANGE&lt;/STRONG&gt; (event CHECKBOX_CHANGE) looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD handle_checkbox_change.&lt;/P&gt;&lt;P&gt;    BREAK-POINT.&lt;/P&gt;&lt;P&gt;    DATA: ld_nkey    TYPE lvc_nkey.&lt;/P&gt;&lt;P&gt;    DATA: lt_nodes   TYPE lvc_t_nkey.&lt;/P&gt;&lt;P&gt;    DATA: ld_ntext   TYPE lvc_value,&lt;/P&gt;&lt;P&gt;          ls_item_u  TYPE lvc_s_laci,&lt;/P&gt;&lt;P&gt;          ls_item    TYPE lvc_s_layi,&lt;/P&gt;&lt;P&gt;          lt_items   TYPE lvc_t_layi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ld_nkey = node_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"   Get subtree of selected node (including selected node)&lt;/P&gt;&lt;P&gt;    CALL METHOD tree1-&amp;gt;get_subtree&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_node_key       = ld_nkey&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        et_subtree_nodes = lt_nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT lt_nodes INTO ld_nkey.&lt;/P&gt;&lt;P&gt;      CALL METHOD tree1-&amp;gt;get_outtab_line&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_node_key     = ld_nkey&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         E_OUTTAB_LINE  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          e_node_text    = ld_ntext&lt;/P&gt;&lt;P&gt;          et_item_layout = lt_items&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         ES_NODE_LAYOUT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          node_not_found = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&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;      LOOP AT lt_items INTO ls_item&lt;/P&gt;&lt;P&gt;           WHERE ( class = cl_gui_column_tree=&amp;gt;item_class_checkbox&lt;/P&gt;&lt;P&gt;           AND     editable = 'X' ).&lt;/P&gt;&lt;P&gt;        CLEAR: ls_item_u.&lt;/P&gt;&lt;P&gt;        MOVE-CORRESPONDING ls_item TO ls_item_u.&lt;/P&gt;&lt;P&gt;        ls_item_u-chosen   = checked.    " mark checkbox&lt;/P&gt;&lt;P&gt;        ls_item_u-u_chosen = 'X'.        " do update of checkbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD tree1-&amp;gt;change_item&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_node_key     = ld_nkey&lt;/P&gt;&lt;P&gt;            i_fieldname    = tree1-&amp;gt;c_hierarchy_column_name&lt;/P&gt;&lt;P&gt;            i_data         = ' '&lt;/P&gt;&lt;P&gt;            i_u_data       = ' '&lt;/P&gt;&lt;P&gt;            is_item_layout = ls_item_u&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            node_not_found = 1&lt;/P&gt;&lt;P&gt;            OTHERS         = 2.&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;      ENDLOOP.  " items of a single node&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.  " nodes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  update frontend&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD tree1-&amp;gt;frontend_update.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_checkbox_change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you should be able to &lt;EM&gt;Cut&amp;amp;Paste&lt;/EM&gt; this coding and it will work on your ALV tree (&lt;STRONG&gt;CL_GUI_ALV_TREE&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;Do not forget to register the required event and set the event handler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;define the events which will be passed to the backend&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_event-eventid = cl_gui_column_tree=&amp;gt;eventid_expand_no_children.&lt;/P&gt;&lt;P&gt;  APPEND l_event TO lt_events.&lt;/P&gt;&lt;P&gt;  l_event-eventid = cl_gui_column_tree=&amp;gt;eventid_checkbox_change.&lt;/P&gt;&lt;P&gt;  APPEND l_event TO lt_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD tree1-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      events                    = lt_events&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cntl_error                = 1&lt;/P&gt;&lt;P&gt;      cntl_system_error         = 2&lt;/P&gt;&lt;P&gt;      illegal_event_combination = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE x208(00) WITH 'ERROR'.                          "#EC NOTEXT&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET HANDLER l_event_receiver-&amp;gt;handle_checkbox_change FOR tree1.&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 21:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198589#M762224</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-12-28T21:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree-Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198590#M762225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for your immediate response.  Now when i check the node of the check box the line items of that node are automatically selected. But when i try to deselect the node it is not working . Kindly Suggest me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyaranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 08:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198590#M762225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T08:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree-Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198591#M762226</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;You can use the class CL_GUI_ALV_TREE and method SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By performing a where used list on this - it would return sample and demo programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP also provides demo programs as follows:&lt;/P&gt;&lt;P&gt;BCALV_TEST_SIMPLE_TREE&lt;/P&gt;&lt;P&gt;BCALV_TREE_01&lt;/P&gt;&lt;P&gt;BCALV_TREE_02&lt;/P&gt;&lt;P&gt;BCALV_TREE_03&lt;/P&gt;&lt;P&gt;BCALV_TREE_04&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;BCALV_TREE_DND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are easy to follow and if you dont have any complications can even reuse exact code from those programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/alv/alvtree.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/alv/alvtree.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Hema Sundara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 11:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198591#M762226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T11:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree-Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198592#M762227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  when the user select the node check box the line items of that node are automatically selected and i could capture the data which has been selected. But i when i try to deselect the node checkbox, only the node check box is deselected not the line items of that node. I have copied your code and paist in my code it is working for selection, not for deselection of the node. Please suggest me asap as it is urgent for me.&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;Priyaranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 06:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198592#M762227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T06:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree-Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198593#M762228</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; Below is my code.&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;P&gt;CLASS lcl_tree_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS handle_checkbox_change&lt;/P&gt;&lt;P&gt;      FOR EVENT checkbox_change OF cl_gui_alv_tree&lt;/P&gt;&lt;P&gt;      IMPORTING node_key.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_tree_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD handle_checkbox_change.&lt;/P&gt;&lt;P&gt;    DATA: ld_nkey    TYPE lvc_nkey.&lt;/P&gt;&lt;P&gt;    DATA: lt_nodes   TYPE lvc_t_nkey.&lt;/P&gt;&lt;P&gt;    DATA: ld_ntext   TYPE lvc_value,&lt;/P&gt;&lt;P&gt;          ls_item_u  TYPE lvc_s_laci,&lt;/P&gt;&lt;P&gt;          ls_item    TYPE lvc_s_layi,&lt;/P&gt;&lt;P&gt;          lt_items   TYPE lvc_t_layi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ld_nkey = node_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "   Get subtree of selected node (including selected node)&lt;/P&gt;&lt;P&gt;    CALL METHOD tree1-&amp;gt;get_subtree&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_node_key       = ld_nkey&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        et_subtree_nodes = lt_nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT lt_nodes INTO ld_nkey.&lt;/P&gt;&lt;P&gt;      CALL METHOD tree1-&amp;gt;get_outtab_line&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_node_key     = ld_nkey&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         E_OUTTAB_LINE  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          e_node_text    = ld_ntext&lt;/P&gt;&lt;P&gt;          et_item_layout = lt_items&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         ES_NODE_LAYOUT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          node_not_found = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&lt;/P&gt;&lt;P&gt;      IF sy-subrc  EQ 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;      LOOP AT lt_items INTO ls_item&lt;/P&gt;&lt;P&gt;           WHERE ( class = cl_gui_column_tree=&amp;gt;item_class_checkbox&lt;/P&gt;&lt;P&gt;           AND     editable = 'X' ).&lt;/P&gt;&lt;P&gt;        CLEAR: ls_item_u.&lt;/P&gt;&lt;P&gt;        MOVE-CORRESPONDING ls_item TO ls_item_u.&lt;/P&gt;&lt;P&gt;        IF  ls_item_u-chosen = ' '.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         ls_item_u-chosen   = 'X'.        " mark checkbox&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          ls_item_u-u_chosen = ' '.        " do update of checkbox&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          ls_item_u-u_chosen = 'X'.&lt;/P&gt;&lt;P&gt;          ls_item_u-u_editable = 'X'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        CALL METHOD tree1-&amp;gt;change_item&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_node_key     = ld_nkey&lt;/P&gt;&lt;P&gt;            i_fieldname    = tree1-&amp;gt;c_hierarchy_column_name&lt;/P&gt;&lt;P&gt;            i_data         = ' '&lt;/P&gt;&lt;P&gt;            i_u_data       = 'X'&lt;/P&gt;&lt;P&gt;            is_item_layout = ls_item_u&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            node_not_found = 1&lt;/P&gt;&lt;P&gt;            OTHERS         = 2.&lt;/P&gt;&lt;P&gt;        IF sy-subrc  EQ 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;      ENDLOOP.  " items of a single node&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.  " nodes&lt;/P&gt;&lt;P&gt;    gt_nodes[] = lt_nodes[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH lt_nodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  update frontend&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD tree1-&amp;gt;frontend_update.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_checkbox_change&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end of Change-------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here if i check the node the line items of that node are automatically selected, but when i deselect the node, the line items of that node are not deselected, only the node is deselected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried a lot many ways to solve this problem, but not able to do that. Please suggest me to achieve this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyaranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 15:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-problem/m-p/3198593#M762228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T15:29:15Z</dc:date>
    </item>
  </channel>
</rss>

