Hi guys,
Something weird is happening.
I'm using a RFC lookup to get some parameters and I'm using the same generic UDF that I usually take on different projects.
But this time I'm getting the following error:
com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /ns0:Messages/ns0:Message1/MessageStatus/StatusInformation/Status. The message is: Exception:[java.lang.StringIndexOutOfBoundsException] in class com.sap.xi.tf._mmEOrdersRetailRequest_ method SAPRFCLookup$[RFC_Receiver_LookUp_SAP, MARA, MATNR EQ '000000000000000123
' , VPSTA, TST002, com.sap.aii.mappingtool.tf3.rt.Context@1f231f23]
Do you have any idea?
I've commented my RFCLookup code and the error jumps up on the getRfcAccessor line.
try {
// 1. Determine a channel (Business system, Communication channel)
com.sap.aii.mapping.lookup.Channel channel = com.sap.aii.mapping.lookup.LookupService.getChannel(BusinessService,CommChannel);
// 2. Get a RFC accessor for a channel.
accessor = com.sap.aii.mapping.lookup.LookupService.getRfcAccessor(channel);
The channel is well created on the IDirectory, associated with the correct BusinessSystem. I can check on the CommunicationChannel Monitoring that the channel opens the JCO connection correctly..
However if I change this RFCLookup by a JCOLookup everything works smoothly...
I've done this thousand times but now I'm not able to get the problem...
Can you guys help?