2005 Oct 05 6:07 PM
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
2005 Oct 05 7:16 PM
Mike,
Are you saying that while you are trying to print the entire column is turning red?
Are you seeing the same thing if you do a print preview as well?
Regards,
Ravi
2005 Oct 05 8:23 PM
Yes. The entire column is turning red when it is printed as well as when viewing in "List Output" mode (in the ALV grid, click on the "Views" button, then select "List Output".
Here's our release info:
SAP_BASIS 620
SAP_ABA 620
SAP_APPL 470