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
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
Add a comment