SAP NetWeaver AS ABAP Release 750, ©Copyright 2016 SAP AG. All rights reserved.
ABAP - Keyword Documentation →
ABAP - Reference →
Processing External Data →
ABAP File Interface →
Statements for the ABAP File Interface →
OPEN DATASET dset FOR access IN
This statement opens the file specified in dset for the access specified
in access in a storage
mode specified in mode. dset expects a character-like data object containing the
physical name of the file. The file must not yet be open in the current program; otherwise a handleable exception is raised.
Use the additions positions,
to determine the position at which file is opened, specify platform-specific additions, and influence error handling.
Access to a file whose name dset is injected into a program from outside is a serious security risk. Any names passed to a program from outside must be checked thoroughly before being used. See
||The file was opened.
||The operating system could not open the file.
Cause: The file is already open.
Runtime Error: DATASET_REOPEN
Cause: The required conversion is not supported. (Due to specification of
invalid code page or of language not supported in the conversion, with SET LOCALE LANGUAGE.)
Runtime Error: CONVT_CODEPAGE_INIT
Cause: Internal error in the conversion.
Runtime Error: CONVT_CODEPAGE
Cause: No authorization for access to file
Runtime Error: OPEN_DATASET_NO_AUTHORITY
Cause: Authorization for access to this file is missing in OPEN DATASET with the addition FILTER.
Runtime Error: OPEN_PIPE_NO_AUTHORITY
Cause: The operating system does not support pipes.
Runtime Error: DATASET_NO_PIPE
Cause: Maximum number of open files exceeded.
Runtime Error: DATASET_TOO_MANY_FILES
OPEN DATASET - access
OPEN DATASET - mode
OPEN DATASET - position
OPEN DATASET - os_additions
OPEN DATASET - error_handling
Cause: An attempt was made to open a pipe that is already open.
Runtime Error: DATASET_PIPE_POSITION