Hello,
1) As for getting mouse single click check this:
CLASS lcl_event DEFINITION.
PUBLIC SECTION.
METHODS: handle_button_click FOR EVENT button_click
OF cl_gui_alv_grid IMPORTING es_col_id es_row_no.
ENDCLASS.
CLASS lcl_event IMPLEMENTATION.
METHOD handle_button_click.
* PLACE YOUR CODE HERE
ENDMETHOD.
ENDCLASS
Then, you should do this:
CREATE OBJECT oref_handlers.
SET HANDLER oref_handlers->handle_button_click FOR GCL_GRID.
CALL METHOD gcl_grid->set_table_for_first_display
EXPORTING
.
.
2) If the loop at selected rows internal table returns an error, check the type of internal table. Are you doiing a loop into a working area?
Hope this helps you.
Regards.