You can specify the color of various areas of the ALV output. The following options are available:
● ALV output:
You can choose between two variants:
○ Standard Color Assignment
All rows and columns have the same color.
○ Alternating
The rows of the ALV output alternate between light and dark
○ Transparent
The background is transparent. The individual cells are displayed without gridlines.
You only have these options if write-protection is switched on (see Write-Protection and Activation).
● Column
You can change the background color of a column. You can use pre-configured semantic colors for this (see TableColumn Properties).
You only have these options if write-protection is switched on (see Write-Protection and Activation).
● Cell variant
You can specify a background color for a cell variant. You can use pre-configured semantic colors for this (see TableColumn Properties).
You only have these options if write-protection is switched on (see Write-Protection and Activation).
● Cell
The only UI element whose color you can change is the cell editor TEXT_VIEW. You can choose the combination of background and text color that you want to use (see TextView Properties, under SemanticColor).
You also have this option in the editable ALV.
Methods for Changing the Colors
Area | Class | Method |
ALV output | IF_SALV_WD_ | SET_DESIGN GET_DESIGN |
Column | CL_SALV_WD_ | SET_CELL_DESIGN GET_CELL_DESIGN |
Cell variant | CL_SALV_WD_ | SET_CELL_DESIGN or GET_CELL_DESIGN or |
Cell | CL_SALV_WD_ | SET_SEMANTIC_COLOR or GET_SEMANTIC_COLOR or |
No comments:
Post a Comment