Displaying Symbols and Icons on the List 

You can output symbols or R/3 icons on a list by using the following syntax:

Syntax

WRITE <symbol-name> AS SYMBOL.

WRITE <icon-name> AS ICON.

The names of symbols and icons (<symbol-name> and <icon-name>) are system-defined constants that are specified in the include programs <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 or the more comprehensive include <LIST> in your program. For further information about importing include programs, see Using Include Programs.

INCLUDE <symbol>.

INCLUDE <icon>.

/ 'Phone Symbol:', SYM_PHONE AS SYMBOL.

SKIP.

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:

INCLUDE <list>.