To select a particular line in ALV (class method) this piece of code will help. The code was written in R/3 4....
lt_cell_s-index = 8. append lt_cell_s to lt_rows . CALL METHOD grid2->SET_SELECTED_ROWS exporting IT_INDEX_ROWS = lt_rows. FYI: grid2 TYPE REF TO cl_gui_alv_grid.