cancel
Showing results for 
Search instead for 
Did you mean: 

Sending files to Multiple receivers through SFTP!

0 Kudos

Hi,

I working on a OB(Payment Order) scenario ECC--PI--Third party(SFTP). The output file is been compressed and sent to the target. The output file has to be sent to different receivers/folders based on "BIC" Value".

Ex: If BIC value is "APJ" then it has to be placed in PO/APJ folder and if BIC Value is "EMU" the it has to be placed in PO/EU folder.

How can this be achieved and should we need a separate channel for differet SFTP folder.

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Vijayan,

In File receiver we can use variable substitution to find directory name based on content but i am not sure if this will work for SFTP.

refer the below reference for File

Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integr...

Answers (2)

Answers (2)

Former Member
0 Kudos

If you already have a mapping   -- you can create a udf and assign the dynamic value for directory in the mapping..[ if seeburger sftp use the below code.]

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey dirValue = DynamicConfigurationKey.create( "http://seeburger.com/xi/SFTP", "dtSFTPBaseDir");

conf.put(dirValue, sInput); // where SInput is the dynamic value from Source BIC

return "";

sahithi_moparthi
Contributor
0 Kudos

Hi,

Refer below link.

http://scn.sap.com/docs/DOC-58827

The above document explain completely  the Step by Step  process in creating Dynamically target folder using JAVA mapping with SFTP adapter.