2009 Sep 17 1:04 PM
Hi Friends
I already did a coding in ABAP for read and write files in FTP server, its working fine.
But instead of FTP, if client is going to use SFTP server.So in that case how can I write abap code to connect into SFTP server.
I seached a lot, but I am not able to come one conclusion about this topic.
So anybody have an experiance in that area, kindly guide me to read and write files from FTP and into FTP.
Thanks in advance
Regards.
Gowrishankar
2009 Sep 17 1:08 PM
Hi,
this is not supported by SAP. Maybe there is some commercial solution for connecting to SFTP from ABAP. We had same requirement and we solved it by external OS command. An application server creates files in directory and then it calls external OS command which transfer files using SFTP.
Cheers
2009 Sep 17 1:08 PM
Hi,
this is not supported by SAP. Maybe there is some commercial solution for connecting to SFTP from ABAP. We had same requirement and we solved it by external OS command. An application server creates files in directory and then it calls external OS command which transfer files using SFTP.
Cheers
2009 Sep 17 1:51 PM
Hi
Try the following function modules in your code.
1) FTP_CONNECT
2) FTP_COMMAND
3) TH_CALLSYSTEM
4) FTP_DISCONNECT
by using these FM you can do FTP.
Thanks !!
Vivek
2009 Sep 18 11:12 AM
Hi Martin and Vivek,
Thanks for your replies.Martin you r correct I am not able to find any solution upto now.
Vivek, I tried with that FM, its not available in ECC ( TH_CALLSYSTEM ).
Hi..anybody have idea about this..plz let me know.
Thanks
Gowrishankar
2009 Sep 18 11:16 AM
There is no such functionality. The mentioned FM can handle FTP, but not SFTP. You neet to go to XI/PI to send data to an SFTP server.
2010 Dec 27 11:51 AM
Hi Rainer ,
Even i am trying to transfer a file through SFTP and in one of your reply you said we need to go to XI/PI .
Could you please eloberate on this.All the requirents?
2010 Dec 27 6:06 PM
Hello
You may have a look at blogs:
[SAP Network Blog: SFTP with PI the openSSH way|/people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way]
[SAP Network Blog: Using SFTP (SSH) for windows in SAP PI|/people/daniel.graversen/blog/2009/07/29/using-sftp-ssh-for-windows-in-sap-pi]
itelligence offers a commercial sFTP adapter for SAP-PI:
[SFTP Adapter by: itelligence AG|http://ecohub.sdn.sap.com/irj/ecohub/solutions/sftpadapter]
Regards
Uwe