SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
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.
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 ' ' or c` ` with exactly one blank character.
DATA text TYPE string.
CONCATENATE space space INTO text SEPARATED BY space.