Show TOC Entering content frame

Function documentation set_selected_rows Locate the document in its SAP Library structure

Use

Select rows in the grid control using the table index.

Note

The numbering of grid control rows starts with 1.

Features

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;
field to be filled:
ROW_ID (see set_selected_columns).

IT_INDEX_ROWS

Alternative to IT_ROW_NO

Table with the index of the rows to be selected.
The row type of the table is
LVC_S_ROW;
field to be filled:
INDEX.

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

Leaving content frame