2022 Apr 01 8:00 AM
Hi ,
I am trying to Archive the records from a custom table into a AL11 file with the logical path mentioned in my custom Archive object . I am able to see my file in the AL11 file path but unable to append the records at each time of execution.
Basically have followed Custom Data Archiving – As a Background Job (without using SARA) – JIT Archiving as Example | SAP Bl... for archival process .
Could you please guide me about appending the records to the same file ?
2022 Apr 01 8:23 AM
To append to existing file without clearing it, use FOR APPENDING (see ABAP documentation for more information):
OPEN DATASET file FOR APPENDING IN TEXT MODE ENCODING DEFAULT.
TRANSFER record TO file.
CLOSE DATASET file.