Skip to Content
Former Member
Jun 23, 2008 at 07:24 AM

SFTP using SAP Function Modules


Hi Friends,

We are working on SAP 4.7 system, and have a requirement to SFTP some files from our server to an external server.

We are sending files to many other servers using function module FTP_CONNECT. This FM works where Port 23 is active. But for the new server it has only SSH (22) and HTTPS (443) ports available, so the FTP_CONNECT FM fails. We have tried sending the files from Putty using statement SFTP <ID>@<IP> and it worked.

Does any one know how we can do SFTP from SAP reports? Please note that as per the SAP help I have already tried using FM FTP_CONNECT with HOST_NAME as '<IP> space 22'. But it didnt work.

Waiting for your valuable updates.