FILE_EXIST

Use

This method checks if the specified file exists.

Argument

[IMPORTING] file TYPE STRING

Name of file for which check should be performed. Environment variables in the file name are not supported. The file name has to be either an absolute path or a path relative to the current directory.

Return value

[RETURNING] result TYPE ABAP_BOOL

Indicates whether the file exists or not.

Possible values:

  • ABAP_TRUE

    file exists

  • ABAP_FALSE

    file does not exist

Exceptions

CNTL_ERROR

A CNTL_ERROR occurs if one of the required client methods can not be called.

ERROR_NO_GUI

Currently not used.

NOT_SUPPORTED_BY_GUI

Raised if neither Windows nor Java nor Web GUI is being used.

WRONG_PARAMETER

Thrown if no file name has been specified or the file name contains wild card characters.