<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871710#M673790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm" target="test_blank"&gt;http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 14:12:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T14:12:22Z</dc:date>
    <item>
      <title>Refresh ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871707#M673787</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;I'm using FM 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' for ALV list .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I refresh the list display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanjs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 13:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871707#M673787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T13:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871708#M673788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as far as I know this is not possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 14:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871708#M673788</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2007-09-19T14:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871709#M673789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a button in my dynpro "refresh".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declaration:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: alv_list1      TYPE REF TO cl_gui_alv_grid,
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert this code into the PAI module:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE ok_code.
  WHEN 'REFRESH'. CALL METHOD alv_list1-&amp;gt;refresh_table_display.
ENDCASE.
&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;&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by:  Steffen Fröhlich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry I was talking by an ALV-GRID...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 14:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871709#M673789</guid>
      <dc:creator>former_member183924</dc:creator>
      <dc:date>2007-09-19T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871710#M673790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm" target="test_blank"&gt;http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 14:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871710#M673790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871711#M673791</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;see the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_callback_program = gd_repid&lt;/P&gt;&lt;P&gt;i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM&lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_grid_title = outtext&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;is_layout = gd_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = fieldcatalog[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;it_special_groups = gd_tabgroup&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IT_EVENTS = GT_XEVENTS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_save = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;is_variant = z_template&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = it_ekko&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform. " DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE r_ucomm.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;DEALL'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Message for reselection of lines&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF itab_display-kalab LE 0.&lt;/P&gt;&lt;P&gt;MESSAGE i101.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;To refresh...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs_selfield-refresh = 'X'."structure slis_selfield&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 14:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871711#M673791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T14:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871712#M673792</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;Pls, Go through this link it will be help full for you create ALV Automatically.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.alvrobot.com.ar/SRG_1.php" target="test_blank"&gt;http://www.alvrobot.com.ar/SRG_1.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if u need further help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 14:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871712#M673792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871713#M673793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;to refresh the screen we have to use below command...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs_selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;maheedhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 15:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871713#M673793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T15:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871714#M673794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the code below. Its used with REUSE_ALV_GRID_DISPLAY. But you can still customize it quite easily for your case. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lt_event_exit TYPE slis_t_event_exit,
      ls_event_exit TYPE slis_event_exit.

CONSTANTS: gc_refresh TYPE syucomm VALUE '&amp;amp;REFRESH'.

START-OF-SELECTION.
  PERFORM data_retrieval.
  PERFORM build_fieldcatalog.
  PERFORM build_sort.
  PERFORM build_layout.
  PERFORM build_refresh.
  PERFORM display_alv_report.

FORM display_alv_report.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = gd_repid
      i_callback_pf_status_set = 'BUILD_PF_STATUS'
      i_callback_user_command  = 'USER_COMMAND'
      is_layout                = gd_layout
      it_fieldcat              = fieldcatalog
      it_sort                  = gd_sort
      it_events                = gt_events
      it_event_exit            = lt_event_exit
      is_print                 = gd_prntparams
      i_save                   = 'X'
    TABLES
      t_outtab                 = i_zopen_alv
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " DISPLAY_ALV_REPORT

FORM user_command USING r_ucomm LIKE sy-ucomm
                        rs_selfield TYPE slis_selfield.

  CASE r_ucomm.                   "Condition on command executed

    WHEN gc_refresh.                      "When the REFRESH button has been clicked
      REFRESH i_zopen_alv.                "Refresh data
      PERFORM data_retrieval.             "Retrieve data
      rs_selfield-refresh    = 'X'.
      rs_selfield-col_stable = 'X' .
      rs_selfield-row_stable = 'X' .
  ENDCASE.
ENDFORM.                    "user_command

FORM build_refresh.
  CLEAR ls_event_exit.
  ls_event_exit-ucomm = gc_refresh.    " Refresh
  ls_event_exit-after = 'X'.
  APPEND ls_event_exit TO lt_event_exit.
ENDFORM.                    "build_refresh&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Megan Flores&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 16:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-alv/m-p/2871714#M673794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T16:06:15Z</dc:date>
    </item>
  </channel>
</rss>

