02-22-2018 7:27 AM
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?
02-22-2018 3: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.
02-22-2018 7:35 AM
02-22-2018 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
02-22-2018 5:06 PM
02-22-2018 6:58 PM
02-22-2018 12:47 PM
Please move your code in your initial question, not as an "answer" (i.e. it means "proposed solution" in this forum)
02-22-2018 12:53 PM
I ran your code in my system and the spool shows the icon successfully.
PS: your code contained syntax errors, here it is after correction:
REPORT.
CONSTANTS: lc_green(4) TYPE c VALUE '@08@'.
WRITE : (6) lc_green, sy-vline.
02-22-2018 3: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.
02-22-2018 5:20 PM
Thank you Raymond. Adding "as ICON" helped.
Experts,
Now another issue is error description text. It is coming in next line; only in background SPOOL. Foreground, every thing is fine.
Refer the code given above.
Screenshots are:
Foreground - fine.
Background - text comes in next line.This should be corrected.
Please check and advise.
02-22-2018 8:51 PM
Please move your reply as a comment to Raymond's answer, so that he's automatically informed. Don't use an "answer" as it means a "proposed solution" in this forum.
02-23-2018 6:30 AM
Match report width from
Hint: use of SET/GET_PRINT_PARAMETERS FM can be useful to handle print.
02-26-2018 9:08 AM
I can see this is a comment already. Please correct me if I am wrong. Thank you for your advise.
02-26-2018 9:21 AM
02-26-2018 9:27 AM
But, this has misaligned SPOOL top heading of the page. See the screen shot please.
Foreground report output is fine as earlier.
02-26-2018 3:09 PM
02-26-2018 9:06 AM
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.
02-26-2018 9:06 AM
02-26-2018 3:10 PM
Thanks. Don't hesitate to delete your "answer" too, it brings nothing to the "story" now 🙂