Hi all,
is it possible to get the creation- and changing-date of a file
which is stored on PC or presentation-server?
I will upload the file and avoid, that the entries are inserted in
SAP more than one time.
Perhaps anyone knows a better way?
Thanks
Regards, Dieter
Hi,
may be by using cl_gui_frontend_services? For example
CALL METHOD cl_gui_frontend_services=>directory_list_files
EXPORTING
directory = l_temp_dir
CHANGING
file_table = tab_file
count = count.
LOOP AT tab_file INTO wa_file_table.
WRITE:/ wa_file_table-filename.
ENDLOOP.
In table tab_file there is access time/date and write time/date.
Regards,
Christian
1)if file is on PC u can just right click and check the properties to know whn it was created or updated..
2) u can use methods of class cl_gui_frontend_services.
3) if u r having some primary key in tha file then u can simply update the data from fiel data.
4)otherwise u can make use of field last chnage if it exists in ur table to be updated..
Add a comment