06-25-2008 9:43 AM
Hi,
pls, is there some FM or class in ABAP, which can copy file from url to local directory?
Thanks
iNG0
06-25-2008 9:55 AM
pls, is there some solution? Need to copy file from URL to local directory
06-25-2008 9:58 AM
hi,
you can use method FILE_COPY of class CL_GUI_FRONTEND_SERVICES
hope this helps
ec
06-25-2008 10:02 AM
I've already tried that class and method, but it didn't worked on my url. http://www.cs.mfcr.cz/spd_internet/geteko.aspx?download=G
mayby the problem is that it is not direct url.
06-25-2008 10:15 AM
i am not sure if this will copy fiel from external url. try this first if it recognizes the source CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
06-25-2008 10:25 AM
no, it returns result EQ space. I think, cl_gui_frontend_services is not suitable for that
06-25-2008 12:53 PM
if you are on a system prior to WAS6.20 you can use http_post or http_get function modules. (do a where used list in your system youwill find sample programs)
if you are on was 6.20 or above you can use client cl_http_client class to do the same.
Regards
Raja
For people who are trying to answer
If you dont know the answer or if you are not sure about the answer kindly do not mislead