Code: Alles auswählen.
data: ld_stream type xstring.
field-symbols: <ls_access> type scms_acinf.
loop at lt_access assigning <ls_access>.
concatenate lines of lt_content from <ls_access>-first_line to <ls_access>-last_line into ld_stream in byte mode.
ld_stream = ld_stream(<ls_access>-comp_size). "Die richtige BYTE-Länge
* Ab hier kann die aktuelle Datei gefahrlos weiterverarbeitet werden.
...
endloop.
Code: Alles auswählen.
OPEN DATASET filename IN BINARY MODE FOR OUTPUT MESSAGE error.
TRANSFER ld_stream TO filename.
CLOSE DATASET filename.