Skip to Content
0
Former Member
Nov 12, 2009 at 04:43 PM

Message Mapping Issue

27 Views

Hello All,

I have a requirement where I am unable to get exact value where needed from idoc

idoc

---

--Field1

--Field2

---Field3

---Field4

</Idoc>

I need to map Field1 equals to A then I need to pass Filed3 value where Filed1 and Field 3 are multiple Occurance..

There might be possible to having only Field1 value and no Field3 value... I wrote a User DF but I am geting Outbound array error.

MappingTrace mapTrace = container.getTrace();

for(int i=0;i<a.length;i++)

{

if(a<i>.equals("A"))

{

mapTrace.addWarning(" Value for" +A<i>);

mapTrace.addWarning(" Value for" +Field2.value);

}

}

I tried with i but its throwing outbound error as there are no field2 values for some Field1 values..

Please help.

Rajeev