Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Color codes in ALV

Former Member
0 Kudos

Hi,

I have to use color code in ALV report.

Can anybody give me the codes?

Thanks

SB.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

ls_tabcolor-color-col = 1. " Blue.

ls_tabcolor-color-int = 0.

ls_tabcolor-color-inv = 0.

ls_tabcolor-color-inv = 3. " Yellow.

ls_tabcolor-color-int = 0.

ls_tabcolor-color-inv = 0.

ls_tabcolor-color-col = 5. " Green.

ls_tabcolor-color-int = 0.

ls_tabcolor-color-inv = 0.

ls_tabcolor-color-col = 6. " Red.

ls_tabcolor-color-int = 0.

ls_tabcolor-color-inv = 0.

9 REPLIES 9

Former Member
0 Kudos

codes are from 0 to 14 in SAP that you can use in ALV.

Former Member
0 Kudos

SEARCH ALV COLOR

I355602
Advisor
Advisor
0 Kudos

Hi,

Color codes are;

x Color Intended for

1 gray-blue headers

2 light gray list bodies

3 yellow totals

4 blue-green key columns

5 green positive threshold value

6 red negative threshold value

7 orange Control levels

Hope this helps you.

Regards,

Tarun

former_member242255
Active Contributor
0 Kudos

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/coloring%252ba%252brow%252band%252bc

in this link you have the color codes at the end and also the help for coding also...

former_member181995
Active Contributor
0 Kudos

http://www.google.co.in/search?hl=en&q=ColorcodesinALV++&btnG=Search&meta=

GauthamV
Active Contributor
0 Kudos

Check this program.

SHOWCOLO.

Former Member
0 Kudos

ls_tabcolor-color-col = 1. " Blue.

ls_tabcolor-color-int = 0.

ls_tabcolor-color-inv = 0.

ls_tabcolor-color-inv = 3. " Yellow.

ls_tabcolor-color-int = 0.

ls_tabcolor-color-inv = 0.

ls_tabcolor-color-col = 5. " Green.

ls_tabcolor-color-int = 0.

ls_tabcolor-color-inv = 0.

ls_tabcolor-color-col = 6. " Red.

ls_tabcolor-color-int = 0.

ls_tabcolor-color-inv = 0.

MarcinPciak
Active Contributor

Hi,

Run program SHOWCOLO . You will get all possible colors combination together with intensified and inversed.

Regards

Marcin

0 Kudos

Thank you.