Skip to Content
author's profile photo Former Member
Former Member

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


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

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

Can you please help?

Thank you

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 13, 2017 at 07:41 PM


    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.