<?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 Timer and ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/timer-and-alv/m-p/6480980#M1418916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am working on an application with a tree control on the left side and an ALV Grid on the top. Now I implemented a timer functionality using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS lcl_application DEFINITION.

  PUBLIC SECTION.
    CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.
ENDCLASS. 

CLASS lcl_application IMPLEMENTATION.
  METHOD on_finished.
    timer-&amp;gt;interval = timeout.
    CALL METHOD timer-&amp;gt;run.
...
    CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code
      EXPORTING
        new_code = 'TIMER'.
   ENDMETHOD.
endclass.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The timer starts and runs 5 seconds. Then it terminates, calls the on_finished - event and starts again.&lt;/P&gt;&lt;P&gt;This works.&lt;/P&gt;&lt;P&gt;My only problem is now, when I am clicking on the ALV Grid at top of the screen, looking at some details and return with "Enter" into my program, the timer doesnt start again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an event which is triggered, when the details- window of the ALV gets closed?&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;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: HProkoph on Jan 14, 2010 9:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2010 08:13:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-14T08:13:43Z</dc:date>
    <item>
      <title>Timer and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timer-and-alv/m-p/6480980#M1418916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am working on an application with a tree control on the left side and an ALV Grid on the top. Now I implemented a timer functionality using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS lcl_application DEFINITION.

  PUBLIC SECTION.
    CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.
ENDCLASS. 

CLASS lcl_application IMPLEMENTATION.
  METHOD on_finished.
    timer-&amp;gt;interval = timeout.
    CALL METHOD timer-&amp;gt;run.
...
    CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code
      EXPORTING
        new_code = 'TIMER'.
   ENDMETHOD.
endclass.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The timer starts and runs 5 seconds. Then it terminates, calls the on_finished - event and starts again.&lt;/P&gt;&lt;P&gt;This works.&lt;/P&gt;&lt;P&gt;My only problem is now, when I am clicking on the ALV Grid at top of the screen, looking at some details and return with "Enter" into my program, the timer doesnt start again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an event which is triggered, when the details- window of the ALV gets closed?&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;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: HProkoph on Jan 14, 2010 9:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 08:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timer-and-alv/m-p/6480980#M1418916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-14T08:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timer and ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timer-and-alv/m-p/6480981#M1418917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you could use the event &lt;STRONG&gt;after_user_command&lt;/STRONG&gt; of &lt;STRONG&gt;cl_gui_alv_grid&lt;/STRONG&gt; to trigger the timer again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 12:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timer-and-alv/m-p/6480981#M1418917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T12:40:53Z</dc:date>
    </item>
  </channel>
</rss>

