on 12-07-2010 1:35 PM
Hi all,
I want to know if there is any possibility to have different icons in one column of ALV table besides using cell variant? For example, i want to display green, red lights when different values. The reason that i don't want to use cell variant is, when using "Export to Excel" funcion of ALV, the cell variant could not be displayed.
thank you and best regards,
Wenwen
Hi,
yes it is possible.
use a context attribute of type string.
bind this context attribute to the alv column.
set the value the context attribute as ' Icon/RedLed' OR 'Icon/YellowLed' or '~Icon/GreenLed'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is really no code involved. Simply use the icon names as the data that you bind to the context (like any other data). For example fill your internal table with all its data for the table, plus a column that you place the icon names in. Then bind this internal table to the context like you would normally do.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.