<?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 Refresh ALV List Tree in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870078#M673339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I'm creating an ALV List Tree (CL_GUI_LIST_TREE) and i need to refresh it.&lt;/P&gt;&lt;P&gt;Is there any method i can use for this??&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2007 08:25:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-08T08:25:07Z</dc:date>
    <item>
      <title>Refresh ALV List Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870078#M673339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I'm creating an ALV List Tree (CL_GUI_LIST_TREE) and i need to refresh it.&lt;/P&gt;&lt;P&gt;Is there any method i can use for this??&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 08:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870078#M673339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV List Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870079#M673340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="498898"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="242403"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please give me reward point If it is useful&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;Murali Poli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 08:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870079#M673340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T08:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV List Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870080#M673341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class CL_SALV_HIERSEQ_TABLE mehod REFRESH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 08:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870080#M673341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T08:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV List Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870081#M673342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the ALV list tree &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use call method CALL_ITEM_METHOD OF CL_GUI_LIST_TREE class &lt;/P&gt;&lt;P&gt;Use method item_free where item is object CL_GUI_OBJECT class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the CLASS CL_GUI_ALV_TREE&lt;/P&gt;&lt;P&gt;there is method refresh_table_display &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 08:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870081#M673342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T08:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV List Tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870082#M673343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare table to store top leve nodes in top include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_topnodes,&lt;/P&gt;&lt;P&gt; nodekey type lvc_nkey,&lt;/P&gt;&lt;P&gt;end of t_topnodes.&lt;/P&gt;&lt;P&gt;data: it_topnodes type standard table of t_topnodes,&lt;/P&gt;&lt;P&gt;      wa_topnodes like line of it_topnodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add code to build top level node table&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;      Form  CREATE_ALVTREE_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;      Builds ALV tree display, (inserts nodes, subnodes etc)&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 create_alvtree_hierarchy.&lt;/P&gt;&lt;P&gt;  data: ls_sflight type sflight,&lt;/P&gt;&lt;P&gt;        lt_sflight type sflight occurs 0.&lt;/P&gt;&lt;P&gt;  data: ld_ebeln_key type lvc_nkey,&lt;/P&gt;&lt;P&gt;        ld_ebelp_key type lvc_nkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt;    perform add_ekko_node using      wa_ekko&lt;/P&gt;&lt;P&gt;                                     ''&lt;/P&gt;&lt;P&gt;                            changing ld_ebeln_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_topnodes-nodekey = ld_ebeln_key.&lt;/P&gt;&lt;P&gt;        append wa_topnodes to it_topnodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at it_ekpo into wa_ekpo where ebeln eq wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;      perform add_ekpo_line using      wa_ekpo&lt;/P&gt;&lt;P&gt;                                       ld_ebeln_key&lt;/P&gt;&lt;P&gt;                              changing ld_ebelp_key.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;calculate totals&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method gd_tree-&amp;gt;update_calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this method must be called to send the data to the frontend&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method gd_tree-&amp;gt;frontend_update.&lt;/P&gt;&lt;P&gt;endform.                    " CREATE_ALVTREE_HIERARCHY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Add code to to the ALV Tree user command functionality &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; EXAMPLE C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gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&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 lcl_toolbar_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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ........                                                    *&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 lcl_toolbar_event_receiver implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  method on_function_selected.&lt;/P&gt;&lt;P&gt;    data: ls_gmsec type zgmsec,&lt;/P&gt;&lt;P&gt;           ld_answer type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case fcode.&lt;/P&gt;&lt;P&gt;      when 'CHNG'.&lt;/P&gt;&lt;P&gt;        data: ld_uname type zgmuserparam-uname.&lt;/P&gt;&lt;P&gt;        data: lt_selected_node type lvc_t_nkey.&lt;/P&gt;&lt;P&gt;        call method tree1-&amp;gt;get_selected_nodes&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            ct_selected_nodes = lt_selected_node.&lt;/P&gt;&lt;P&gt;        call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;        data l_selected_node type lvc_nkey.&lt;/P&gt;&lt;P&gt;        check not lt_selected_node[] is initial.&lt;/P&gt;&lt;P&gt;        read table lt_selected_node into l_selected_node index 1.&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    = l_selected_node&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            e_outtab_line = ls_gmsec.&lt;/P&gt;&lt;P&gt;        if ls_gmsec-uname is initial.&lt;/P&gt;&lt;P&gt;          message i010(ad) with 'Please choose a valid user'.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Example: i.e calls screen to allow user to make chnage&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          call screen 0300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AT this point user has returned from a screen (i.e. 300) which &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;allowed them to make changes to existing data/node         &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The following code deletes all the existing nodes using the top &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;node table populated earlier&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          loop at it_topnodes into wa_topnodes.&lt;/P&gt;&lt;P&gt;            call method TREE1-&amp;gt;DELETE_SUBTREE&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                i_node_key = wa_topnodes-nodekey.&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;P&gt;          call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;&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;Now you need to re-select your data and re-build your hierarchy &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from scratch. for example the code could look somthing like this.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          REFRESH: it_ekko, it_ekpo.&lt;/P&gt;&lt;P&gt;          SELECT ebeln&lt;/P&gt;&lt;P&gt;          UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;            FROM ekko&lt;/P&gt;&lt;P&gt;            INTO corresponding fields of TABLE it_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          loop at it_ekko into wa_ekko.&lt;/P&gt;&lt;P&gt;            SELECT ebeln ebelp statu aedat matnr menge meins &lt;/P&gt;&lt;P&gt;                   netpr peinh&lt;/P&gt;&lt;P&gt;              FROM ekpo&lt;/P&gt;&lt;P&gt;              appending TABLE it_ekpo&lt;/P&gt;&lt;P&gt;             where ebeln eq wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          perform create_alvtree_hierarchy. &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_refresh.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_refresh.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 09:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-list-tree/m-p/2870082#M673343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T09:02:27Z</dc:date>
    </item>
  </channel>
</rss>

