Skip to Content
0
Oct 05, 2005 at 05:07 PM

ALV Cell Color in List Output

212 Views

My ALV cell color works great except when I switch to List Output. Although only about half the cells of a particular column are colored red in the ALV grid, the whole column changes to red when viewing in List Output (and when you print). Below is the relavent code:

TYPES: BEGIN OF TYPE_GRID,

VBELN TYPE VBELN_VL,

...

CELLCOLOR TYPE LVC_T_SCOL,

END OF TYPE_GRID.

...

LS_LAYOUT-CTAB_FNAME = 'CELLCOLOR'.

...

DATA: LS_CELLCOLOR TYPE LVC_S_SCOL.

...

LS_CELLCOLOR-FNAME = 'SERNR'.

LS_CELLCOLOR-COLOR-COL = '6'.

APPEND LS_CELLCOLOR TO L_GRID-CELLCOLOR.

Remember it works perfectly when viewing the ALV grid presented on the screen.

Thanks,

Mike