Below is color code for ALV. I'm using ALV OOO to generate this color.
DATA: lr_columns TYPE REF TO cl_salv_columns,
lr_column TYPE REF TO cl_salv_column_table.
lr_column TYPE REF TO cl_salv_column_table.
* Set Color
TRY.
DATA: ls_color TYPE lvc_s_colo.
lr_column ?= lr_columns->get_column( 'DMBTR' ).
ls_color-col = 4. "greyblue_int
ls_color-int = 1.
ls_color-inv = 0.
lr_column->set_color( ls_color ).
CATCH cx_salv_not_found.
TRY.
DATA: ls_color TYPE lvc_s_colo.
lr_column ?= lr_columns->get_column( 'DMBTR' ).
ls_color-col = 4. "greyblue_int
ls_color-int = 1.
ls_color-inv = 0.
lr_column->set_color( ls_color ).
CATCH cx_salv_not_found.
No comments:
Post a Comment