Application Development and Automation 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: 
Read only

FTP File

Former Member
0 Likes
1,024

Hi Guys,

I have never used FTP_CONNECT and FTP_COMMAND Function Modules before. I need to use this for one of the interfaces I am working on (get a file from an FTP server to SAP R/3). Where does the file gets saved/copied after I use the 'get' command? I mean is there a specific directory where I can pick the file from? Do I have to specify this in the program?

Thanks!

10 REPLIES 10
Read only

Vinod_Chandran
Active Contributor
0 Likes
994

Hi,

You can get enough information from this blog by Thomas Jung.

/people/thomas.jung3/blog/2004/11/15/performing-ftp-commands-from-abap

Also you can search the ABAP Forum for posts and example code.

Thanks

Vinod

Message was edited by: Vinod C

Read only

0 Likes
994

Thanks Vinod! This is very helpful. I really appreciate it.

Read only

0 Likes
994

Hi Leowell,

Kindly reward points for helpful anwers.

Thanks

Vinod

Read only

0 Likes
994

I was about to do that but don't know how. Sorry, I am new to SDN.

Read only

0 Likes
994

Hi,

You can find different radio buttons on the left side of the answers. You can click on the relevant one.

Please check the following site for more info.

https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm#posted

Thanks

Vinod

Read only

0 Likes
994

Hi Vinod,

I don't see those radio buttons. I wanted to give you a 10, but I can't see the buttons.

Thanks,

Leowell

Read only

0 Likes
994

i am also facing same problem. I wrote a mail to SDN regarding that . please see their response below: --

Hello Surpreet,

I apologize for this problem. We are aware of it and hope to have it resolved soon.

Kind Regards,

David Branan

SAP Developer Network Team

https://www.sdn.sap.com

Read only

0 Likes
994

Hi,

I too send a mail to SDN.

Leowell, can you please come back and reward points one this problem is solved.

Thanks

Vinod

Read only

Former Member
0 Likes
994

In FTP_COMMAND itself you can give directory name where you want to PUT/GET file. For example, search this forum or 'where used list'.

Read only

0 Likes
994

Hi Sanjay,

I used this syntax when I run the program RSFTP002 just to test the get command:

get test.dat /tmp/test.dat

where /tmp/test.dat is my SAP Unix directory.

But when I went into the unix server, I did not find test.dat.

Am I using the correct syntax?