on 01-29-2014 6:06 AM
HI Experts,
Appreciate your inputs on below scenario:
File (FTP) to File (NFS) its a pass through scenario and no mapping required.
We need to identify target directory based on file name from source. We can read the file name using ASMA but how we can use this to decide which target directory it needs to place files on.
3 types of file names can come in and 3 different targets are established.
Thanks much in advance.
Hi Jan - This can even be possible through receiver determination - Please check for Anupam Ghosh reply in the below thread.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Variable substitution will not work for this scenario. We can use the below header parameters in the variable substitution
sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,message_id
But this can be achieved using the combination of variable substitution and dynamic configuration bean.
Detail is there in the below blog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For this u can create single field data type for sender and reciver and do the Message mapping...
In this Message Mapping Use UDF of Dynamic Configuration.
AS per your requirement you can modify your Code.
FYR::: Please follow below urls.
Let me know if you still face an issue..
Thanks,
Sreenivas veldanda.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jan,
I am not sure but you can try on following prospective.
you can use variable substitution and refer that variable to file name from header part
and then use that variable in directory name
Regards
GB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Use either AM or JM to define target names dynamically.
Check this (below articles are for renaming files but u have to change just 2-3 lines in below codes to define target directories dynamically):
Adapter module:
Java mapping:
http://wiki.sdn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario
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 |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.