Ansicht
Dokumentation
/CONSOLUT/CS_GET_FILE_INFO - Reads attributes as size, date and time of a file or directory
PERFORM Short Reference Fill RESBD Structure from EBP Component StructureDiese Dokumentation steht unter dem Copyright der SAP AG.
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_LISTDIR_NAME
FILE_NAME
Ausnahmen
ACTIVITY_UNKNOWNBRACKET_ERROR_IN_FILENAME
NOT_A_DIRECTORY
NO_AUTHORITY
NO_MEDIA_IN_DRIVE
NO_SUCH_PARAMETER
TOO_MANY_ERRORS
TOO_MANY_FILES
Funktionsgruppe
SOLUT/SAPLCS01Addresses (Business Address Services) RFUMSV00 - Advance Return for Tax on Sales/Purchases
Diese Dokumentation steht unter dem Copyright der SAP AG.
Length: 3076 Date: 20240523 Time: 181845 sap01-206 ( 44 ms )