Question:
Hi,
How Can I Copy File From One Win Folder To Under With New Name File ?.
10x ;o)
Answer:
cl_gui_frontend_services->file_copy.
_________________
Regards
R
Abap KC
SFMDR
Answer:
cl_gui_frontend_services->file_copy.
Hello there.
I've tried it using this method, but it ALWAYS returns me 'FILE_NOT_FOUND' exception (sy-subrc = 6), although my file does exist (and it does it in the specifyed path).
When I debug the code, I come across with my problem when CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES method is executed: After this performance, filetab is initial and, so, count (which contains the number of records of this table) is equal to zero. After this fact, system triggers 'FILE_NOT_FOUND' exception.
Does anyone know what's exactly happenning to me?
Any help would be kindly appreciated.
Greetings from Madrid, thanks in advance.
Answer:
Hi there,
I have been using the cl_gui_frontend_services=>file_copy method and get the access denied error. I have checked the rights on the file and the folder they I have full rights to copy files.
I had a go at debugging but it calls a method which it does not continue to debug into and returns the error code for access denied. Could anybody give me a bit of direction as to where I should be looking to fix this problem. I have tried using the method to copy a couple of different files but have had no luck.
Cheers
Katan
Answer:
Under XP, Your C:\ maybe locked down by your admin.
If you have admin rights, select properties and uncheck the "read only" flag.