Skip to Content

JCO$ConversionException: (122) JCO_ERROR_CONVERSION

Hi SCN ppl,

I am facing the below issue when data is sent to RFC . Data is failing in PI with below error.

com.sap.engine.interfaces.messaging.api.exception.MessagingException: 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: Number 240000 cannot be encoded as a BCD of length 5 with 0 decimal places at field

I can see in RFC the above field as type decimal and at source i am maintaning as string.

Note: I have imported standard RFC.

Can anyone suggest what should be done.

Thanks,

SARIKA

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 12, 2017 at 02:12 PM

    Hi Sarika,

    If I understand your error correctly, you must find out if number 240000 is correct from the business perspective. If yes, then the field in RFC should be changed (it should accept bigger decimals), otherwise you should contact people from the sender system side and inform them that they send an incorrect value.

    Regards,

    Andrzej

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Andrzej,

      we have two scenarios , sync and async . Sync is a standard one and because of some problem we shifted solution to Async.

      So here for request part we have not chnaged anything even in PI. For response we have changed to XI proxy.

      so when we publish MA's (data) from CLM to ECC in Async case the message is processed to target (ECC) where as when we do it in sync we are are facing the error mentioned below.

      I am facing the below issue when data is sent to RFC . Data is failing in PI with below error.

      com.sap.engine.interfaces.messaging.api.exception.MessagingException: 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: Number 240000 cannot be encoded as a BCD of length 5 with 0 decimal places at field

      I can see in RFC the above field as type decimal and at source i am maintaning as string.

      Note: I have imported standard RFC.

      Can anyone suggest what should be done.