728x90
> (ABAP) ALV Color 처리 <
▣ Column Color
1) Field Catalog에 Color추가
FCAT-EMPHASIZE = 'C210'
▣ Row Color
1) Internal Table에 필드추가
ROW_COLOR TYPE C LENGTH 4
2) Layout에서 Info_Fieldname 지정
GD_LAYOUT-INFO_FIELDNAME = 'ROW_COLOR'
3) Internal Table에 값입력시 Color값 입력
▣ Cell Color
1) Internal Table에 필드추가
CELL_COLOR TYPE LVC_T_SCOL
2) Layout에서 CTAB_FNAME 지정
GD_LAYOUT-CTAB_FNAME = 'CELL_COLOR'
3) Internal Table에 값입력시 Color값 입력
L_CTAB-FNAME = LS_FCAT-FIELDNAME.
L_CTAB-COLOR-COL = 5.
L_CTAB-COLOR-INT = 1.
L_CTAB-COLOR-INV = 0.
APPEND L_CTAB TO PT_DATA-CELL_COLOR.
▣ Color Table
끝.
반응형