2008 Aug 24 9:11 AM
hi,
can anyone tell me how do i get creation date and time of a file (not modified date) ?
Thanks
Tomer
hi,
can anyone tell me how do i get creation date and time of a file (not modified date) ?
Thanks
Tomer
2008 Aug 24 9:14 AM
2008 Aug 24 9:15 AM
Hi Tomer,
please check following link.
[url]http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-module-to-get-data-and-time-of-file-576751[url]
Regards,
Karol
2008 Aug 24 10:17 AM
Hi,
Please try thie code.
REPORT ztest.
TABLES epsf.
PARAMETERS dir LIKE epsf-epsdirnam DEFAULT '/home/user1/'.
PARAMETERS file LIKE epsf-epsfilnam DEFAULT 'file001.dat'.
DATA : mtime TYPE p DECIMALS 0,
time(10),
date LIKE sy-datum.
CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
EXPORTING
file_name = file
dir_name = dir
IMPORTING
file_size = epsf-epsfilsiz
file_owner = epsf-epsfilown
file_mode = epsf-epsfilmod
file_type = epsf-epsfiltyp
file_mtime = mtime
EXCEPTIONS
read_directory_failed = 1
read_attributes_failed = 2
OTHERS = 3.
*The subroutine p6_to_date_time_tz is sap std present in rstr0400.
PERFORM p6_to_date_time_tz(rstr0400) USING mtime
time
date.
WRITE: / mtime,
/ date, time.Regards,
Anversha
2008 Nov 04 5:05 AM
Hi Gurus Thanks for ur reply,
I have same problem to get creation date of files in Application server
what u send code i tried but it shows date is"01/01/1970" but actual creation date is "04/14/2008"
could u tel me how to get actual date of the files in APP.Server.
Thanks in Advance.
sivakumar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |