WRITE – Output as symbol (ABAP keyword)

WRITE ( – Output as symbol )is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.

WRITE – Output as symbol

Effect
You
can output certain characters as symbols using the addition … AS
SYMBOL . You should only address these characters with their
system-defined names. The include (or the more comprehensive include )
contains the relevant identifiers as constants, e.g. SYM_PHONE ,
SYM_CIRCLE .

 

Example

INCLUDE .
WRITE: / SYM_RIGHT_HAND AS SYMBOL, ” output as symbol
‘Tip, Note’,
SYM_LEFT_HAND AS SYMBOL. ” output as symbol

Note
An output length of one character is enough for most symbols, but some (e.g. SYM_FAX ) are twice as long.
You can determine the length of a symbol with DESCRIBE FIELD SYM_… OUTPUT-LENGTH …