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: 

Change font color of ALV grid

Former Member
0 Kudos

Dear All ,

I want to know whether its possible to change color of certain columns of ALV and at the same time change the font color of text of ALV.

Like there are 10 columns , then I need to change color of 3 colomn and color of all negative value in ALV to red , not cell color but font color

I am using REUSE_ALV_GRID_DISPLAY .

I searched in SDN but dint got the right answer .

as per the thread I got we need to include variable of type lvc_t_scol for column color and SLIS_T_SPECIALCOL_ALV for font color .

but at layout level I can only assign either of them to coltab_fieldname field

Please help

5 REPLIES 5

Former Member
0 Kudos

hi,

look at this.

<link to blocked site removed by moderator>

Edited by: Thomas Zloch on Oct 21, 2011 1:55 PM

Former Member
0 Kudos

hi,

for font color in a cell follow this link,may help u

Former Member
0 Kudos

Hi,

Use Emphasize in alv fieldcatlog...of specfic field ..

http://help.sap.com/saphelp_erp2004/helpdata/en/17/102896f24311d2b487006094192fe3/content.htm

Regards

Rajashiva

Former Member
0 Kudos

Dear all ,

My requirement is to color column as wel as font at the same time .

0 Kudos

Hi Akash,

SAP follows a slightly different concept. There is no font color and background color, but you can set 3 attributes

x: color number

y: intensified display on/off

y: inverse display on/off

For more information on color coding, see the F1 help on the FORMAT statement.

Here you can display a list showing you all available combinations. You can choose from that, nothing else.

This applies to list and control (ALV) display.

Regards,

Clemens