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:
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