Skip to Content
0
Jun 07, 2010 at 02:44 PM

ALV double click - CALL METHOD gr_alvgrid->get_selected_rows

964 Views

Hi everybody,

I'm not very much familiar with OO. I have an ALV grid and I need to display a second ALV when user gives double-click in a specific cell. I need to get all the record where the double-click occurs.

The point is that the first ALV is displyed at CALL SCREEN '0100'. And the double-click was coded here:

CLASS lcl_event_receiver IMPLEMENTATION.

  METHOD handle_double_click.
  CALL METHOD gr_alvgrid->get_selected_rows
    IMPORTING
      et_index_rows = t_index_rows
      et_row_no     = t_row_no.

  READ TABLE t_row_no INTO x_row_no INDEX 1.

  IF sy-subrc EQ 0.
***** Pop-up ALV
  ENDIF.
  ENDMETHOD.  

ENDCLASS.                       

When I do double-click, both method parameters become empty.

Any suggestion?

Thanks & kind regards.