Code: Alles auswählen.
data: lv_license LIKE /R../T...
data: ld_file type char100.
CONCATENATE 'c:\...\TEMP\' sy-syid '_license.txt' INTO ld_file.
SELECT * FROM /R../T...
INTO TABLE lv_license.
OPEN DATASET ld_file FOR OUTPUT IN TEXT MODE.
IF sy-subrc <> 0.
MESSAGE 'It is not possible to open the file!' TYPE 'I'.
ELSE.
LOOP AT lv_license INTO lv_txt.
TRANSFER lv_text TO ld_file.
ENDLOOP.
CLOSE DATASET ld_file .