<?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: Refresh ALV Tree based on input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981154#M401257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narayana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I faced the same problem and I think the best solution is as follows : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL METHOD WCL_ALV_TREE-&amp;gt;DELETE_SUBTREE
               EXPORTING I_NODE_KEY = L_TOP_KEY.
*Fetch the data and create the hierarchy
               PERFORM CREATE_HIERARCHY.
**   update frontend
          CALL METHOD WCL_ALV_TREE-&amp;gt;FRONTEND_UPDATE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this will do - is &lt;/P&gt;&lt;P&gt;(1) Delete all nodes&lt;/P&gt;&lt;P&gt;(2) Create the hierarchy once again (see program BCALV_TREE04 for data selection logic &lt;/P&gt;&lt;P&gt;(3) update the frontend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to note is that the node count gets changed, so ensure that you are reading your selected nodes using the method - GET_OUTTAB_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Jan 2011 10:58:48 GMT</pubDate>
    <dc:creator>aditya_niyogi</dc:creator>
    <dc:date>2011-01-29T10:58:48Z</dc:date>
    <item>
      <title>Refresh ALV Tree based on input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981151#M401254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam working on ALV tree.&lt;/P&gt;&lt;P&gt;Iam calling a screen in my program.&lt;/P&gt;&lt;P&gt;On my screen I have an input box and a custom container. I enter a value in the input box and when I press enter, my ALV tree gets populated in the container. If I change the value in the input box,and press enter the ALV tree doesnt get changed. It is the same previous tree. How to refresh my ALV Tree when my input changes and enter is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2007 06:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981151#M401254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-10T06:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV Tree based on input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981152#M401255</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;Check the link below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_refresh.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_refresh.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has the sample code that could solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2007 09:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981152#M401255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-10T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV Tree based on input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981153#M401256</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;What you need to do is look at the Standard SAP Programs for the same..&lt;/P&gt;&lt;P&gt;It will give insight on all the various functionalities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;BCALV_TREE_01 ALV tree control: build up the hierarchy tree &lt;/P&gt;&lt;P&gt;BCALV_TREE_02 ALV tree control: event handling &lt;/P&gt;&lt;P&gt;BCALV_TREE_03 ALV tree control: use an own context menu &lt;/P&gt;&lt;P&gt;BCALV_TREE_04 ALV tree control: add a button to the toolbar &lt;/P&gt;&lt;P&gt;BCALV_TREE_05 ALV tree control: add a menu to the toolbar &lt;/P&gt;&lt;P&gt;BCALV_TREE_06 ALV tree control: Icon column and icon for nodes/items &lt;/P&gt;&lt;P&gt;BCALV_TREE_DEMO Demo for ALV tree control &lt;/P&gt;&lt;P&gt;BCALV_TREE_DND ALV tree control: Drag &amp;amp; Drop within a hierarchy tree &lt;/P&gt;&lt;P&gt;BCALV_TREE_DND_MULTIPLE ALV tree control: Drag &amp;amp; Drop within a hierarchy tree &lt;/P&gt;&lt;P&gt;BCALV_TREE_EVENT_RECEIVER Include BCALV_TREE_EVENT_RECEIVER &lt;/P&gt;&lt;P&gt;BCALV_TREE_EVENT_RECEIVER01 &lt;/P&gt;&lt;P&gt;BCALV_TREE_ITEMLAYOUT ALV Tree: Change Item Layouts at Runtime &lt;/P&gt;&lt;P&gt;BCALV_TREE_MOVE_NODE_TEST Demo for ALV tree control &lt;/P&gt;&lt;P&gt;BCALV_TREE_SIMPLE_DEMO Program BCALV_TREE_SIMPLE_DEMO &lt;/P&gt;&lt;P&gt;BCALV_TREE_VERIFY Verifier for ALV Tree and Simple ALV Tree &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please check the transaction DWDM This will give info also on trees.&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;Shankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2007 09:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981153#M401256</guid>
      <dc:creator>p291102</dc:creator>
      <dc:date>2007-02-10T09:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV Tree based on input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981154#M401257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narayana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I faced the same problem and I think the best solution is as follows : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL METHOD WCL_ALV_TREE-&amp;gt;DELETE_SUBTREE
               EXPORTING I_NODE_KEY = L_TOP_KEY.
*Fetch the data and create the hierarchy
               PERFORM CREATE_HIERARCHY.
**   update frontend
          CALL METHOD WCL_ALV_TREE-&amp;gt;FRONTEND_UPDATE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this will do - is &lt;/P&gt;&lt;P&gt;(1) Delete all nodes&lt;/P&gt;&lt;P&gt;(2) Create the hierarchy once again (see program BCALV_TREE04 for data selection logic &lt;/P&gt;&lt;P&gt;(3) update the frontend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to note is that the node count gets changed, so ensure that you are reading your selected nodes using the method - GET_OUTTAB_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jan 2011 10:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981154#M401257</guid>
      <dc:creator>aditya_niyogi</dc:creator>
      <dc:date>2011-01-29T10:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV Tree based on input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981155#M401258</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 method "REFRESH_TABLE_DISPLAY"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; you have used the class "CL_GUI_ALV_TREE", you can use the method "REFRESH_TABLE_DISPLAY"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then update/insert these values in the internal table you have used while calling the method "SET_TABLE_FOR_FIRST_DISPLAY". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the method "REFRESH_TABLE_DISPLAY". The tree should automatically reflect the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sekharch on Jan 30, 2011 4:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jan 2011 15:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv-tree-based-on-input/m-p/1981155#M401258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-30T15:27:24Z</dc:date>
    </item>
  </channel>
</rss>

