Code: Alles auswählen.
PATH = '/tmp/'.
CONCATENATE 'SAP_EXPORT_' SY-DATUM '_' SY-UZEIT '.CSV' INTO DATEINAME RESPECTING BLANKS.
CONCATENATE PATH DATEINAME INTO DATEINAME.
OPEN DATASET DATEINAME FOR APPENDING IN TEXT MODE
ENCODING DEFAULT
WITH SMART LINEFEED.
LOOP AT ITAB ASSIGNING <ITAB>.
CONCATENATE <ITAB>-Spalte1
<ITAB>-Spalte2
<ITAB>-Spalte3
INTO SCHLUESSEL SEPARATED BY ';'.
TRANSFER SCHLUESSEL TO DATEINAME.
ENDLOOP.
UNASSIGN <ITAB>.
CLOSE DATASET DATEINAME.
FREE SCHLUESSEL.
Code: Alles auswählen.
PATH = '/tmp/'.