Application Development 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: 

Using SFTP in ABAP R/3

Former Member
0 Kudos

Hi,

We are currently transferring files from R/3 to FTP using abap. But now we will be using SFTP.

Can you please let me know what program changes we need to do for transfering files to SFTP.

I came to know that we cannot directly transfer the files from R3 to SFTP. What is the solution for this.

Please help.

3 REPLIES 3

former_member209119
Active Participant
0 Kudos

Hi,

There is no such functionality.You neet to go to XI/PI to send data to an SFTP server.

Please check the below links:

http://scn.sap.com/thread/549871

http://scn.sap.com/thread/1478934

Former Member
0 Kudos

Hi Juheb,

You can also send directly from ABAP R3 ABAP Stack (without involving SAP PII) by using an O.S. script and calling the script from the ABAP report:

- create an O.S. script that calls the sftp client and providing the path to source file as parameter

- create a logical command in R3 with transaction SM69. Then you can test the command with SM49:

http://help.sap.com/erp2005_ehp_03/helpdata/EN/c4/3a607b505211d189550000e829fbbd/frameset.htm

- then modify your ABAP code to call the logical command using FM SXPG_COMMAND_EXECUTE  and providing the path of the file as parameter:

http://help.sap.com/saphelp_erp2004/helpdata/en/fa/0971fb543b11d1898e0000e8322d00/frameset.htm

Regards,

Luis

arindam_m
Active Contributor
0 Kudos

Hi,

Please check the FM SXPG_COMMAND_EXECUTE with this you can use the SFTP feature if your UNIX/Windows Application server.

Cheers,

Arindam