Hi everyone,
I have a program with alv and I am using handle_double_click method. After I execute the program, screen-field takes the correct value (the one I click on alv), but when I click another value and look at debuger, the method just repeats itself a couple times and at the end, screen_field takes the previous value again, not the one I click on the second time. Does anyone have any idea of why this might be happening ?
CLASS event_class IMPLEMENTATION.
METHOD handle_double_click.
SELECT field1 field2 FROM table1
INTO CORRESPONDING FIELDS OF TABLE lt_table1.
READ TABLE lt_table1 INDEX e_row-index INTO ls_table1.
screen_field = ls_table1-field1
cl_gui_cfw=>set_new_ok_code( EXPORTING new_code = 'save_ok').
ENDMETHOD. "handle_double_click
ENDCLASS.
Thank you in advance,
Shkelqim