<?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 table in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410680#M537642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the USER_COMMAND routine set &amp;lt;b&amp;gt;REFRESH = 'X'.&amp;lt;/b&amp;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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2007 13:24:29 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-06-25T13:24:29Z</dc:date>
    <item>
      <title>Refresh table in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410679#M537641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem in refreshing the internal table in ALV. I am displaying records of internal table with checkbox. user can select one or more records and then presses delete button. I have written code in User command form to delete the selected records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the internal table it has deleted the selected records. but when alv is displayed again it is displaying old internal table records( all records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code in user command subroutine.&lt;/P&gt;&lt;P&gt;loop at itab where checkbox = 'X'.&lt;/P&gt;&lt;P&gt;delete itab index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let know what needs to be done. points will be awarded for helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 13:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410679#M537641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T13:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh table in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410680#M537642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the USER_COMMAND routine set &amp;lt;b&amp;gt;REFRESH = 'X'.&amp;lt;/b&amp;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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 13:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410680#M537642</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-06-25T13:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh table in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410681#M537643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the function module ALV, you need to set the REFRESH flag in the USER_COMMAND routine.  HEre is an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Call ABAP List Viewer (ALV)
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = repid
            i_callback_user_command = 'HANDLE_USER_COMMAND'
            it_fieldcat             = ifc
       tables
            t_outtab                = itab.

endform.

***********************************************************************
*       FORM handle_User_Command                                      *
***********************************************************************
form handle_user_command using r_ucomm     like sy-ucomm
                               rs_selfield type slis_selfield.

  case r_ucomm.
    when '&amp;amp;IC1'.

*  DO Something
        rs_selfield-refresh = 'X'.

  endcase.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 13:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410681#M537643</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-25T13:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh table in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410682#M537644</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;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;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 13:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410682#M537644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh table in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410683#M537645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is solved. thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 14:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-in-alv/m-p/2410683#M537645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T14:08:58Z</dc:date>
    </item>
  </channel>
</rss>

