on 10-17-2013 4:16 PM
Hi,
My requirement is to dynamically read the file name ( coming from FTP sender channel) and based on file name , put them into Different folder via receiver File adapter r ( File to File). I went though the forum & found couple of options
(1) Using UDF in the Mapping, Create a file path. Use this in Variable with Adapter specific parameters. Problem with this is we are not doing any message mapping( in fact no IR objects, just ID) and also this facility allows the variable to used based on Payload or header, both of which does not contain the file name
(2) Use Adapter module ( big code & installation) .
Please let me know if any other solution for this specifically when i don't want to create dummy UDF. Also any help on Adapter module ( code) will be appreciated.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harry,
As Amit mentioned, go with a java mapping for this requirement.
Even though you are not using any ESR objects, mention the mapping in interface determination, it works. Code can be written in the java mapping with the file name which is read dynamically from file adapter.
Thanks,
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should create a UDF and use Dynamic Configuration.
Best Regards
Rodrigo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harry,
Just try select context object as shown below in receiver determination condition within ID.
Now use wild card character to determine the receiver business component.
as shown below
You need only one sender communication channel and multiple receiver comm channel one for each receiver. Configure each channel to point to target different target folder. Thus you will have multiple receiver agreement. Tick on ASMA file name in the sender channel. The only drawback in this scenario is that number of receiver comm channel increases but you need no IR objects or adapter module. Finally there will be places where you need to provide names of IR objects such as source service interface and namespace etc, there you put dummy values as "XYZ".
Regards
Anupam
Message was edited by: Anupam Ghosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
There are 3 options to achieve this req:
1) Use Java mapping
http://wiki.sdn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario
2) Adapter module
3) Scripts
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
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.