DIRECTORY_EXIST

Use

Checks if the specified directory exists on the client PC.

Argument

[IMPORTING] directory TYPE STRING

Directory for which to check. Environment variables are not supported in the file name. Relative paths can be used.

Return value

[RETURNING] result TYPE ABAP_BOOL

Flag indicating whether the specified directory exists or not.

Possible values:

  • ABAP_TRUE

    the directory exists

  • ABAP_FALSE

    the directory does not exist

Exceptions

CNTL_ERROR

Thrown if neither Windows nor Java nor HTML GUI is used.

ERROR_NO_GUI

Currently not used.

NOT_SUPPORTED_BY_GUI

Currently not used.

WRONG_PARAMETER

Raised if no directory path is specified.