Entering content frameFunction documentationget_selected_cells Locate the document in its SAP Library structure

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.

Note

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  =  
<internal table of type LVC_T_CELL > .

Parameter

Meaning

ET_CELL

Table with information on one row per cell

 

For an overview, see: Methods of Class CL_GUI_ALV_GRID

 

 

 

 

 

 

Leaving content frame