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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.