2008 Oct 20 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?
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?
2008 Oct 20 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á
2008 Oct 20 10:53 AM
2008 Oct 20 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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |