ALV Multi Coloring

Hi All,
I have a simple requirement. My requirement is I would Like to Color a ALV grid Cell.
But, I want to color the cell in two ways.
1. Background Color of the particular Cell must be one color (Lets Say Yellow)
2. Text Color of the Particular Cell must be one color (Lets Say Red).
I have gone through many options like coloring a particular cell either background or Text.
But not both with different colors.
Please suggest that any one has done this in SAP.
Thanks in Advance.
Venkat

Hi,
    Use this code to Background Color of the particular Cell .Try with the below Code definitely it works.
Example Code :
Data:gd_layout    type  slis_layout_alv.
gd_LAYOUT-coltab_fieldname = 'CELLCOLOR'.
DATA: WA_CELLCOLOR TYPE LVC_S_SCOL.
  DATA: ld_index TYPE SY-TABIX.
  LOOP AT IT_EKKO into wa_ekko.
    LD_INDEX = SY-TABIX.
  Set colour of EBELN field to various colors based on sy-tabix value
    WA_CELLCOLOR-FNAME = 'EBELN'.
    WA_CELLCOLOR-COLOR-COL = sy-tabix.  "color code 1-7, if outside rage defaults to 7
    WA_CELLCOLOR-COLOR-INT = '1'.  "1 = Intensified on, 0 = Intensified off
    WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour
    APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
    MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
  Set colour of NETPR field to color 4 if gt 0
    if wa_ekko-netpr gt 0.
      WA_CELLCOLOR-FNAME = 'NETPR'.
      WA_CELLCOLOR-COLOR-COL = 4.  "color code 1-7, if outside rage defaults to 7
      WA_CELLCOLOR-COLOR-INT = '0'.  "1 = Intensified on, 0 = Intensified off
      WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour
      APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
      MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
    endif.
  Set colour of AEDAT field text to red(6)
    WA_CELLCOLOR-FNAME = 'AEDAT'.
    WA_CELLCOLOR-COLOR-COL = 6.  "color code 1-7, if outside rage defaults to 7
    WA_CELLCOLOR-COLOR-INT = '0'.  "1 = Intensified on, 0 = Intensified off
    WA_CELLCOLOR-COLOR-INV = '1'.  "1 = text colour, 0 = background colour
    APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
    MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
  ENDLOOP.

