Skip to Content
avatar image
Former Member

RFC Lookups in SP10 RunTime exception

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 10, 2009 at 06:03 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 10, 2009 at 05:51 PM

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

    Regards,

    Prateek

    Add comment
    10|10000 characters needed characters exceeded