Code: Alles auswählen.
DATA: gl_string(9) TYPE c VALUE '123-44-55'.
CONSTANTS: c_num(10) TYPE c VALUE '0123456789'.
* Formatprüfung
IF gl_string+3(1) = '-' AND gl_string+6(1) = '-' AND
gl_string(3) CO c_num AND
gl_string+4(2) CO c_num AND
gl_string+7(2) CO c_num.
WRITE: / 'So ists fein.'.
ELSE.
WRITE: / 'String hat falsches Format!'.
ENDIF.