<?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: Auto refresh for two ALVs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418064#M820946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is amazingly easy but I don't have the code here - weekend, sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can start a timer with method cl_gui_timer=&amp;gt;start. Then you need a local class as an event handler for event finish (or what it is called). This event will restart the time and call cl_gui_cfw=&amp;gt;set_new_okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry some names may be misspelled, its not more than a dozen code lines. Search here for autorefresh or wait until monday - I could post it from my office.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2008 23:43:20 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2008-03-28T23:43:20Z</dc:date>
    <item>
      <title>Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418061#M820943</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 am using two ALVs on single screen for display using 'REUSE_ALV_BLOCK_LIST_APPEND' and 'REUSE_ALV_BLOCK_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want my report as an autorefresh.Please tell me how to do that.&lt;/P&gt;&lt;P&gt;Though I am able to use autorefresh using 'REUSE_ALV_GRID_DISPLAY' but I want it for two ALVs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 11:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418061#M820943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T11:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418062#M820944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use function module.&lt;/P&gt;&lt;P&gt;set_tabel_for_refresh*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 11:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418062#M820944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418063#M820945</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 don't know the answer to your question, sorry&lt;/P&gt;&lt;P&gt;Actually I'm interested by your method to autorefresh an ALV list using the function REUSE_ALV_GRID_DISPLAY (and not REUSE_ALV_LIST_DISPLAY). Could you precise how you do it please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 22:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418063#M820945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T22:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418064#M820946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is amazingly easy but I don't have the code here - weekend, sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can start a timer with method cl_gui_timer=&amp;gt;start. Then you need a local class as an event handler for event finish (or what it is called). This event will restart the time and call cl_gui_cfw=&amp;gt;set_new_okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry some names may be misspelled, its not more than a dozen code lines. Search here for autorefresh or wait until monday - I could post it from my office.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 23:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418064#M820946</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-03-28T23:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418065#M820947</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;Im also looking for auto refresh functionality in ALV. Could some one send me a sample code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 07:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418065#M820947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T07:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418066#M820948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijendra,&lt;/P&gt;&lt;P&gt;Refer to the link below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://erpgenie.com/abaptips/content/view/346/61/" target="test_blank"&gt;http://erpgenie.com/abaptips/content/view/346/61/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 08:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418066#M820948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T08:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418067#M820949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Go through the following links for auto refresh of ALV reports&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create automatic refresh report.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/rep_autorefresh.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/rep_autorefresh.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapprogramming.blogspot.com/search/label/ABAP%20ALV%20IN%20BRIEF" target="test_blank"&gt;http://abapprogramming.blogspot.com/search/label/ABAP%20ALV%20IN%20BRIEF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.alvrobot.com" target="test_blank"&gt;http://www.alvrobot.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward,if useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 08:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418067#M820949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T08:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418068#M820950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is always a simple solution for such complex things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONSTANTS:
  gc_cmd_refresh          TYPE sy-ucomm VALUE 'REFRESH'.

*======================================================================*
*= local event handling
*======================================================================*
*---------------------------------------------------------------------*
*       CLASS lcl_event_handler DEFINITION
*---------------------------------------------------------------------*
CLASS lcl_event_handler DEFINITION.

  PUBLIC SECTION.

    CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.

ENDCLASS.                    "lcl_event_handler DEFINITION
*---------------------------------------------------------------------*
*       CLASS lcl_event_handler IMPLEMENTATION
*---------------------------------------------------------------------*
CLASS lcl_event_handler IMPLEMENTATION.

  METHOD on_finished.

* Start Timer again
    gr_gui_timer-&amp;gt;interval = pa_autow.
    CALL METHOD gr_gui_timer-&amp;gt;run.

* cause PAI
    CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code
      EXPORTING
        new_code = gc_cmd_refresh.

  ENDMETHOD.                    "on_finished

ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
START-OF-SELECTION.
  PERFORM init_autorefresh.
* create and display ALV, have REFRESH defined in GUI-Status
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  init_autorefresh
*&amp;amp;---------------------------------------------------------------------*
*       Timer start or stop
*&amp;amp;---------------------------------------------------------------------*
FORM init_autorefresh .
  IF pa_autow IS NOT INITIAL.
    CREATE OBJECT gr_gui_timer.

    SET HANDLER gr_event_handler-&amp;gt;on_finished FOR gr_gui_timer.

    gr_gui_timer-&amp;gt;interval = pa_autow.
    CALL METHOD gr_gui_timer-&amp;gt;run.
  ELSEIF gr_gui_timer IS BOUND.
    gr_gui_timer-&amp;gt;cancel( ).
  ENDIF.

ENDFORM.                    " init_autorefresh
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The principle is explained in my previous posting.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 08:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418068#M820950</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-05-08T08:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418069#M820951</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;A question regarding to such functionality. Is it possible to use it for displaying a popup when user goes for example to another transaction, or will the instance of the cl_gui_timer be removed from the memory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 08:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418069#M820951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-09T08:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418070#M820952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I menage to make auto refresh using "REUSE_ALV_LIST_DISPLAY" , but not for "REUSE_ALV_GRID_DISPLAY".&lt;/P&gt;&lt;P&gt;Can anyone help me on this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;koby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 09:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418070#M820952</guid>
      <dc:creator>former_member608640</dc:creator>
      <dc:date>2011-02-22T09:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418071#M820953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens  &lt;/P&gt;&lt;P&gt;I need to form auto refresh of a report running with the function "REUSE_ALV_GRID_DISPLAY" .&lt;/P&gt;&lt;P&gt;Can you advise me on this?&lt;/P&gt;&lt;P&gt;Thank you, koby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Feb 2011 07:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418071#M820953</guid>
      <dc:creator>former_member608640</dc:creator>
      <dc:date>2011-02-27T07:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418072#M820954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kobi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post a question. Explain what you did, what you tried, where you faced a problem.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 22:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418072#M820954</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-03-03T22:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Auto refresh for two ALVs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418073#M820955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can refer to the BALVBT01 sample and read the [Auto Refresh ALV List |http://www.sap-basis-abap.com/abap/auto-refresh-alv-list.htm] . The RS_SELFIELD-REFRESH is important, you have to set 'X' into it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 01:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-refresh-for-two-alvs/m-p/3418073#M820955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-04T01:36:16Z</dc:date>
    </item>
  </channel>
</rss>

