<?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 CL_GUI_ALV_GRID refresh problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433990#M1246712</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've been checking all the post but now answer found for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have an ALV OO and when I display the data all is correct. But, when I come back to the selection screen and I change the selection and execute, the old data still appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I  free all the objects and refresh internal table with new data, but after execute   CALL METHOD g_grid-&amp;gt;set_table_for_first_display, the old data still is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2009 11:30:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-27T11:30:27Z</dc:date>
    <item>
      <title>CL_GUI_ALV_GRID refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433990#M1246712</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've been checking all the post but now answer found for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have an ALV OO and when I display the data all is correct. But, when I come back to the selection screen and I change the selection and execute, the old data still appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I  free all the objects and refresh internal table with new data, but after execute   CALL METHOD g_grid-&amp;gt;set_table_for_first_display, the old data still is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 11:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433990#M1246712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T11:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_ALV_GRID refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433991#M1246713</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;When initially you display the data using the OO ALV using method &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL METHOD z_grid-&amp;gt;set_table_for_first_display&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;And while going back to the selection screen use code:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE sy-ucomm.
  WHEN 'BACK'.
    LEAVE TO SCREEN 0.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user clicks back button to return to selection screen, change the data for selection criteria and then execute, you would be displayed new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working fine in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 11:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433991#M1246713</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-27T11:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_ALV_GRID refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433992#M1246714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you free the object reference variable? According to that, check that you set the correct life_time parameter when creating the object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 11:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433992#M1246714</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-03-27T11:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_ALV_GRID refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433993#M1246715</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;Try freeing all your objects and clear your&lt;/P&gt;&lt;P&gt;internal tables work area in the &lt;STRONG&gt;PBO&lt;/STRONG&gt; of your&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Selection Screen&lt;/STRONG&gt; that is in your&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AT SELECTION SCREEN BEFORE OUTPUT&lt;/STRONG&gt; Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 11:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433993#M1246715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T11:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_ALV_GRID refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433994#M1246716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call refresh table display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 11:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433994#M1246716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T11:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_ALV_GRID refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433995#M1246717</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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;refresh the ALV Grid output from internal table "&amp;lt;--&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      l_selfield-refresh = 'X'.  "&amp;lt;-- to refresh alv from internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help u......................&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;&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;k.karthikeyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 12:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433995#M1246717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T12:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_ALV_GRID refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433996#M1246718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is "rotten" in your report. There is no need to free any objects when you go back to the selection-screen.&lt;/P&gt;&lt;P&gt;You may have a look at my sample report &lt;STRONG&gt;ZUS_SDN_TWO_ALV_GRIDS_2SCR&lt;/STRONG&gt; in thread&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1013798"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add an additional selection parameter and change the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:
  p_bukrs         TYPE bukrs       DEFAULT '1000'.

...
START-OF-SELECTION.
 
  SELECT        * FROM  knb1 INTO TABLE gt_outtab1
         " WHERE  bukrs  = '1000'.
         WHERE  bukrs = p_bukrs.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you simulate your situation.&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, 27 Mar 2009 12:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433996#M1246718</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-27T12:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_ALV_GRID refresh problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433997#M1246719</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; thank you for all you answers.&lt;/P&gt;&lt;P&gt;In the report I have a AT SELECTION-SCREEN. instead of a START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;Thats why the refresh is now working. I delete the AT SELECTION-SCREEN and now it's working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I found a second error. Once I have the ALV(screen 100), I select one row and display it in a second ALV (screen 200). After that, I came back and select another row and display it. The first one is still appearing althought I refresh all the objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last thing I have to try in Uwe thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 13:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-alv-grid-refresh-problem/m-p/5433997#M1246719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-27T13:35:14Z</dc:date>
    </item>
  </channel>
</rss>

