<?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 Problem with REFRESH  ALV GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-refresh-alv-grid/m-p/3669144#M883777</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 have a problem with refreshing ALV.&lt;/P&gt;&lt;P&gt;For ALV functions, I use &lt;STRONG&gt;function modules&lt;/STRONG&gt;, not class/methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did create EVENT_EXIT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
ls_event_exit-ucomm = 'UPD'.
ls_event_exit-after = 'X'.
append ls_event_exit to t_event_exit.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attach this table as parameter in fm &lt;STRONG&gt;REUSE_ALV_GRID_DISPLAY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In user-command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form user_command using ucomm type sy-ucomm
         selfield type slis_selfield.

*-- double-click on item will go to MM02
 case ucomm.
   when '&amp;amp;IC1'.
*-- set values for ID 'MAT'
     call transaction 'MM02' and skip first screen.

     perform refresh_record.           
  endcase.
  
  SET USER-COMMAND 'UPD'.
  selfield-refresh = 'X'.
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem is refreshing ALV does NOT work&lt;/STRONG&gt;. However, when I run the report in &lt;STRONG&gt;debug mode&lt;/STRONG&gt;, it works. I can see new values in ALV list after debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas to overcome this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 08:58:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T08:58:35Z</dc:date>
    <item>
      <title>Problem with REFRESH  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-refresh-alv-grid/m-p/3669144#M883777</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 have a problem with refreshing ALV.&lt;/P&gt;&lt;P&gt;For ALV functions, I use &lt;STRONG&gt;function modules&lt;/STRONG&gt;, not class/methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did create EVENT_EXIT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  
ls_event_exit-ucomm = 'UPD'.
ls_event_exit-after = 'X'.
append ls_event_exit to t_event_exit.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attach this table as parameter in fm &lt;STRONG&gt;REUSE_ALV_GRID_DISPLAY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In user-command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form user_command using ucomm type sy-ucomm
         selfield type slis_selfield.

*-- double-click on item will go to MM02
 case ucomm.
   when '&amp;amp;IC1'.
*-- set values for ID 'MAT'
     call transaction 'MM02' and skip first screen.

     perform refresh_record.           
  endcase.
  
  SET USER-COMMAND 'UPD'.
  selfield-refresh = 'X'.
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem is refreshing ALV does NOT work&lt;/STRONG&gt;. However, when I run the report in &lt;STRONG&gt;debug mode&lt;/STRONG&gt;, it works. I can see new values in ALV list after debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas to overcome this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-refresh-alv-grid/m-p/3669144#M883777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T08:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REFRESH  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-refresh-alv-grid/m-p/3669145#M883778</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;P&gt;In ALV, to refresh the table you have to call the method "refresh_table_display".  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has the syntax very similar to creating the table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed)  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to refresh only the icons around the grid (the data is not refreshed - this option is mostly not used in day to day applications). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the synatx is :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method grid (name of grid )-&amp;gt;refresh_table_display &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS_STABLE = &amp;lt;STRUCT OF TYPE LVC_S_STBL&amp;gt; (THIS IS FOR DATA REFRESHING) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_SOFT_REFRESH = &amp;lt;VARIABLE OF CHAR 01&amp;gt;  (THIS IS FOR ICON REFRESHING). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 09:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-refresh-alv-grid/m-p/3669145#M883778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T09:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with REFRESH  ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-refresh-alv-grid/m-p/3669146#M883779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagadish,&lt;/P&gt;&lt;P&gt;Thanks for your answer. Actually, I don't want to use methods for ALV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, when I set &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
selfield-refresh = 'X'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It will call method &lt;STRONG&gt;refresh_table_display&lt;/STRONG&gt; so we don't need to call it in our report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 10:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-refresh-alv-grid/m-p/3669146#M883779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T10:56:36Z</dc:date>
    </item>
  </channel>
</rss>

