Skip to Content

ALV Cell Color in List Output

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 05, 2005 at 06: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

    Add comment
    10|10000 characters needed characters exceeded

    • 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