Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Timer and ALV

Former Member
0 Likes
611

Hi all,

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:


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->interval = timeout.
    CALL METHOD timer->run.
...
    CALL METHOD cl_gui_cfw=>set_new_ok_code
      EXPORTING
        new_code = 'TIMER'.
   ENDMETHOD.
endclass.

The timer starts and runs 5 seconds. Then it terminates, calls the on_finished - event and starts again.

This works.

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.

Is there an event which is triggered, when the details- window of the ALV gets closed?

Thanks in advance

Thanks in advance.

Edited by: HProkoph on Jan 14, 2010 9:49 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507

Perhaps you could use the event after_user_command of cl_gui_alv_grid to trigger the timer again.

~Jose

1 REPLY 1
Read only

Former Member
0 Likes
508

Perhaps you could use the event after_user_command of cl_gui_alv_grid to trigger the timer again.

~Jose