Skip to Content
0
Former Member
Sep 29, 2005 at 08:09 AM

color in alv

45 Views

hi to all,

i have intensified color on/off and some other options in ALV grid report...

so how can i define char....

and tell me somemore details working with colors in ALV.

loop at it_vbak into wa_vbak.

*Populate color variable with colour properties

*Char 1 = C (This is a color property)

*Char 2 = 3 (Color codes: 1 - 7)

*Char 3 = Intensified on/off ( 1 or 0 )

*Char 4 = Inverse display on/off ( 1 or 0 )

  • i.e. wa_vbak-line_color = 'C410'

ld_color = ld_color + 1.

  • Only 7 colours so need to reset color value

if ld_color = 6.

ld_color = 1.

endif.

concatenate 'C' ld_color '10' into wa_vbak-line_color.

  • wa_ekko-line_color = 'C410'.

modify it_vbak from wa_vbak.

RAJU.