<?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 Refresh button in ALV grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244651#M1630507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed one ALV program on some "Z" tables which are filling  through interface.I am getting correct output after executing it but if I try to execute same report in another session after 5 min time with same selection parameters then i will get output but not those records which are updated in those "Z" tables in between that time interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how to acheive this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving to ABAP Forum &amp;lt;SAP XI Moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aashish Sinha on Sep 21, 2011 6:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 04:06:28 GMT</pubDate>
    <dc:creator>sachin_jadhav8</dc:creator>
    <dc:date>2011-09-21T04:06:28Z</dc:date>
    <item>
      <title>Refresh button in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244651#M1630507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed one ALV program on some "Z" tables which are filling  through interface.I am getting correct output after executing it but if I try to execute same report in another session after 5 min time with same selection parameters then i will get output but not those records which are updated in those "Z" tables in between that time interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how to acheive this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving to ABAP Forum &amp;lt;SAP XI Moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aashish Sinha on Sep 21, 2011 6:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 04:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244651#M1630507</guid>
      <dc:creator>sachin_jadhav8</dc:creator>
      <dc:date>2011-09-21T04:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh button in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244652#M1630508</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;   One option is to put refresh button in application tool bar. Once you click that button , fetch the data from that ztable again and display the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srikanth.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 04:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244652#M1630508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T04:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh button in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244653#M1630509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;Are you specifying the time interval in the selection screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 05:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244653#M1630509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T05:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh button in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244654#M1630510</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;Is your Z-table a fully buffered table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Danish2285 on Sep 21, 2011 11:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 05:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244654#M1630510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T05:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh button in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244655#M1630511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question is confusing, your refresh button is not working or your report itself  not displaying the newly updated data in z tables when you re-execute after a few minutes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jeevan Sagar on Sep 21, 2011 1:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 06:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244655#M1630511</guid>
      <dc:creator>sjeevan</dc:creator>
      <dc:date>2011-09-21T06:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh button in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244656#M1630512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Class Definitio,&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION .&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION .&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;*--To implement user commands&lt;/P&gt;&lt;P&gt;    handle_user_command&lt;/P&gt;&lt;P&gt;      FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;      IMPORTING e_ucomm,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Method to handle toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    handle_toolbar&lt;/P&gt;&lt;P&gt;      FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;      IMPORTING e_object e_interactive,                     "#EC *&lt;/P&gt;&lt;P&gt;ENDCLASS .                    "lcl_event_handler DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class lcl_event_receiver implementation.&lt;/P&gt;&lt;P&gt;  method handle_toolbar.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add push button to the alv tool bar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear ls_toolbar.&lt;/P&gt;&lt;P&gt;    move 'REFR' to ls_toolbar-function.&lt;/P&gt;&lt;P&gt;    move 'Refresh' to ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;    move ' ' to ls_toolbar-disabled.                     &lt;/P&gt;&lt;P&gt;    append ls_toolbar to e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;  endmethod.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Logic to handle the push button&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  METHOD handle_user_command.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  To handle user command&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM handle_user_command USING e_ucomm .&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                           " METHOD HANDLE_USER_COMMAND&lt;/P&gt;&lt;P&gt;Endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Handle Refresh Button&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FORM handle_user_command  USING    p_ucomm TYPE any.&lt;/P&gt;&lt;P&gt;  IF p_ucomm EQ 'REFR'.&lt;/P&gt;&lt;P&gt;       CALL METHOD g_alv_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "handle_user_command&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;ALV call&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call method g_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;         exporting i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;                   is_layout        = gs_layout&lt;/P&gt;&lt;P&gt;         changing  it_outtab        = gt_sflight.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    create object event_receiver.&lt;/P&gt;&lt;P&gt;    set handler event_receiver-&amp;gt;handle_user_command for grid1.&lt;/P&gt;&lt;P&gt;    set handler event_receiver-&amp;gt;handle_toolbar for grid1. &lt;/P&gt;&lt;P&gt;    call method g_alv_grid-&amp;gt;set_toolbar_interactive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 06:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-button-in-alv-grid/m-p/8244656#M1630512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T06:17:56Z</dc:date>
    </item>
  </channel>
</rss>

