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: 

How to connect SFTP to put file (Bitvise Tunnelier)?

Former Member
0 Kudos

Hi,

i want to put a text file into SFTP server.

There is a method that installing the Bitvise Tunnelier program on SAP Server, and defining operating system commands via SM49 tcode.

But i dont know which parameters must be defined and how to calling this OS command in abap program.

Did anyone use Bitvise Tunnelier and OS Command in abap program?

Can somebody help me please?

Thanks.

Best regards.

2 REPLIES 2

Former Member
0 Kudos

Hi,

The commands are depending on your operating system. So consult your SAP Basis consultant.

To execute a command defined with SM49:

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'

Just give it a try with an simple command like dispalying directory contents.

Success,

Rob

former_member589029
Active Contributor
0 Kudos

You could also use the following function modules:

HTTP_SCRAMBLE to scramble the FTP server password

FTP_CONNECT to connect to the FTP server

FTP_COMMAND_LIST to execute a command on the FTP server

FTP_DISCONNECT to disconnect from the FTP server

The command could be something like:

PUT application server or local file filename [FTP filename]

Hope that helps,

Michael