Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

copy file from url to local directory

former_member1033672
Participant
0 Kudos

Hi,

pls, is there some FM or class in ABAP, which can copy file from url to local directory?

Thanks

iNG0

6 REPLIES 6

former_member1033672
Participant
0 Kudos

pls, is there some solution? Need to copy file from URL to local directory

0 Kudos

hi,

you can use method FILE_COPY of class CL_GUI_FRONTEND_SERVICES

hope this helps

ec

0 Kudos

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.

0 Kudos

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

0 Kudos

no, it returns result EQ space. I think, cl_gui_frontend_services is not suitable for that

0 Kudos

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