Show TOC

Cell Variants and Cell EditorsLocate this document in the navigation structure

Use

If you create an ALV display, suitable cell editors are created autoamtically for the individual columns, usually TextView. Using cell variants ( CL_SALV_WD_CV_STANDARD) you can replace this cell editor by another line-by-line.

This can, for example, be necessary if you want to make the ALV display input-ready or if you want to use interactive UI elements such as links or buttons.

You can also use a cell variant ( CL_SALV_WD_MULTI_CELL_EDITOR) which allows you to represent multiple cell editors in a cell at the same time. For example, this is necessary if youwant to group all interactive elements in the first column.

For more information: Defining Multiple Cell Editors for a Cell

Caution

Columns of the ALV display that contain the cell variants were excluded from the export to Excel and printing if the variant selection takes place at cell level.

For more information: SAP Note 1399946 Information published on SAP site

Example

Examples for using the cell variants are:

  • If you want to make the ALV display editable: Changing the Cell Editor

  • In the system, read the examples for the class documentation for CL_SALV_WD_CV_STANDARD under the method SET_CELL_EDITOR:

    • Setting Cell Variant for the Entire Column

    • Setting Cell Variants for Individual Cells