DIRECTORY_SET_CURRENT

Use

Sets the working directory in the GUI. File operations on file system objects for which no path has been specified will operate on the objects in the directory set with this method.

Arguments

[IMPORTING] current_directory TYPE STRING

Working directory to be set for GUI on client PC. Environment variables are not supported for the directory name. Relative paths can be used.

[CHANGING] rc TYPE I

Return code specifying whether operation succeeded or not.

Possible values:

  • 0

    operation succeeded

  • 3

    specified directory could not be found

  • 5

    access to the specified directory was denied

  • 15

    the drive for the specified directory is not available

  • 53

    specified directory is on a network drive and the network path was not found

Exceptions

CNTL_ERROR

Thrown if the method is called from a GUI that is neither a Windows, a Java or Web GUI or setting the new current directory fails.

DIRECTORY_SET_CURRENT_FAILED

Raised if no new working directory has been specified.

ERROR_NO_GUI

Currently not used.

NOT_SUPPORTED_BY_GUI

This exception is fired if this method is called from a Web GUI.