Skip to Content

REUSE_ALV_GRID_DISPLAY_LVC text colors and background cell color

Hi all,

Is there any way that, when changing the text color in an ALV GRID (lvc), it does not change the background cell color?

When using:

wa_cellcolor-fname = 'COL_NAME'.
wa_cellcolor-color-col = '6'.
wa_cellcolor-color-int = '0'.
wa_cellcolor-color-inv = '1'.  

The cell changes to the appropiate color but the background cell color changes to white (I'm using a "zebra" layout for the grid output).

Thanks in advance,

Luis

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 19, 2017 at 07:26 PM

    I guess the ALV grid control has only the classic colors available for SAP GUI for Windows, i.e. you may colorize the text with only one background color. Background colors are only available with the black text. The only colors are those shown in program BCALV_TEST_COLORS.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 20, 2017 at 07:12 AM

    The ALV color is shown in the image below for you reference!

    alv-color.jpg

    Add comment
    10|10000 characters needed characters exceeded

    • James,

      Thanks for your post.

      I already had somewhere a program that recreates this table. My problem is that the background color always overrides the ALV Zebra layout color. That is, there is no (apparently) way to change only the text color (sort of using a transparent background).

      Thanks again,

      Luis