on 2020 Jul 15 12:39 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.