Skip to Content
Technical Articles
Author's profile photo Suresh Gunji

SFTP to SFTP Pass Through Scenario in SAP Cloud Integration

Introduction:

This blog article will teach you how to create SFTP to SFTP pass through scenario in CPI. You will also learn about SFTP adapter configuration.

Pass Through Scenario:

In this interface, the sender system will simply transfer files to the receiver system; no data stores, mappings, or other components will be sent. The content modifier will be used in b/w integration process to transport the file names from the sender to the receiver system without any changes.

Step-1: Add i-flow & enter the description

Step-2: Open the i-flow and change the Sender & Receiver participant’s names as per your requirement

Step-3: Connect the sender participant to Start and select the SFTP as adapter. Configure the SFTP adapter as per requirements

Make sure that the SFTP credentials are deployed in the below path

Overview –> Manage Security –> Security Material –> Create/Upload Credentials

Check the connectivity test of SFTP adapter in Test Connectivity in the below path

Overview –> Manage Security –> Connectivity Tests –> SSH

Copy the Host Key and paste it in notepad & deploy it in Known Hosts(SSH) file in the below path

Overview –> Manage Security –> Security Material –> Upload Known Hosts(SSH)

Note: If the file has the extension .txt, .xml, .csv configure the File Name as *.*, if the file has no extension configure the File Name as *

In processing tab also configure as per your requirement whether you want to Archive, Delete the file post processing

In scheduler tab also we need to choose how many times this particular interface needs to be run

Step-4: In the pallet functions, choose Transformation –> Content Modifier and drop it in-between Start and End Message. Change the Name of Content Modifier to Filename

Step-5: Click on the Exchange Property Tab. Declare the variable in either Message Header or Exchange Property

If you declare the variable in Message Header call the variable as ${header.variablename} in Target SFTP channel

If you declare the variable in Exchange Property call the variable as ${property.variablename} in Target SFTP channel

Here I’m declaring the variable in Exchange Property

Step-6: Connect the message end to receiver participant using SFTP adapter & configure it as below

As i have declared the variable in Exchange Property we need to call the variable as ${property.FileName}

Here also we need to follow the same steps followed for Sender SFTP channel

Make sure that the SFTP credentials are deployed in the below path

Overview –> Manage Security –> Security Material –> Create/Upload Credentials

Check the connectivity test of SFTP adapter in Test Connectivity in the below path

Overview –> Manage Security –> Connectivity Tests –> SSH

Copy the Host Key and paste it in notepad & deploy it in Known Hosts(SSH) file in the below path

Overview –> Manage Security –> Security Material –> Upload Known Hosts(SSH)

In the processing tab if you required any you can click the check box or else you can ignore it

Step-7: Save the i-flow & deploy it

If you want more secure communication while sending the files from sender to target, we can use PGP Decryptor/Encryptor in between the process to encrypt/decrypt the files

If you want to create the Exception sub process for this interface go through the below blog

https://blogs.sap.com/2022/06/07/how-to-create-exception-sub-process-for-i-flow-in-sap-cpi/

Conclusion:

Consequently, this blog post assists you in creating a pass-through scenario in CPI

Please feel free to post a query in the comments section if you have any inquiries. I’d like to ask everyone to provide feedback and to like this blog article if you found it helpful. To discover more about CPI, kindly follow me for similar articles.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.