‎2008 Nov 18 5:25 AM
Dear All,
I am using the method handle_double_click to navigate to a new ALV list when the user double clicks a certain row.
My issue is, when I double click one row, the details are output in a separate list, its fine. When I press the back button and double click a different row, the result displayed in the second list is always the previous one, its not changing with selection of a different row.
Please tell me how to get around this issue.
Regards,
Prosenjit.
‎2008 Nov 18 5:32 AM
Hi,
Please check your code with below sample.
CLASS event_class DEFINITION.
*Handling double click
PUBLIC SECTION. METHODS:
handle_double_click
FOR EVENT double_click OF cl_gui_alv_grid IMPORTING e_row .
ENDCLASS. "lcl_event_receiver DEFINITION
CLASS event_class IMPLEMENTATION.
METHOD handle_double_click.
DATA : ls_wa LIKE LINE OF it_tab.
*Reading the selected data into a variable
READ TABLE it_tab INDEX e_row-index INTO ls_wa.
*show your list
ENDMETHOD. "handle_double_click
ENDCLASS. "lcl_event_receiver IMPLEMENTATIONRegards,
Anversha
Edited by: Anversha s on Nov 18, 2008 11:03 AM
‎2008 Nov 18 6:40 AM
The issue was, when we are displaying for the first time in the secondary ALV list, the instance of the class cl_gui_alv_grid is initial.
However when we go back and select a different row, the secondary ALV list's cl_gui_alv_grid instance is not initial anymore, so in the ELSE part we have to call second_instance->refresh_table_display.