Skip to Content
0
Jul 17, 2013 at 12:35 PM

Segment is not getting created in correct order

17 Views

Hello All ,

I am having issue of segment getting created in correct order .Its a SHPMNT to VDA4913 mapping . In target there are 4 ,715 segment getting created based on the condition.

I have wrote a udf with 3 inputs. 3 input has diffrent condition .

udf code :


int var1=a.length;

int var2=b.length;

for(int i=0;i<var1;i++){

for(int j=0;j<var2;j++){
if(b[j].equals(a[i] )){


result.addValue(c[j]);

}
else {
result.addValue(ResultList.SUPPRESS);

}

}

}

in First input -- value is 10, 20, 30 .

2nd input -- 00, 10 , 20 , 30 .

When 1st and 2nd input matched 3rd input should consider.

Now 3rd input also have condition. When one X field value is S and Y field value is 2 , then 3rdt input should consider.

This mapping is absolutely working fine if there is only 010. But if there is more than 010 i.e 020 , 030 etc. then the probelm occur.

Suppose 3rd input is generate for 020 , then the segment is getting created for 010 . but the segment should get created in 010.

Please help me to solve this issue.

Thanks in advance