Skip to Content
author's profile photo Former Member
Former Member

ALV Colours when making a column editable

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?!

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    Posted on Dec 08, 2004 at 12:04 PM

    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 "An" target="_blank">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".

    *--Serdar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2004 at 02:27 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2004 at 11:39 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2004 at 12:31 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2004 at 03:16 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.