on 08-13-2008 4:39 PM
Well i am a liitle confused: i have following mapping for target field:
/MT_NC_ART_edit/ARTRecordSet/ARTDetailsStruct/sAfoBez=replaceString(oneToMany(concat([delimeter=]/ZBC14_ARTIKEL/IDOC/ZBC14_ARTIKEL/ZBC14_ARTIKEL_VORNR/SAFOBEZ=, const([value=:]))), const([value=null]), const([value=]))
Actually i need the case now that when getting no value for sAfoBez there should be a ":" in target field. Therefore i tried with mapWithDefault giving a default-value. But funny thing is XI does not take it!
i tired this:
/MT_NC_ART_edit/ARTRecordSet/ARTDetailsStruct/sAfoBez=replaceString(oneToMany(concat([delimeter=]mapWithDefault([default_value=:]/ZBC14_ARTIKEL/IDOC/ZBC14_ARTIKEL/ZBC14_ARTIKEL_VORNR/SAFOBEZ=), const([value=:]))), const([value=null]), const([value=]))
The UDF inside the mapping is:
String[] store = new String[1];
for(int i=0;i<SAFONR.length;i++)
{
store[0] = store[0]+SAFONR<i>;
}
result.addValue(store[0]);
Can somebody give a hand?!
br
Hi Fritz,
I couldn't understand your mapping. At what point are you using the 'mapwithdefault' function and whr does the UDF come into picture?
Idealy it should take whatever constant you specify when the desired field is not present. Its a simple mapping.
Can you elaborate it a little it?
Regards,
Akshay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.