Handling Files on Application Server in SAP: ABAP handling for DATASET, FOR APPENDINGopen the file for appending. What is dataset and how to use it? ABAP/4 provides three statements for handling files, The OPENDATASET statement opens a file. The CLOSE DATASET statement closes a file. ABAP - Keyword Documentation → ABAPOPENDATASET file FOR INPUT IN TEXT MODE READ DATASET file INTO result. APPEND result TO output. Opening a File for Appending Data . To open a file so that you can append data to the end of it, use the FOR APPENDING addition in the OPENDATASET statement: ABAP - Keyword Documentation → ABAP File Interface → Statements for the ABAP File Interface → OPENDATASET for appending or changing with Hi Experts,I am having an issue with OPENDATASET . FOR APPENDING within a BADI.My code is below. The issue I am having is that when the BADI runs in DEV, the lines of the file are output line by line (one record per line). If OPENDATASET is not executed in a Unicode program and if the user has write authorization OPEN FOR APPENDING opens the file in append (ABAP types I, F, Reading a file stored in application server in SAP ABAP, OPENDATASET FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. SAP ABAPTutorials, ABAP - Keyword Documentation → ABAP Data → ABAP File Interface → Statements for the ABAP File Interface → OPENDATASET → is opened for appending, I am trying to create a new file with the information that i will extract from my BD. CONCATENATE cdf ndf INTO cdf. OPENDATASET cdf for APPENDING IN LEGACY TEXT MODE WITH SMART LINEFEED.