!--a11y-->
set_selected_rows 
Select rows in the grid control using the table index.

The numbering of grid control rows starts with 1.
CALL METHOD<ref.var. to CL_GUI_ALV_GRID>->set_selected_rows
EXPORTING
IT_ROW_NO = <internal table of
type LVC_T_ROID>
* or
alternatively
* IT_INDEX_ROWS = <internal table of
type LVC_T_ROW>
IS_KEEP_OTHER_SELECTIONS = <type CHAR01>.
Parameter |
Meaning |
IT_ROW_NO |
Table with the index of the rows to be selected. The
row type of the table is LVC_S_ROID; |
IT_INDEX_ROWS |
Alternative to IT_ROW_NO Table with the index of the rows to be selected. |
IS_KEEP_OTHER_SELECTIONS |
Determines if existing selections of rows, columns and cells should remain (value ‘X’) or if they are to be replaced by the new selection (value ‘ ‘). |
For an overview, see: Methods of Class CL_GUI_ALV_GRID