Application Development and Automation 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: 
Read only

ALV Grid display cell color based on value ( Function Module ALV )

Former Member
0 Likes
771

Hi,

I want to color the cell based on value eg ( Green = Green color, Red = Red color, Amber = Yello color ).

Each and every cell is editable after displaying on screen. once the user clicks update button the contents has to be saved to a custom table.

Can anyone help?

Advance thanks

Hi,

I want to color the cell based on value eg ( Green = Green color, Red = Red color, Amber = Yello color ).

Each and every cell is editable after displaying on screen. once the user clicks update button the contents has to be saved to a custom table.

Can anyone help?

Advance thanks

1 REPLY 1
Read only

venkat_o
Active Contributor
0 Likes
451

Hi, <li>To get color for the cell, you need to set EMPHASIZE field with below information while building fieldcatalog.


emphasize (highlight columns in color)
value set: SPACE, 'X' or 'Cxyz' (x:'1'-'9'; y,z: '0'=off '1'=on)
'X' = column is colored with the default column highlight color.
'Cxyz' = column is colored with a coded color:
C: Color (coding must begin with C)
x: color number
y: bold
z: inverse
<li> To edit the fields, you need to set EDIT = 'X' or INPUT= 'X' . Try those .

wa_fieldcata-input = 'X'.
<li>you need to set PF status , to do your remaining requirement. <li>For any help, you have to search the forum . Thanks Venkat.O