cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP HEC AL11 files to third party Server

0 Kudos

I have a requirement in which i am trying to develop a code in ABAP to SFTP files from application directory based on linux server to a third party server. I am convinced that FM: SXPG_COMMAND_EXECUTE would help me do it. Now for this i have the target server ip, port, target user, target folder and obviously the application directory folder from which the files would be picked.This will suffice the input to the function module get the source and target folders.

The files that are to be SFTP-ed are of a format that wont be possible to open in sap, also they are each of 1GB. And the source folder would contain around 30 such files.

The questions i would like to ask experts would be as follows:

  1. What other configurations that i might require to connect to the target system.
  2. Will the above mentioned function module send the files without needing to open them.
  3. Will it impact SAP application in anyway.

Any help regarding this would be appreciated.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Tomas_Buryanek
Active Contributor
0 Kudos
  1. You would also need password to SFTP.
  2. That function module will not send files itself. I guess you intend to use it to call command for SFTP connect + file transfer? Recommend to explore the "lftp" command which is capable to do it. I have used it for both SFTP download and upload.
  3. It might have some performance/connection effect. Because 1GB files are not really considered small...
0 Kudos

I have the user name and password to SFTP. Could please confirm if you are suggesting to define an external command in SM69 and give the required copying command to move the files.

Tomas_Buryanek
Active Contributor

shaktimishra Yes I have created command in SM69. But I could not make work whole "lftp" command with variable parameters through SM69. So I am creating script file with all the "lftp" commands. And then just call "bash" command to run that script file.

Answers (1)

Answers (1)

0 Kudos

Hi,

I need to extract a billing doc and convert to xml file then send to third party server via SFTP. Can provide me the step to do it at the SFTP portion?

Thanks and Regards,

Khor