<?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 data in ALV Grid Display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633965#M1282593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To refresh the data in the ALV grid display after the user has pressed on a button you can use &lt;/P&gt;&lt;P&gt;this Function Module &lt;STRONG&gt;'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/STRONG&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;Cheers &lt;/P&gt;&lt;P&gt;fareed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 05:22:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T05:22:45Z</dc:date>
    <item>
      <title>Refresh data in ALV Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633960#M1282588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to ask how to refresh the data in the ALV grid display after the user has pressed on a button.  I am using the Function Module REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 03:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633960#M1282588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T03:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh data in ALV Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633961#M1282589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form user_command using ucomm type sy-ucomm&lt;/P&gt;&lt;P&gt;                     selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;endform.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 03:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633961#M1282589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T03:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh data in ALV Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633962#M1282590</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;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;/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;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 04:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633962#M1282590</guid>
      <dc:creator>former_member556412</dc:creator>
      <dc:date>2009-05-21T04:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh data in ALV Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633963#M1282591</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;  At u'r output screen first create a button for refresh data.&lt;/P&gt;&lt;P&gt;  when clicking the button.&lt;/P&gt;&lt;P&gt;  write the  below code under form user_command and endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS: l_c_repid TYPE sy-repid VALUE  '/CCC/RDSDSLSR_GTS_RECON'.&lt;/P&gt;&lt;P&gt;  DATA: l_i_seltab TYPE TABLE OF rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      curr_report           = l_c_repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SP                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      selection_table       = l_i_seltab&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     not_found             = 1&lt;/P&gt;&lt;P&gt;     no_report             = 2&lt;/P&gt;&lt;P&gt;     OTHERS                = 3&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SUBMIT /ccc/rdsdslsr_gts_recon WITH SELECTION-TABLE l_i_seltab.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 05:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633963#M1282591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T05:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh data in ALV Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633964#M1282592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a button in alv toolbar with some function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the at-usercommand event ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether sy-ucomm = 'The function code for refresh button".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes , then set the value of field 'slis_selfield-refresh' to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will help to refresh the alv .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 05:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633964#M1282592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T05:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh data in ALV Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633965#M1282593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To refresh the data in the ALV grid display after the user has pressed on a button you can use &lt;/P&gt;&lt;P&gt;this Function Module &lt;STRONG&gt;'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/STRONG&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;Cheers &lt;/P&gt;&lt;P&gt;fareed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 05:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633965#M1282593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T05:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh data in ALV Grid Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633966#M1282594</link>
      <description>&lt;P&gt;OUFFF OK!!!!, just to clarify what is &lt;STRONG&gt;the only good answer to the question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The problem risen here is that following a user action, the context may have changed and you need to reflect that change in the ALV.&lt;/P&gt;&lt;P&gt;Simple example: &lt;/P&gt;&lt;P&gt;I had that vendor blocking program to do. I was displaying an alv of the selected vendors with one of the fields being the block status. Then at the push of a button, I was blocking the unblocked vendors one by one, modifying the blocking status field of the feeding internal table along the way. &lt;/P&gt;&lt;P&gt;If I had not done anything specifically to refresh the ALV, after button action was completed, the block fields on the screen would have not been updated accordingly.&lt;/P&gt;&lt;P&gt;So, as one guy said above, the trick is crazy simple: &lt;/P&gt;&lt;P&gt;selfield-refresh = 'X'!!!!&lt;/P&gt;&lt;P&gt;As you know, to respond to user action you have to pass a user command form to your ALV call. The structure of that form is mandatory and as below(you can change the namings as you like, as long as you have a ucomm field followed by a slis_selfield).&lt;/P&gt;&lt;P&gt;And bingo, if you change back the parameter selfield-refresh to 'X', it will trigger automatically a refresh from your modified internal table that feeds your ALV &lt;/P&gt;&lt;P&gt;form user_command using ucomm type sy-ucomm selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-data-in-alv-grid-display/m-p/5633966#M1282594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-04T14:22:29Z</dc:date>
    </item>
  </channel>
</rss>

