I have an ABAP list report with the CL_GUI_TIMER implemented. When the event FINISHED is triggered, I want to do a SET USER-COMMAND 'RETE' to trigger the List event At USER-COMMAND. This doesn't seem to work. Any suggestions?
Here is my code for the event FINISHED:
CLASS timer_event_receiver IMPLEMENTATION.
METHOD handle_finished.
SET USER-COMMAND 'RETE'.
Restart timer
CALL METHOD refresh_timer->cancel
EXCEPTIONS
OTHERS = 0.
CALL METHOD refresh_timer->run
EXCEPTIONS
OTHERS = 0.
ENDMETHOD.
ENDCLASS.
Hallo Kenneth,
I played a little bit with your example. It only worked after I replaced
<i>SET USER-COMMAND 'RETE'.</i>
by
<i> CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING new_code = 'RETE'.</i>
Regards,
Oliver
Add a comment