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: 

Read file via FTP from non SAP system?

Former Member
0 Kudos

Hello,

I need to read an Excel file (saved as CSV) from a windows server and get the data into R3 program internal table.

I've found the function module CALL FUNCTION 'FTP_CONNECT' but it have an obligatory parameter called RFC_DESTINATION.

But my windows server is just keeping the file... it isn't an RFC destination... I have access to that server via FTP with a normal FTP client and I only need IP, user and password. Why SAP needs RFC_destination?

Edited by: Marshal Oliveras on Apr 30, 2008 10:23 AM

3 REPLIES 3

Former Member
0 Kudos

you kan use function module

FTP_R3_TO_CONNECT and if you want code give me ur id will send you code

thanks

Edited by: Ankur Sharma on Apr 30, 2008 10:45 AM

0 Kudos

Thanks Ankur.

Which ID? SDN user ID?

userID = 3685601

Sm1tje
Active Contributor
0 Kudos

The fact that RFC destination is this:

SAP implements FTP client control via standard RFC 959. To make use of this from with ABAP there has to be a program in SAP Kernel with name sapftp.xxx (xxx depends on OS). Or a file must exist in SAP GUI on the frontend usually in directory SAP GUI>\SAP\FrontEnd\SAPgui. This program 'listens' to RFC Destination SAPFTP. Normally during installing this destination is created, but you can also create it yourself in SM59. Use name SAPFTP for this. Type of destination should be 'T' (TCP/IP).