ABAP Keyword Documentation → ABAP - Reference → Predefined Types, Data Objects, Functions, and Constructors → Predefined Data Objects
The Constant space
The program-global constant space
has the data type c
, length 1, and contains a blank character.
Other versions: 7.31 | 7.40 | 7.54
Note
For the space
constant, trailing blanks are ignored at most operand positions,
as for all character-like fields with fixed lengths. The space
constant must therefore not be used in these positions.
Example
The result of the following concatenation is a string
with exactly one blank. The blank characters in the first two space
statements
are ignored. Blank characters are only respected after SEPARATED BY
. The example applies with the same result (except for space
) to a
text field literal ' '
with exactly one blank character.
DATA text TYPE string.
CONCATENATE space space INTO text SEPARATED BY space.