Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC - returning a complex data structure - called from .NET

Former Member
0 Likes
399

hi

am attempting to create an RFC to be called from a .NET app. If the structure being returned (export parameter in RFC) is a flat structure, it works fine. If we attempt to return a more complex structure (ie - a structure within a structure), then we get the follwoing error on the .NET side:

at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)

at SAP.Connector.Rfc.RfcClient.RfcInvoke(SAPClient proxy, String method, Object[] methodParamsIn)

at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)

at SAPConnectorProxy.BAPITwoProxy.Zpr3_Bapi_Test2(ZPR3_TEST_RATE_REQUEST Request, ZPR3_TEST_RATE_REPLY& Reply) in BAPITwoProxy.cs:line 76

at CPR.Apps.PR3.PRI.Services.WebServiceTests.BapiTest2ShouldWorkOk() in webservicetests.cs:line 385

any ideas?

thanks/dave

1 REPLY 1
Read only

Former Member
0 Likes
280

Check this

I am not sure if the .NET adaptor is capable of handling nested structures for RFCs. Keep us posted on final outcome of the query.

Message was edited by:

Kareemullah Shah Quadri