All below examples are based on the following variables:
DATA: string TYPE string VALUE 'Text'.
DATA: numstring TYPE string VALUE '012345'.
DATA: num TYPE p DECIMALS 3 VALUE '-123.45'.
Case
WRITE: |{ string CASE = RAW }|. " Text
WRITE: |{ string CASE = LOWER }|. " text
WRITE: |{ string CASE = UPPER }|. " TEXT
Align
WRITE: |>{ string WIDTH = 20 ALIGN = LEFT }<|. " >Text <
WRITE: |>{ string WIDTH = 20 ALIGN = RIGHT }<|. " > Text<
WRITE: |>{ string WIDTH = 20 ALIGN = CENTER }<|. " > Text <
Padding
WRITE: |{ string ALIGN = LEFT WIDTH = 20 PAD = '_' }|. " Text________________
WRITE: |{ string ALIGN = RIGHT WIDTH = 20 PAD = '_' }|. " ________________Text
WRITE: |{ string ALIGN = CENTER WIDTH = 20 PAD = '_' }|. " ________Text________
Conversion Exit
WRITE: |{ numstring WIDTH = 20 ALPHA = IN }|. " 00000000000000012345
WRITE: |{ numstring ALPHA = OUT }|. " 12345
Numbers
WRITE: |{ num NUMBER = RAW }|. " -123.45
WRITE: |{ num NUMBER = USER }|. " -123,45
WRITE: |{ num NUMBER = ENVIRONMENT }|. " -123,45
Number Style
WRITE: |{ num STYLE = SCIENTIFIC }|. " -1.2345E+02
WRITE: |{ num STYLE = SCIENTIFIC_WITH_LEADING_ZERO }|. " -0.12345E+03
WRITE: |{ num STYLE = SCALE_PRESERVING_SCIENTIFIC }|. " -1.2345E+0002
WRITE: |{ num STYLE = ENGINEERING }|. " -123.45E+00
Date
WRITE: |{ sy-datum DATE = RAW }|. " 20210611
WRITE: |{ sy-datum DATE = ISO }|. " 2021-06-11
WRITE: |{ sy-datum DATE = USER }|. " 11.06.2021
WRITE: |{ sy-datum DATE = ENVIRONMENT }|. " 11.06.2021
Time
WRITE: |{ sy-uzeit TIME = RAW }|. " 111923
WRITE: |{ sy-uzeit TIME = ISO }|. " 11:19:23
WRITE: |{ sy-uzeit TIME = USER }|. " 11:19:23
WRITE: |{ sy-uzeit TIME = ENVIRONMENT }|. " 11:19:23
Timestamp
DATA: timestamp TYPE timestampl.
GET TIME STAMP FIELD timestamp.
WRITE: |{ timestamp TIMESTAMP = SPACE }|. " 2021-06-11 11:19:23.0601200
WRITE: |{ timestamp TIMESTAMP = ISO }|. " 2021-06-11T11:19:23,0601200
WRITE: |{ timestamp TIMESTAMP = USER }|. " 11.06.2021 11:19:23,0601200
WRITE: |{ timestamp TIMESTAMP = ENVIRONMENT }|. " 11.06.2021 11:19:23,0601200