Skip to Content
0
Jun 11, 2012 at 01:13 PM

RFC Lookup with XSLT: ArrayIndexOutOfBoundsException

274 Views

Dear experts,

I am doing an RFC lookup from XSLT mapping.

I am mapping to an ORDERS iDoc and I need to look up values in table MVKE for each position of the iDoc.

So for each material the lookup needs to be done.

I got the Java code from this page:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14?QuickLink=index&overridelayout=true&5003637166260

If I only have one material in my source XML and create an iDoc it is working fine, the correct MVKE value I need is looked up.

If I have more than one position (more than one material) in the source XML I get the error:

javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException: 5930

at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:250)

at com.sap.aii.ib.server.mapping.execution.AbstractMappingTransformer.transform(AbstractMappingTransformer.java:174)

at com.sap.aii.ib.server.mapping.execution.XSLTMapping.executeStep(XSLTMapping.java:80)

at com.sap.aii.ib.server.mapping.execution.Mapping.execute(Mapping.java:60)

at com.sap.aii.ib.server.mapping.execution.SequenceMapping.executeStep(SequenceMapping.java:40)

.....

What am I doing wrong?

Thank you for any idea on this.

Best regards,

Peter