You can output symbols or R/3 icons on a list by using the following syntax:
WRITE symbolname AS SYMBOL.
WRITE ikonenname AS ICON.
The names of symbols and icons symbolname and ikonenname are system-defined constants that are specified in the INCLUDEprograms <SYMBOL> and <ICON> (the angle brackets are part of the name). The includes also contain a short description of the symbols and icons. The easiest way to output symbols and icons is to use a statement structure (see the example in Using WRITE via a Statement Structure).
To make symbols and icons available to your program, you must import the appropriate INCLUDE program or the more comprehensive INCLUDE program <LIST> into your program. For further information about importing INCLUDEprograms, see Using Include Programs.
WRITE: / 'Phone Symbol:', sym_phone AS SYMBOL.
WRITE: / 'Alarm Icon: ', icon_alarm AS ICON.
This produces the following output:
You can replace both the above INCLUDE statements with one single INCLUDE statement: