cancel
Showing results for 
Search instead for 
Did you mean: 

JCO$ConversionException: (122) JCO_ERROR_CONVERSION

Former Member
0 Kudos

Hi all,

trying to call a BAPI using the RFC adapter I get the exception

[code]com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Number 0000000000844.000 cannot be encoded as a BCD of length 13 with 3 decimal places at field ENTRY_QNT[/code]

The field ENTRY_QNT is data element ERFMG, which is domain MENG13 which has

- No. characters 13

- Decimal places 3

- Output Length 17

So I thought "0000000000844.000" should be the required representation of that number. Since it failed I have tried the representations "0000000000844", "0000000000844.000", "000000000844,000", "0000000000844,000", "0000000844,000", "000000844,000" but I always get the same result.

Connection test on RFC destination AI_RUNTIME_JCOSERVER is successfull.

Any idea?

Thanks

Rainer

Accepted Solutions (1)

Accepted Solutions (1)

henrique_pinto
Active Contributor
0 Kudos

Hey Rainer,

have you tried it without left zeros?

Since it is a quantity value, it would be possible that it can't handle left zeros.

Just use FormatNumber standard function with value as (#############.###).

Regards,

Henrique.

Zilch
Product and Topic Expert
Product and Topic Expert
0 Kudos

That's it! Without the leading zeroes it works.

Thanks a lot

Rainer

Answers (4)

Answers (4)

former_member189354
Contributor
0 Kudos

Hi,

Try to check RFC interface (wsdl tab) encoding in XI Integration builder. Try to delete the encoding and try it. Probable this might be helpful..

Regards,

Daniel.LA

prateek
Active Contributor
0 Kudos

Hi Rainer,

Try to use "FormatNumber" standard function in your message mapping and see if that helps. Source>foramtnumber>Target

Refer this

Regards,

Prateek

prabhu_s2
Active Contributor
0 Kudos
Zilch
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for your input.

No dumps in st22. All error information is in the communication channel monitoring.

The RFC sender adapter basically works. Calling other function modules is successful.

Regards

Rainer

prabhu_s2
Active Contributor
0 Kudos

check for any dumps in st22