Skip to Content
Author's profile photo Nirjar Gandhi

SAP MII – SFTP Action block feature video blog

The following document will guide you, how to use the SFTP Action blocks fetaure which have been added in SAP MII 15.0 SP08 and MII 15.1 SP03 onwards.

Thanks to Salvatore Castro for helping with the code & Implementation and also assisting with the testing issues.

Business Scenario for Using SFTP Action Block:-

When integrating various systems in a manufacturing environment a need can arise where you need file access, file transfer and file management over any reliable data stream. That is where, SFTP comes into the picture. These action blocks acts as SFTP client through them we can connect to the SFTP server and Copy file content, paste the content in any file , delete a file, create new directory adn delete file/ directory.

For details kindly refer to the help link, where paramter details are available :-

SAP MII SFTP Help link

Also, a detailed working video for SFTP Action blocks :-

 

Assigned Tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Bill Doyle
      Bill Doyle

      I am trying to read files on a remote SFTP server.

      I am getting the following error within milliseconds.

      • [ERROR] Uncaught exception from SFTP_Get_File_List_0, SFTPGetFileList: Error while getting file list for folder /, timeout: socket is not established

      I can connect with a third party FTP service from the MII server, so I don't believe the issue is with a firewall block.

      Is there some type of configuration required at the netweaver layer?

      Author's profile photo Ricardo de Carvalho
      Ricardo de Carvalho

      Hi Bill Doyle,

      I appreciate it has been a while since you made this comment but I was willing to ask if you were able to resolve this issue. I'm facing a very similar situation and if you could please share what the solution was it would be really appreciated.

      Thanks in advance!

      Ricardo

      Author's profile photo Ricardo de Carvalho
      Ricardo de Carvalho

      Hi Nirjar Gandhi,

      Thanks for the video.

      I was wondering if you have the details regarding other configuration like KeyStoreName, CertificateName,  EncodedKeyType, PrivateKeyName and UseSecureStore. These are not covered by the documentation and I wanted to run it by you in case you know how to set it up when a certificate is required.

      Thanks,

      Ricardo

      Author's profile photo Subhankar Ranasingh
      Subhankar Ranasingh

      Hi Ricardo,

      We are trying to setup certificate/key based authentication with SFTP.

      • Key pairs created in MII
      • public key shared & imported to the SFTP user

      It is working using basic username and password but the authentication not working using KeyStore details. As you were trying this last year so if you can share us some detail steps for the configurations then that would be of great help.

      Thanks,

      Subhankar

      Author's profile photo Ricardo de Carvalho
      Ricardo de Carvalho

      Hi Subhankar,

      The customer decided basic authentication was enough because it was a local transfer (inside the same network). So we ended up not configuring certificates.

      Thanks,

      Ricardo