
get_selected_cells
Use
Get selected cells in the cell selection mode. The ALV Grid Control returns the values, the column name and the row index of the relevant cell.

The ALV Grid Control returns only the indexes of cells that are selected individually. If an entire row or column is selected, the table returned remains empty.
Prerequisites
You must enable the 'cell selection' mode to allow users to select single cells (and multiple cells with the Ctrl key) (see also:
Properties of the Grid Control). To do this, pass the layout structure before first display using method set_table_for_first_display).Features
CALL METHOD
<ref.var. to CL_GUI_ALV_GRID > ->get_selected_cells IMPORTING
ET_CELL =
Parameter |
Meaning |
ET_CELL |
Table with information on one row per cell |
For an overview, see:
Methods of Class CL_GUI_ALV_GRID