Entering content frameFile interface Locate the document in its SAP Library structure

In the file interface, the OPEN DATASET statement has been completely overhauled and the following enhancements added for USs:

The IN TEXT MODE addition

OPEN DATASET dsn IN TEXT MODE ...

The file is opened so that it can be read or written to line-by-line. Final space characters are deleted in this mode.

  1. Addition:... ENCODING (DEFAULT | UTF-8 | NON-UNICODE)
  2. The keyword ENCODING specifies the character set used to edit the data. In a US the DEFAULT is UTF-8, while in an NUS it is NON-UNICODE. NON-UNICODE means that the system uses the code page specified either when the user logs on to the R/3 System or in the SET LOCALE LANGUAGE statement.

  3. Addition:... REPLACEMENT CHARACTER rc

Specifies the replacement character that is used if a character is not available in the target character set when the file is converted. The default replacement character is the hash symbol (#).

The IN BINARY MODE addition

OPEN DATASET dsn IN TEXT MODE ...

The file is opened to be read or written to, without any line breaks. In both the US and the NUS, the exact content of memory is copied.

The IN LEGACY MODE addition

OPEN DATASET dsn IN LEGACY TEXT MODE [(LITTLE | BIG) ENDIAN ]
                                    [ CODE PAGE cp ].

The file is opened so that it can be read or written to line-by-line, in a format compatible with TEXT MODE in the NUS.

You use the ENDIAN addition to specify the byte order that the system will use to process numbers of type I or type F. If you omit this addition, the operating system of the application server specifies the byte order. If the byte order declared differs from that used by the operating system, the data is converted as appropriate for the statements READ DATASET and TRANSFER. You can also specify a REPLACEMENT CHARACTER, rc, in this statement.

The CODE PAGE addition specifies the code page used to display text from the file dsn. If this addition is missing, the system uses the code page used to read or write to the file.

OPEN DATASET dsn IN LEGACY BINARY MODE [(LITTLE|BIG) ENDIAN)]
                                     [ CODE PAGE
cp ].

The file is opened to be read or written to without any line breaks, in a format compatible with NUS BINARY MODE. The additions ENDIAN and CODE PAGE are used as described above. You can also specify a REPLACEMENT CHARACTER, rc, in this statement.

For each of the above variants, you can use the IGNORING CONVERSION ERRORS addition to make the system suppress conversion errors at runtime when reading or writing to a file. In general, reading or writing to a file causes a runtime error, unless this file has already been opened using an OPEN DATASET statement.

 

 

 

Leaving content frame