<?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 Screen functionality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219318#M135772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report program that has a selection screen. When the user enters his selections and clicks on execute button, the program displays results on another screen. Currently, the user has to go back to the previous screen and enter his selections again in order &lt;/P&gt;&lt;P&gt;to get the latest results (Refresh results)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/10/18/a-look-at-clguitimer-in-46c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use the auto refresh functionality mentioned in your weblog for my program? If yes, How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I would like to mention that I am in SAP BW environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2006 15:54:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-17T15:54:16Z</dc:date>
    <item>
      <title>Refresh Screen functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219318#M135772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report program that has a selection screen. When the user enters his selections and clicks on execute button, the program displays results on another screen. Currently, the user has to go back to the previous screen and enter his selections again in order &lt;/P&gt;&lt;P&gt;to get the latest results (Refresh results)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/10/18/a-look-at-clguitimer-in-46c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use the auto refresh functionality mentioned in your weblog for my program? If yes, How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I would like to mention that I am in SAP BW environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 15:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219318#M135772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T15:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Screen functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219319#M135773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing that what you have is an ALV REPORT. If you are talking about CLASSICAL report, then REFRESH will be difficult unless you go back and come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If using ALV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For AUTO REFRESH, yes you can implement the code Rich's blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even provide a REFRESH button on the toolbar, and when user hits that, get the data again update the internal table and call the REFRESH_TABLE_DISPLAY method of the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2006 16:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219319#M135773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-17T16:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Screen functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219320#M135774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see this sample program, it uses the class CL_GUI_TIMER.  Make sure to check that you system has this class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 no standard page heading.

*---------------------------------------------------------------------*
*       CLASS lcl_event_handler DEFINITION
*---------------------------------------------------------------------*
class lcl_event_handler definition.

  public section.

    class-methods: on_finished for event finished of lcl_gui_timer.

endclass.


data: gui_timer type ref to cl_gui_timer.
data: event_handler type ref to lcl_event_handler.
data: timeout type i value '2'.

parameters : p_check type c.


start-of-selection.

  create object gui_timer.

  set handler event_handler-&amp;gt;on_finished for gui_timer.

  gui_timer-&amp;gt;interval = timeout.
  call method gui_timer-&amp;gt;run.

  perform write_list.


at user-command.

  case sy-ucomm.
    when 'REFR'.
      sy-lsind = sy-lsind - 1.
      perform write_list.
  endcase.

*----------------------------------------------------
* FORM  write_list
*----------------------------------------------------
form write_list.

  write:/ sy-datum, sy-uzeit.

endform.

*---------------------------------------------------------------------*
*       CLASS lcl_event_handler IMPLEMENTATION
*---------------------------------------------------------------------*
class lcl_event_handler implementation.

  method on_finished.

* Start Timer again
    gui_timer-&amp;gt;interval = timeout.
    call method gui_timer-&amp;gt;run.

* cause PAI
    call method cl_gui_cfw=&amp;gt;set_new_ok_code
          exporting
                 new_code = 'REFR'.

  endmethod.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sample program has selection screen and when user runs it will display the date and time, every two seconds the list display is refreshed automatically.&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, 17 Apr 2006 16:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219320#M135774</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-04-17T16:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Screen functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219321#M135775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I implemented this code and the ALV report refreshes every few seconds as coded. After about 7 refreshes I get the 'Maximum internal sessions reached' error message and the refresh stops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me to explain or solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhaval&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 19:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-functionality/m-p/1219321#M135775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T19:19:03Z</dc:date>
    </item>
  </channel>
</rss>

