cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello Experts,

Kindly help for below mentioned queries.

Scenario:

Proxy (ECC)-> PI-> (FTP) Third party

Requirements:

1) Dynamic IP,Port,User credential and Folder path configuration in Receiver FTP Adapter

2) In case connectivity to particular File system fails then switching to other File system and dumping data in Real time.

Queries:

1) For 1st requirement, I assigned IP details using Variable substitution method, but it is not working. Getting Unknown host exception

2) Using ASMA parameter (for 1st requirement) or Custom Adapter module, both requirements can be achievable?

Please let me know in case any query or info required.

Regards,

Karan Kholakiya

0 Likes
View Entire Topic
former_member607993
Contributor
0 Likes

Hi Karan,

Ideally its very rare to have Dynamic IP address, port number and user account. Variable substitution is for target directory and file name scheme.

Folders/sub folders and file name scheme(i.e. file name and path directory) and can be handled dynamically using ASMA if required inputs are passed from Source system.

public StringASMAFilename(String REFNO, String CREDAT, String CRETIM, String basedirectory, Container container) throws StreamTransformationException{

String filename = new String("");

DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

filename = "GY" + "_" + REFNO+ "_" + "_" + CREDAT + "_" + CRETIM + ".csv"; conf1.put(key1,filename);

DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");

String forwardslash = "/";

String outputdirectory = basedirectory + REFNO + forwardslash;

conf1.put(key2,outputdirectory);

return filename;

You can deliver the message to 2 different business components always instead of switching over of components/file system.

Thanks and Regards - Rajesh PS

former_member285898
Participant
0 Likes

Hi Rajesh,

Thanks for your inputs... I have shared my inputs above for the same. Please check and let me know in case of any.

Regards,

Karan K.