on 04-21-2008 6:57 AM
hai friends ,
iam doing idoc to mdm secinario in this
iam sendig idocs to R3 system.
my doubt is
in my idoc some segments are repetativly comming in the same segment .
for example
<seg>
<f1>abc</f1>
</seg>
<seg>
<f1>xyz</f1>
</seg>
<seg>
<f1>asdf</f1>
</seg>
<seg>
<f1>lkj</f1>
</seg>
like this
iam getting the segments
these segments are randamly chaenging
means some times it may have 1 segment next time it may have 5 or 6 and some time it may not have also
finally
it may have to convert into one segment and send to mdm system.
for example the above format should conver into like this
<seg>
<f1>abc,xyz,asdf,lkj</f1>
</seg>
like this i want to get the out put
how can i do this
in idoc structur i have segment like this
<seg>
<f1></f1>
</seg>and it occusrence is 9999.
pls help me is it posible to convert in to above format
pls help me it's orzent.
with regards
srikanth vipparla.
Hi Srikanth,
Try this UDF
Please make sure the following Cache and Argument Values:
Cache: Queue
Argument:
Argument: a
Result: result
Code:
String s = a[0];
for(int i=1;i<a.length;i++)
{
s= s + "," + a<i>;
}
result.addValue(s);
Please update me if any clarifications are required.
Thanks,
Boopathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai friend
ok but iam getting this message in the out put file
<E1MAKTM SEGMENT="">
<MSGFN>srikanth,[Ljava.lang.String;@6430d9,[Ljava.lang.String;@6430d9,[Ljava.lang.String;@6430d9</MSGFN>
</E1MAKTM>
or else
if did this kind of mapping pls tell me how to the mapping
pls hel me
with regards
srikanth vipparla.
Edited by: srikanth vipparla on Apr 22, 2008 9:51 AM
Hi ,
There must be some standard function to do this job,,,,,,,,
if you dont want to think so much,,,,,wht you can do is ... create a UDF....in UDF just get the Queue of entries in tag <f1> and arrange it as required and send to target node..
Best Regards,
Sushil Hadge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Refer this document.....
Page 81 - 95...
Best Regards,
Sushil.
Hi Srikanth,
You can use Node functions for this.
Regards,
srikanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
iam not finding the format by function in my mapping functions
and still i have one doubt on this
xi can recive multiple segments into mapping or not
because iam using one segment but it is having occurence is 9999.
in one idoc iam getting multiple segments that depends on data.
let it confoem me pls.
withregards
srikanth vipparla
Edited by: srikanth vipparla on Apr 21, 2008 8:30 AM
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.