on 07-13-2009 12:49 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.