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

Showing a status icon column on a table control

Can anybody give me an example of how to implement a column with status icons on a table control? is there perhaps a sample program in the sap system???

Thanks

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2004 at 11:27 AM

    Hallo Tobis,

    It is not really difficult.

    At first insert on top of Your Report following code:

    include: <icon>.

    There You wil find all icons predefined.

    When You want to fill a LED-ICON into Your internal table, which should be shown in the Table-Cntrl, You have to crete a field similar like this:

    Important is the length: CHAR(04)!

    STATS ZSTATS CHAR 4 0 Statusanzeige LED

    Now You can react and fill it with - for example -

    gf_itab-stats = icon_led_yellow.

    If You want to write a LED using the WRITE-Stement You can do it in following way

    write:/ icon_led_yellow as icon.

    Hope i could help You

    BR

    Michael

    Add comment
    10|10000 characters needed characters exceeded