on 02-07-2008 10:07 AM
ha i friends
i got one requirment in that my source file is like this
<name>xyz</name>
<group>a1,a2,a3,a4</group>
<type>abc</type>
then i need to convert it into target system as like this
<name>xyz</name>
<group1>
<group>a1</group>
<group>a2</group>
<group>a3</group>
<group>a4</group>
</group1>
<type>abc</type>
so what can i do for this
the group values are not constant those depending on the
inputs.
can any body help me
iam trying to write one UDF function
but iam not getting the out put
pls any body can help me
pls
many thanks with advance
Edited by: srikanth vipparla on Feb 7, 2008 11:18 AM
dear srikant,
your problem can be solved by using context handling.
in context handling u have to use two node function
1) remove context
2)splitbyvalue()
for this please check the link
/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
if u want more document please give ur Email Id
I have some document which is realy helpfull for u....
regards,
navneet
Email-navneet_sumit@satyam.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
iam writing UDF like this
it is working
but it is giving one value onle
ex: sri,kanth
in this iam getting
sri only
iam not getting
kanth
finally i want out put in this format
sri
kanth
the code is
String [] vals = null;
for (int j=0; j<a.length; j++){
vals = a[j].split(",");
result.addValue(vals[j]);
}
so pls help me
Hi srikanth ,
this is not possible with graphical mapping.
You have to use XSLT, JAVA or ABAP Mapping.
It is just possible in graphical mapping if you know how many target field have to be generated. If you knwo it is always e.g. "four" like in you sample.
You could dupicate the subtrees in in the target message.
In the first mapping write the entire queue into the gobal container element.
In mapping 2,3 and 4 read the global container an give back the entries that you splittet befor in a udf.
regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
the value which is coming in Group node is always 4 or the occurance of it not known.
If it is only 4 then u can use the dublicate target node function create 4 target node using that function and use the substring function to fetch the required value.
this can be done by right click on target node and select dublicate node.Create it 4 times and use that.
Thnx
Chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.