Skip to Content
avatar image
-1
Former Member

traffic lights not coming in SPOOL log

Hi experts,

I have created a report which is displaying traffic lights on report output. This is not ALV, simple WRITE statement is used. This is working fine.

Now, when this report is executed in background, the SPOOL is created, but the traffic lights are not displayed. It comes as '@0A@' for red and '@08@' for green.

Can someone please help?

Add comment
10|10000 characters needed characters exceeded

  • where is the code?

  • Former Member

    My current code is:

    CONSTANTS: lc_green(4) TYPE c VALUE '@08@',

    lc_red(4) TYPE c VALUE '@0A@'.

    LOOP AT gt_log INTO gw_log.

    CASE gw_log-msgtyp.

    WHEN 'S'. WRITE : (6) lc_green, sy-vline.

    WHEN 'E'. WRITE : (6) lc_red, sy-vline.

    WHEN 'W'. WRITE : (6) lc_green, sy-vline.

    ENDCASE.

    WRITE : gw_log-msgdesc+0(100), sy-uline .

    ENDLOOP.

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 22 at 03:01 PM

    In your code (old fashionned one) don't define icon use this alternative:

    INCLUDE <icon>.
    WRITE: / icon_okay AS ICON.
    

    leave a space between icon and previous text, else icon will be converted to text.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 22 at 10:44 AM

    Hi Megha,

    Spool dont understand two ICONS together so use sentences for separate the columns and play with this:

    SY-COLNO and ULINE

    Regards

    Add comment
    10|10000 characters needed characters exceeded