Code: Alles auswählen.
IF l_index1 > 100 AND l_index1 <= 200.
* do nothing for row style and cell style
* set cell style:
ls_celltab-fieldname = 'CARRID'.
*-- Hier Änderung des Demoprogramms - Start
* ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
ls_celltab-style = cl_gui_alv_grid=>mc_style_enabled.
DATA: color TYPE i.
color = l_index1 MOD 20.
ls_celltab-style = ls_celltab-style + color.
*-- Hier Änderung des Demoprogramms - Ende
INSERT ls_celltab INTO TABLE pt_celltab.
ls_celltab-fieldname = 'CONNID'.
ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
INSERT ls_celltab INTO TABLE pt_celltab.