Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: RFC_REMOTE_FILE

$
0
0

Hi Gerd,

 

the problem is, that this FM has been removed for a good reason (security), so providing "official" instructions on how to recreate it, would be a bit contra-productive...

 

I could post some sample code, which provides the basic skeletton of an RFC server program implementing RFC_REMOTE_FILE and which you would have to complete with the necessary security checks and other details, etc.

 

However, before we do this, here is another idea, which might be even simpler: if you want to transfer a file to an external server, can you perhaps use FTP? For this, two steps would be necessary:

 

  1. Start and configure an FTP server on the target host, if none is yet running. (In most Linux/Unix installations a standard FTP server is already present. It may only need to be activated and configured with regard to which user is allowed read/write access to which directories. For Windows Server, an FTP server is part of the IIS installation. There are also many freeware versions available.)
  2. On ABAP side use FMs FTP_CONNECT, FTP_R3_TO_SERVER, FTP_DISCONNECT, etc. A nice summary of this mechanism can be found here: http://wiki.scn.sap.com/wiki/display/ABAP/The+SAPFTP+Library+-+FTP+Programming+in+ABAP

 

Best Regards, Ulrich


Viewing all articles
Browse latest Browse all 3125

Trending Articles