Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Predefined types, data objects, and functions →  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 ' ' or c with exactly one blank character.

DATA text TYPE string. 

CONCATENATE space space INTO text SEPARATED BY space.