Code: Alles auswählen.
split datei at trenn into table sptab.
describe table sptab lines sy-tfill.
read table sptab index sy-tfill.
Code: Alles auswählen.
DATA: full LIKE rlgrap-filename VALUE '/usr/sap/dateiname.txt',
path LIKE rlgrap-filename,
file LIKE rlgrap-filename.
CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
EXPORTING
full_name = full
IMPORTING
stripped_name = file
file_path = path
EXCEPTIONS
x_error = 1
OTHERS = 2.
WRITE: / 'Vollständiger Name:', full,
/ 'Verzeichnis: ', path,
/ 'Dateiname: ', file.