cancel
Showing results for 
Search instead for 
Did you mean: 

RFCLookup with INT1 or INT2 as input

former_member916538
Discoverer
0 Kudos
270

Hi Experts,

I am getting this error when trying to access the FM with input MENGE. They have recently changed the FM to have this field's data type as INT2 to accept values more than 255 but I am receiving this error in PI when doing the RFC lookup.

JCO_ERROR_CONVERSION: Cannot convert a value of '300' from type int to INT1 at field MENGE'. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Cannot convert a value of '300' from type int to INT1 at field MENGE'.

Any help would be appreciated. Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

JaySchwendemann
Active Contributor
0 Kudos

Hmm, I'm not overly confident that an INT1 or even INT2 would be the right format for a quantity at all, but that's another story 😄

Try to (force) reload of the RFC metadata. In worst case this means selecting the RFC again in Message Mapping and Operation Mapping. Saving and activating. If you have XML Validation active, also make sure you cycle that (stop channel, turn off, activate, start channel, stop channel, turn on, activate, start channel). Surely there are more elegant ways to that, but sometimes you just need to get the job done 😄

I would not opt for string conversion or the like. You get from bad to worse, e.g. with negatives, rounding, bla bla

Cheers

Jens

anupam_ghosh2
Active Contributor
0 Kudos

Hi akaylah.tan,

Send the value as string.

In target ECC server ABAP code can convert the value to number.

This needs agreement from ABAP team.

Regards

Anupam