Similar Messages

  • I have an Apple MacBook Pro and when surfing the web my computer will slow to a crawl and I will have a multi-colored spinning wheel visible until my latest request is handled.  What is causing this and is there a way to prevent this from occuring

    I have a MacBook Pro.  When surfing the web it will eventually slow to a crawl.  When this occurs, there will be a small multi-colored wheel spinning until my latest command is handled.  What is causing this and is there a way that I can modify or prevent this from happening?  Is there a setting that will prevent this?

    When you next have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Welcome to Apple Support Communities
    Don't download MacKeeper. Users complain about this app and it damages OS X. Also, Mac OS X knows how to take care of itself, so you don't need any other cleaning application that may damage OS X. See > https://discussions.apple.com/docs/DOC-3691

  • Multi color gradient for touch and selected color of spark mobile list

    multi color gradient for touch and selected color of spark mobile list
    how to get dat?

    or how about a bitmap as the background for the touch and selected color for the items in a list.

  • HoW to ChaNGE the text in the mobile application to be in MulTi-CoLoR text

    _*  Do anyone can tell me how to change the text in the mobile application to be in multi-color text, to make it more interesting and increase readability?
    Is it using the Graphic's paint() method? or any better suggestion?
    Please give the short example if can?
    Please help... "_"
    Hearing from u all soon...@_@
    thanks....

    Go into outline view. If you can see the outlines of the letterforms, you can't just change the text. If the letterforms are solid black, take the type tool, select the text and type yours.
    Anyway you can just select the letters, take the type tool and type new text.
    Working with the type tool is a basic. Please see the manual for details

  • Have a MacBook Pro. the computer will not boot up, the screen has black and white stripes and multi color bands as well.

    Have a MacBookPro. The computer will not boot up. the screen has black and white bands with multi color bands as well.

    Yeah it's dead. Take it to an Apple Genius Bar and have it checked out. Then buy a new one.

  • SQL Server Reporting Services Multi Color selection

    Hi to All.
    iam trying to use this swicth condition in SSRS for multi color view. But its not getting can u suggest me 
    =switch(Fields!AVGSALES.Value<2000 ,"red",Fields!AVGSALES.Value<5000, "blue", Fields!AVGSALES.Value>5000,"yellow"

    Hi pullela venu,
    Based on your description, your switch condition in SSRS don’t work ,right?
    I have tested on my local environment and it works fine, so your problem may due to the conditions of different colors, for example, you haven’t include the value of 2000 and 5000,If the AVGSALES value is 2000 or 5000, this expression will not work, and
    you can also check you have put the expression in the right place, Please check details below one by one to make sure you have done the right:
    1.  Did you want to specify three different colors for three different ranges of values like below?
    Fields!AVGSALES.Value<2000(red)
    Fields!AVGSALES.Value=<2000 and Fields!AVGSALES.Value<5000(blue)
    Fields!AVGSALES.Value>=5000(yellow)
    If the above ranges of value is correct you can modify the switch function in the expression as below:
    =switch(Fields!AVGSALES.Value=<2000 ,"red", Fields!AVGSALES.Value>2000 and Fields!AVGSALES.Value<5000,"blue",Fields!AVGSALES.Value>=5000,"yellow")
    2.  Select the textbox of “AVGSALES” in the properties window and select the expression of color to add the switch function above.
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • HT201263 After updating to the ios6 my ipod was going on and off displaying the apple icon and then had a white screen that had multi colors on it. Then it had a blue screen.plz help me

    I was updating my iPod touch 4g to the ios6 and it told me to hook it up to the iTunes and so I did. After doing that the computer told me to restore I tried and it didn't work. My ipod then was Turing on and off displaying the apple icon then my screen turned white with rainbow colors going down the screen then at some point my ipod had a multi colored blue screen. The screen was no longer blue after I let it die. Plz help I can't find any solutions.

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Creating multi-colored brushes in PSE 8

    OK, I am having a really hard time finding information on this...maybe because it can't be done, who knows.  Maybe you all do, I hope!  I am very interested in using Photoshop brushes.  I have PSE 8 and I have a general understanding of brushes...I know how to upload, change color, transparency, etc.  What I don't know is how do I make a butterfly look like a multi-colored butterfly instead of a pink butterfly or a gray butterfly?  I am assuming I need to make several layers, but beyond that I'm lost.  I just can't seem to make it look right when I try to color in with different colors.  I hope all this makes sense and someone can help.
    Thanks in advance!

    She states it's also for PSE 7, but I would think that would be very similar to PSE 8, but I can't seem to make it work as I don't have the same set up she's describing.  If someone maybe could see what she's trying to explain and maybe figure out how to take her instructions and apply them to PSE 8.  Usually, I can follow instructions that aren't from PSE 8 anyway, but this one I am having trouble with.
    http://www.obsidiandawn.com/using-multiple-colors-with-photoshop-brushes-tutoria l
    Thank you to everyone!
    That particular dialog is in Photoshop not Photoshop Elements so she must have mean't PS7 not PSE7. All she's doing is adding a color overlay layer style so you can replicate that by adding your solid color onto a layer over it (fill layer with color or use a solid fill adjustment layer) and using the butterfly as the base of a clipping mask (clipping group...same thing different name).
    Clipping mask tut:
    http://www.photokaboom.com/photography/learn/Photoshop_Elements/layers/layer_groups_clippi ng_masks/1_layer_groups_clipping_masks.htm
    This will give you a solid colored butterfly. Change the solid color blend mode to color just as she does with the layer style. (Softlight blend mode might also do the trick for you.)
    Another option that I think might produce better results would be to clip a gradient map adjustment layer to the butterfly...butterfly again base to the clipping mask...instead of a solid color. Gradient maps color according to the brightness value.
    You can pop in a blank layer between the butterfly and the gradient map and use paint (white or black at low opacity...color is unpredictable) to to push the color to the desired result. (Black will map to one side of the gradient and white to the other with shades of gray mapping between these brightness endpoints.)
    Tutorial on editing gradients:
    http://www.photokaboom.com/photography/learn/Photoshop_Elements/gradients/4_gradients_edit _a_gradient.htm

  • Screen is all multi colored, how to correct?

    Screen is multi colored, tried the restore and reboot.  did not correct.
    Anyone have the answer?

    Do you have something set up in Settings>General>Accessibility? "Multi colored" is hard to envision without a little more detail. How is it multi colored?

  • How can I get Multi-color text it a swing componet?

    How can I get Multi-color text it a swing componet?
    I've tryed JTextPane and JEditorPane.
    If they support having text in more then one color then I don't see how.
    I want to make a color-coded Java editor in Java, but I can't color-code if I can only have one color.
    JComponent.setForeground(Color fg)
    is not what I need.
    maybe Java doesn't support it yet.
    but I hope it does.
    Please help, thanks.

    Hi,
    I've made you a little example with a coloured JEditorPane and JTextPane:
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ColorDemo extends JFrame {
         public ColorDemo() {
              super("ColorDemo");
              // coloured JEditorPane
              JEditorPane editorPane = new JEditorPane("text/html",
                   "<FONT color=red> This </FONT>"+
                   "<FONT color=blue> is </FONT>"+
                   "<FONT color=green> a </FONT>"+
                   "<B> JEditorPane </B>");
              editorPane.setPreferredSize(new Dimension(250, 150));
              // coloured JTextPane
              JTextPane textPane = new JTextPane();
              textPane.setPreferredSize(new Dimension(250, 150));
              Document doc = textPane.getDocument();
              Style def = StyleContext.getDefaultStyleContext().
                   getStyle(StyleContext.DEFAULT_STYLE);
              try {
                   StyleConstants.setForeground(def, Color.blue);
                   doc.insertString (0, "This ", def);
                   StyleConstants.setForeground(def, Color.red);
                   doc.insertString (5, "is ", def);
                   StyleConstants.setForeground(def, Color.green);
                   doc.insertString (8, "a ", def);
                   StyleConstants.setBold(def, true);
                   StyleConstants.setForeground(def, Color.black);
                   doc.insertString (10, "JTextPane", def);
              } catch (Exception e) {}
              JPanel contentPane = new JPanel();
              contentPane.add(textPane);
              contentPane.add(editorPane);
              setContentPane(contentPane);
         public static void main(String[] args) {
              JFrame frame = new ColorDemo();
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              frame.pack();
              frame.setVisible(true);
    }Hope this helps,
    Kurt.

  • ALV without colors

    Hi All,
    Is it possible to display ALV without colors ?
    If yes pls help me....
    Dilip

    Hi Dilip,
    Try this code,
    REPORT ZTEST.
    TYPE-POOLS : SLIS.
    DATA: BEGIN OF IT_VBAK OCCURS 0,
            VBELN LIKE VBAK-VBELN,
            ERDAT LIKE VBAK-ERDAT,
          END OF IT_VBAK.
    DATA : FLD_CAT TYPE SLIS_T_FIELDCAT_ALV,
    FLD TYPE SLIS_FIELDCAT_ALV .
    DATA:V_REPID LIKE SY-REPID.
    START-OF-SELECTION.
      V_REPID = SY-REPID.
      SELECT VBELN ERDAT FROM VBAK INTO TABLE IT_VBAK.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
         I_PROGRAM_NAME               = V_REPID
         I_INTERNAL_TABNAME           = 'IT_VBAK'
        I_STRUCTURE_NAME             =
         I_INCLNAME                   = V_REPID
        CHANGING
          CT_FIELDCAT                  = FLD_CAT
       EXCEPTIONS
         INCONSISTENT_INTERFACE       = 1
         PROGRAM_ERROR                = 2
         OTHERS                       = 3            .
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT FLD_CAT INTO FLD.
        CASE FLD-FIELDNAME.
          WHEN 'VBELN'.
            FLD-KEY = ' '.
            MODIFY FLD_CAT FROM FLD.
        ENDCASE.
      ENDLOOP.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
         I_CALLBACK_PROGRAM             = V_REPID
         IT_FIELDCAT                    = FLD_CAT
        TABLES
          T_OUTTAB                       = IT_VBAK
       EXCEPTIONS
         PROGRAM_ERROR                  = 1
         OTHERS                         = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks
    Lakshman

  • I am typing 3 page of Word Document.  It has locked up and has this round multi colored circle going around when mouse is on the document....help!!!  Why is it doing this

    I am typing 3rd page of Word Document.  It has locked up and a round multi colored ring turning when the mouse is on the document.  It will not allow me to save it or move forward?   Help!!!

    Hopefully Word's auto-save feature will have saved most of your work.
    If Word will not allow you to do anything, you have to force-quit the evil thing:  > Force Quit...

  • Why to i keep getting a multi-colored circle in place of the cursor right before the browser shuts down on me??

    why do i keep getting a multi-colored circle in place of the cursor right before the browser shuts down on me??

    Open Control Panel -> Check in Mouse Properties -> Remove Checkmark from "Display Pointer Trails"
    Check and tell if its working.

  • Now have strange lines in multi color on a square on desk top, and above Safari and other doc icons.  What to do?

    Now have strange multi color lines on a 2 inch square on desk top.  Also above some of Doc apps. Why?
    and how to get rid of them?

    A Safe Mode boot help ...
    Startup your Mac in Safe Mode
    A Safe Mode boot takes much longer than a normal boot so be patient.
    Once you are in Safe Mode, click Restart from the Apple () menu.
    Then see if the lines / square is gone.

Maybe you are looking for

  • In BI7 Linking fields of two cubes of a multiprovider in BEx

    There are two cubes in a multiprovider, only one field of these two cubes (SORTL in first cube and ACCOUNT ID in other cube )contain same values based on these two fields. Q: how we can combine link these two cubes in BEx Reporting side so that the C

  • How to I share Itune library, and movies with a different user on the same computer?

    How do I share Itunes and movies with a different user on the same computer?

  • Help ,please - moving from 8.6 to 10.2 ..???

    Hi my name is PATRICIA, and I really need some help to know if I can move from 8.6 to 10.2 or to 10.4. My computer it's a G3 with 350 mhz and I have a internal HD with 38.16 GB and my total ram memory it's 128 mb - 02 card/memory of 64 mb each. What

  • File Import Failure mp4 and mov

    Error message: Unsupported format or damaged file I've never had this error before. And thid did never happen before. Files that worked fine a week ago are now blocked with a error message. What's wrong?

  • False Error Message

    With so many still experiencing frustrating upload problems (I had them too, for weeks, after the launch of MobileMe) it hardly seems worth mentioning this, other than that it's a bit of a curiosity, to me anyway. On several recent occasions after up