Ansicht
Dokumentation

/CONSOLUT/CS_GET_FILE_INFO - Reads attributes as size, date and time of a file or directory

/CONSOLUT/CS_GET_FILE_INFO - Reads attributes as size, date and time of a file or directory

General Data in Customer Master   CL_GUI_FRONTEND_SERVICES - Frontend Services  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book

Funktionalität

This function module reads to a specified file attributes as date, time, and size from the file system using standard C calls.

DIR_NAME: Path to file (this is the directory the file is located in); may contain SY-HOST (will be replaced with value of system variable SY-HOST on target computer); may contain parameter names as $( parameter) (will be replaced by the value of the parameter). Default value is the executable directory specified as $(DIR_EXECUTABLE).

FILE_NAME: Name of file(s), for which information is provided. May contain '+' or '*'. Default is '*', which returns a list of all files in the directory. FILE_NAME is case sensitive. On NT a case insensitive search is done also if FILE_NAME contains no wildcard.

DIR_LIST: Returns all files matching FILE_NAME. MOD_DATE and MOD_TIME are calculated from MTIME including corrections to daylight saving.

Beispiel

data: filelist type ocs_file.

call function 'OCS_GET_FILE_INFO'      

   exporting                          

      dir_name = '$(DIR_HOME)'         

      file_name = 'dev_w+'            

   tables                              

      dir_list =  filelist            

   exceptions                          

      others = 99.                    

DIR_HOMEpoints to the work directory and all files starting with 'dev_s' having 6 letters are returned in filelist.

Hinweise

This function module may be called with RFC.

Weiterführende Informationen





Parameter

DIR_LIST
DIR_NAME
FILE_NAME

Ausnahmen

ACTIVITY_UNKNOWN
BRACKET_ERROR_IN_FILENAME
NOT_A_DIRECTORY
NO_AUTHORITY
NO_MEDIA_IN_DRIVE
NO_SUCH_PARAMETER
TOO_MANY_ERRORS
TOO_MANY_FILES

Funktionsgruppe

SOLUT/SAPLCS01

ROGBILLS - Synchronize billing plans   rdisp/max_wprun_time - Maximum work process run time  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 3076 Date: 20240418 Time: 032335     sap01-206 ( 47 ms )