Skip to Content
0

.Net connector throws RfcTypeConversionException: cannot convert Byte[] into BCD[7:2]

Dec 13, 2017 at 02:24 PM

54

avatar image
Former Member

Hi

we are using the .Net Sap connector to call BAPIs from our .Net application.

We used .Net Connetor 2.x in the past without issues.

We now switched to .Net Connector 3.x (64bit, v 3.0.19) and we now see the following issue with one of the BAPIs:

When we call Invoke() for one specific Z-BAPI, then this calls fails and the .Net Connector throws the following exception:

SAP.Middleware.Connector.RfcTypeConversionException with message text
"FIELD ZZBZHLGNET of STRUCTURE ZMODUS_VZZBEPP (SETTER): cannot convert Byte[] into BCD[7:2]"

This issue occurs only for one BAPI - all the others can be called successfully.

Can you please help?


Thank you

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Iftah Peretz
Dec 13, 2017 at 07:41 PM
1

Hi,

The fact this is happening for only one Bapi means that the problem is with the Bapi and not the connector, in my opinion.

Change the type you are passing to the Bapi that corresponds to the field ZZBZHLGNET of structure ZMODUS_VZZBEPP and ask your ABAP guy (if you aren't him) to see that the Bapi is similar to other working ones (RFC-able etc.) and to see what he can do with that structure.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

and "cannot convert Byte[] into BCD[7:2]" says all... (BCD = number of type P in ABAP)

0