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: 

Traffic Lights

Former Member
0 Kudos

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?

3 REPLIES 3

Former Member
0 Kudos

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á

former_member188685
Active Contributor
0 Kudos

check this

Former Member
0 Kudos

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