Menu

SAP Function Module OCS_GET_FILE_INFO

Reads attributes as size, date and time of a file or directory

The Function Module OCS_GET_FILE_INFO (Reads attributes as size, date and time of a file or directory) is a standard Function Module in SAP ERP and is part of the function group OCSI within the package SOCS.

Technical Information

Function Module OCS_GET_FILE_INFO
Short Text Reads attributes as size, date and time of a file or directory
Function Group OCSI
Package SOCS
Module Type Remote-Enabled

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DIR_NAME LIKE OCS_FILE-NAME '$(DIR_EXECUTABLE)' Path for file
FILE_NAME TYPE OCS_FILE-NAME '*' File name mask

Exporting Parameters

This function module does not define any EXPORTING parameters.

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DIR_LIST LIKE OCS_FILE List of files fitting to filename mask

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
ACTIVITY_UNKNOWN Activity of calling C functions unknown
BRACKET_ERROR_IN_FILENAME ')' in filename before '$)'
NOT_A_DIRECTORY Specified directory does not exist
NO_AUTHORITY No authorizations for C function calls
NO_MEDIA_IN_DRIVE Could not read from specified directory
NO_SUCH_PARAMETER Parameter specified by '$(...)' not found
TOO_MANY_ERRORS 50 errors occured reading the directory
TOO_MANY_FILES 1000 files where read from directory