Select rows in ALV grid with CL_GUI_ALV_GRIDRow Selection in ALV OOPS
With the classic function REUSE_ALV_GRID_DISPLAY i used the layout parameter box_fieldname:
layout-box_fieldname = ‘CBOX’.
ls_layout-sel_mode = ‘D’. “Needs to be passed
data: lt_index TYPE lvc_t_row. “Index of Row Selected
“Row Selected by the user
CALL METHOD go_grid->get_selected_rows
IMPORTING
et_index_rows = lt_index.