Skip to Content
author's profile photo Former Member
Former Member

Read file via FTP from non SAP system?

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 30, 2008 at 08:44 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 30, 2008 at 08:51 AM

    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).

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.