10-20-2008 9:48 AM
Hi All,
I have 3 fields in my table control.I have defined my own internal table?my 3rd field is Traffic Lights symbol.In the table control in the screen for a record at a time only one light is enabled based on some value?
How shud i declare my internal table for traffic lights?
How can i acheive the above functionality?
10-20-2008 9:54 AM
Hi!
First you'll need an include:
INCLUDE .
DATA: myfield(4) TYPE c.
Then you have to use one of the following statements:
WRITE ICON_GREEN_LIGHT TO myfield AS ICON.
WRITE ICON_YELLOW_LIGHT TO myfield AS ICON.
WRITE ICON_RED_LIGHT TO myfield AS ICON.
Regards
Tamá
10-20-2008 10:53 AM
10-20-2008 7:33 PM
Hi Madan,
Check this
Write:/ '@0A@' AS ICON, " RED LIGHT
'@08@' AS ICON, " GREEN LIGHT
'@09@' AS ICON. "YELLOW LIGHT
Interpret the same in your code accordingly to get the traffic lights.
Cheers!!
Balu