cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Server: Output param does not return data to SAP program

Former Member
0 Kudos

I'm using RFC Server and trying to get a result returned in the form of an output parameter.

I can return data in tables without a problem, but a simple import paramater is a problem.

e.g. ABAP Program

Call Function Get_DATA destination XYZ

importing

yerror = yerror

tables

data = itab_data.

.NET Console Application

protected override void Get_DATA (string YERROR,

ref Y_DETAILSTable Y_DATA)

{

YERROR = "TestData";

}

Y_DETAILSTable was generated by the SAPProxy

Is this a known issue? Is there any resolution?

Regards,

Lavaughn

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I've resolved this issue.

Former Member
0 Kudos

Hello,

An output parameter in C# has the keyword out, and the method should look like:

protected override void Get_DATA (out string YERROR,

ref Y_DETAILSTable Y_DATA)

{

...

}

Please make sure that the parameter YERROR is declared as EXPORTING in the correspoding ABAP function interface.

Regards,

Guangwei Li