on 11-18-2010 11:06 PM
Hi
I have a scenario where in i have to populate the target segment multiple times based on quantity field LFIMG
Source structure in IDOC and target structure is XSD. In the following we need to have multiple occurances of S_LIN based on LFIMG. So if the value of LFIMG is 6 we need to have 6 occurances of S_LIN.
Source structure
E1EDL24 (segment)
LFIMG (field)
Target structure
ITEM (segment)
GSHL (segment)
S_LIN (segment)
Hello Kalyan,
You need to write an udf like this.
LFIMG (change context Queue)---->UDF ---> S_LIN
Variable : source and separator(",")
String[] values = source.split(separator);
for(int i = 1 ; i < values.length ; i++){
result.addValue(values<i>);
result.addValue(ResultList.CC);
}
Regards
Pothana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now I got ur actual question- U wanted based on value of length u wanted ur child node to be repeated--- For this requirement u have to use small UDF.
I was under impression that LFIMG node is repeating.
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 |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.