Skip to Content
author's profile photo Former Member
Former Member

Traffic Lights

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 08: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á

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2008 at 09:53 AM

    check this

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.