12-13-2017 2:24 PM
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
12-13-2017 7:41 PM
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.
12-13-2017 9:31 PM
and "cannot convert Byte[] into BCD[7:2]" says all... (BCD = number of type P in ABAP)