cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Lookups in SP10 RunTime exception

Former Member
0 Kudos

Hi all,

Find the error message I am Getting.

RuntimeException in Message-Mapping transformation: Exception:[java.lang.ArrayIndexOutOfBoundsException: 0] in class com.sap.xi.tf._MM_INT012_INVOICE_DET_ method doRfcLookup$[com.sap.aii.mappingtool.tf3.CBufIter@3ada2bc3, com.sap.aii.mappingtool.tf3.CBufIter@496f2d64, com.sap.aii.mappingtool.tf3.CBufIter@220d25e6].

My Input paramenters:

doRfcLookup(String[] Tax_amt,String[] DTL,String[] Recv_Sys,ResultList result,Container container):

Rfc connection:

Payload load = null;

try {

Channel channel = LookupService.getChannel(Recv_Sys[0], CHANNEL_NAME);

//Channel channel = LookupService.getChannel("ECC", CHANNEL_NAME);

RfcAccessor accessor = LookupService.getRfcAccessor(channel);

InputStream is = new ByteArrayInputStream(docReq.toString().getBytes());

XmlPayload payload = LookupService.getXmlPayload(is);

load = accessor.call(payload);

} catch (LookupException e) {

trace.addWarning("Error during lookup - " + e);

Quick reply would be appreciated.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Add More trace will get you to know at what step error occured

May be add mappingtrace which providesyouj more info at the mapping test tab

Input should be string if it is value type

Rajesh

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

I guess in the UDF, you should provide string input instead of string array.

Regards,

Prateek