Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Cell Color in List Output

former_member182295
Participant
0 Kudos
336

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

2 REPLIES 2

Former Member
0 Kudos
60

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

0 Kudos
60

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