Cell Variants and Cell Editors
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
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
-