cancel
Showing results for 
Search instead for 
Did you mean: 

SAP.Connector.RfcMarshalException

Former Member
0 Kudos

Dear Community,

i try to get data from sap using the sap connector in my asp.net application.

Here is the code:


destination = New Destination()

destination.AppServerHost = "xx.xxx.xxx.xx"
destination.SystemNumber = "01"
destination.Client = "400"
destination.Username = "xxx"
destination.Password = "xxx"

bapi.Connection = SAPConnectionPool.GetConnection(destination)

Using bapi.Connection

          bapi.Rfc_Get_Data(x, x, x, x, x, x, x, x)

End Using

Unfortunately i got this Exception:

SAP.Connector.RfcMarshalException {"System exception thrown while marshaling RFCTYPE_BCD to .NET type."}

Can anybody tell me what this exception means?

Best regards

Lars

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Lars,

just a (.NET memory mngt) thought: did you try to retrieve the connection from the app pool within the using-block?

Thus:

Using bapi.Connection = SAPConnectionPool.GetConnection(destination)

bapi.Rfc_Get_Data(x, x, x, x, x, x, x, x)

End Using

Kind regards, William.