Application Development and Automation 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 only

How to connect SFTP server through ABAP program

Former Member
0 Likes
3,282

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

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
2,080

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

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

6 REPLIES 6
Read only

mvoros
Active Contributor
0 Likes
2,081

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

Read only

Former Member
0 Likes
2,080

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

Read only

Former Member
0 Likes
2,080

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

Read only

0 Likes
2,080

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.

Read only

Former Member
0 Likes
2,080

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?

Read only

0 Likes
2,080

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