on 04-25-2008 3:27 PM
hai friends
iam doing idoc to file scenario
in that
iam getting some segments like this
<seg>
<lgort>aaaa</lgort>
<msgrt>abdbacd</msgrt>
</seg>
<seg>
<lgort>bbb</lgort>
<msgrt>abdbacd</msgrt>
</seg>
<seg>
<lgort>ccc</lgort>
<msgrt>abdbacd</msgrt>
</seg>
i want the ouput like this
<seg>
<lgort>aaaa,bbb,ccc</lgort>
<msgrt>abdbacd</msgrt>
</seg>
how can do this one
iam wite onw udf for conctinate but
still iam getting multiple segments like this
<seg>
<lgort>aaaa,bbb,ccc</lgort>
<msgrt>abdbacd</msgrt>
</seg>
<seg>
<msgrt>abdbacd</msgrt>
</seg>
<seg>
<msgrt>abdbacd</msgrt>
</seg>
what can i do for this
can any body help me.
with regards
srikanth vipparla.
Hi
if you want the structure of your target as given below
<seg>
<lgort>aaaa,bbb,ccc</lgort>
<msgrt>abdbacd</msgrt>
</seg>
use the standard concat function to concat all the values in a single string and then map it to the target side.
Thanks
Rinku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srikanth,
1) I think you mapped seg of Target directly to seg of Source .
2) Pleas Map Target seg field with any field whose occurance is 1..1.
e.g. your upper parent node. or if , message or message1 node exits.
3) Your UDF is write.
4) Make sure that your target seg field occures only one time.
I think this will solve your problem.
Regards,
Rohit.
Reward points if useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
write a UDF with whole queue (radiobutton on the right side in the popup when creating).
You will get all values for an element as a string-array.
Loop over the array and concatenate.
addValue(concatenatedString).
regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
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.