2006 Jan 17 10:57 AM
Hi,
I would like to kbnow how to get the Unix level timestamp of Files in a particular directory in al11 transaction. This needs to be accessed from a ABAP program. Any inputs will be appreciated.
regards
Aveek
2006 Jan 17 11:01 AM
Hi
Try to use the fm SUBST_GET_FILE_LIST, it should return all data you can see by AL11.
Here you can see the abap code to do that.
After you should use the routine p6_to_date_time_tzof program rstr0400 to convert format date and time:
DATA T_FILE LIKE STANDARD TABLE OF RSFILLST WITH HEADER LINE.
call function 'subst_get_file_list':
EXPORTING
DIRNAME = DIRNAME
FILENM = FILENM
TABLES
FILE_LIST = T_FILE.
LOOP AT T_FILE.
perform p6_to_date_time_tz(rstr0400)
using T_FILE-mtime
T_FILE-MOD_TIME
T_FILE-mod_date.
MODIFY T_FILE.
ENDLOOP.
Max
2006 Jan 17 11:01 AM
Hi
Try to use the fm SUBST_GET_FILE_LIST, it should return all data you can see by AL11.
Here you can see the abap code to do that.
After you should use the routine p6_to_date_time_tzof program rstr0400 to convert format date and time:
DATA T_FILE LIKE STANDARD TABLE OF RSFILLST WITH HEADER LINE.
call function 'subst_get_file_list':
EXPORTING
DIRNAME = DIRNAME
FILENM = FILENM
TABLES
FILE_LIST = T_FILE.
LOOP AT T_FILE.
perform p6_to_date_time_tz(rstr0400)
using T_FILE-mtime
T_FILE-MOD_TIME
T_FILE-mod_date.
MODIFY T_FILE.
ENDLOOP.
Max
2006 Jan 17 11:03 AM