on 12-07-2009 9:22 AM
Hi All,
I am developing a scenario where I am picking files from NFS and putting in FTP.
For this I am using only the ID and no IR content.
So far so good.
But Now we have a requirement to dynamically extract the target folder names from the File name.
e.g
Sourc File: ABC_FN_PQR
Folder name shouild be FN
For this the solution would be UDF.
But now my question is that where do i put this UDF as there is no IR at all.
Please suggest.
regards,
Piyush
May not be possible to execute such a scenario.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just ASMA setting will do the needful. Are you planning to rename your target file name. If yes then only you will require UDF.
Update: Since your directory name will be taken from source file name then you have to use mapping for this, else it will not be possible.
I don't know if creating a new module for this will help you solve the issue, but in that case rather creating adapter module, mapping will be easier.
Regards,
Sarvesh
Edited by: Sarvesh Singh on Dec 7, 2009 3:04 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can't you use mapping? Is there ay specific reason not for using it?
I can understand that you just want to send the file as it is so there is no need of mapping, but your requirement makes a need to use the message mapping. So you have to decide. Other then this I have already suggested about adapter module vs mapping.
As you don't have data structure defined and mapping,its not posible for XI to interpret the fields in your file.
If the souce file name is to be set to target file, you can use ASMA without mapping. But in your case as you need to get the file name from payload it is not possible without mapping.
Hey Piyush,
Try this. Create a dummy interface and write a Java Mapping. Access the ASMA parameters in the Java mapping. This way you do not need to create a specific structure in IR. Just any dummy interface will do.
Refer to this page of Help portal for more info on ASMA in java mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
Regards,
Sanjeev.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.