cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Colours when making a column editable

IanStubbings
Active Participant
0 Kudos

Why do the colours of the entire table change when I make a column editable and how do I change them back to how they were?!

Accepted Solutions (1)

Accepted Solutions (1)

ssimsekler
Active Contributor
0 Kudos

Hi Ian

The control itself adjusts the colors if you do not set them explicitly. You can get information on making all those adjustments on the ALV Grid control from relevant sections of the tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf">"An Easy Reference for ALV Grid Control"</a>.

*--Serdar

Former Member
0 Kudos

Well you can change the colour of column and cell. I just referred to Serdar's link, and it seems possible. Thanks again for that tutorial.

Regards,

Subramanain V.

Answers (4)

Answers (4)

IanStubbings
Active Participant
0 Kudos

I have now follwed the examples from Sedar's reference correctly and things are shaping up nicely!

Now 'all' I have to do is respond to my editable field.

Thanks again.

Ian

Former Member
0 Kudos

change gt_fieldcat-emphasize.

it is a four-character-long Hexdecimal(I'm not sure) field.

LOOP AT gt_fieldcat.

CASE gt_fieldcat-fieldname.

WHEN 'VBELN'.

gt_fieldcat-emphasize = 'C40'.

ENDCASE.

MODIFY gt_fieldcat.

ENDLOOP.

-


If it helps please give points.

Message was edited by: Fuat Ulugay

IanStubbings
Active Participant
0 Kudos

Hi guys

Many thanks for the quick responses. As it happens I am already using Serdar's reference plus the Controls Technology book. I was just wondering if there was a quicker way of setting the colours back e.g. if there was an edit colour scheme and a display colour scheme that I could just turn on.

I guess not so I will do it manually. Is there a colour number for white BTW?!

Cheers

Ian

Former Member
0 Kudos

You can change the <b>colour of a row</b>, but I am not sure, you can change the <b>colour of individual columns</b>.

There is a noticeable difference between a <b>normal ALV Report</b> and an <b>Editable ALV Report</b>, in terms of colour. As far as I know, even those colours cannot be changed.

Regards,

Subramanian V.