Hey,
bin ein absolute Niete was OO Programierung angehte. Bekomme mit m�h und not ein ALV hin.
So jetzt m�cht ich aber gerne das sich dieser Alv automatisch refresh, habe auch schon was gefunden leider funktioniert das nicht vielleicht k�nntet ihr mir helfen?
Danke
[code]CLASS: lcl_event_handler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.
ENDCLASS. "lcl_event_handler DEFINITION
DATA ti_container TYPE REF TO cl_gui_custom_container.
DATA timer TYPE REF TO cl_gui_timer.
DATA event_handler TYPE REF TO lcl_event_handler.
DATA timeout TYPE i VALUE '10'.
*DATA: GD_TEST type i. [/code]
[code]CLASS lcl_event_handler IMPLEMENTATION.
METHOD on_finished.
timer->interval = timeout.
CALL METHOD timer->run.
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'AKTU'.
*g_ref_from_timer = 'X'.
SET USER-COMMAND 'AKTU'.
okcode = 'AKTU'.
save_ok = 'AKTU'.
GET PARAMETER ID 'ZMESSAGE' FIELD gd_stoprfc.
CHECK gd_stoprfc IS INITIAL.
SET SCREEN 0.
ENDMETHOD. "on_finished
ENDCLASS. "lcl_handler IMPLEMENTATION[/code]
[code]CREATE OBJECT: ti_container EXPORTING container_name = 'CUSTOM_2'.
CREATE OBJECT: timer
EXPORTING parent = ti_container.
SET HANDLER lcl_event_handler=>on_finished FOR timer.[/code]