Get Example source ABAP code based on a different SAP table
File Interface in ABAP Release 6.10 The file interface in ABAP_RELEASE 6.10 has been completely overhauled. The changes and developments affect the following topics: ITOC
ABAP_MODIFICATION_NN Adapting to Unicode>
Extensive changes to the file interface have been made as a result of the switch to Unicode>.
ABAP_MODIFICATION_NN Reading and Changing File Properties at Runtime>
The statement GET DATASET ...>> returns both the current reading or write positions and the file properties. In turn, a required file position can be set at runtime using the statement SET DATASET ...>>. It is also possible to change the properties of the file, but the system only applies values compatible with the opening mode.
ABAP_MODIFICATION_NN New Classes for Converting Files>
Three classes have been implemented for file conversion: CL_ABAP_CONV_IN_CE>>: Instances of this class enable the conversion of external binary data to valid ABAP data objects CL_ABAP_CONV_OUT_CE>>: Instances of this class convert ABAP data objects to binary data. CL_ABAP_CONV_X2X_CE>>: Instances of this class enable the text data of various character sets and the numeric data of various number formats to be transformed.
ABAP_MODIFICATION_NN Support for Files Greater than 2 Gigabytes >
Files greater than 2 gigabytes can now be read and written on all platforms that support large files. Only the platforms OS/390> and IBM System i> (previously AS/400>) are currently not included in this change. Additionally, the statement OPEN DATASET>> has been enhanced in such a way that, when opening a file, the file pointer also addresses positions greater than 2 gigabytes.
ABAP_MODIFICATION_NN Limiting Data Range when Reading Files>
The amount of data to be read can be limited using the addition MAXIMUM LENGTH maxlen>>. Depending on the mode in which the file was opened, maxlen> defines the maximum number of characters or bytes that are to be read from the file.