cancel
Showing results for 
Search instead for 
Did you mean: 

conctinating problem

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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