on 01-09-2008 10:38 PM
The scenario is IDOC -- to FTP (Receiver file adapter). Based on the condition in the sender IDOC say if EIDKA01-BSART = Y than the directory path on FTP server is 'A' ELSE 'B'.
There is only one reciever service defined for the FTP server in the Integration Directory. Its not multiple receiver scenario.
How do we do this?
Thanks
Hi !
Just create an UDF in graphical mapping and put this code inside:
-
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//get Key of Directory
DynamicConfigurationKey keyD = DynamicConfigurationKey.create( URLFile, "Directory");
//Replace value of Directory
conf.put(keyD,dir);
-
where "dir" contains the destination path depending on the EIDKA01-BSART value. When this code executes, if the receiver file adapter has the adapter-specific attributes (directory) checked, then it will set the "directory" value to the one specified in the "dir" variable.
Regards,
Matias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sachin,
In the receiver communication channel for directory just put any dummy name (because it is mandatory we have to fill this else this will not activate) and also check the directory checkbox in adapter specific attributes. With this checking you will get the directory name from the UDF.
Regards,
---Satish
thanks a lot guys it does work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.