Skip to Content
author's profile photo Former Member
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2004 at 03:15 PM

    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 comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2004 at 10:52 PM

    I've resolved this issue.

    Add comment
    10|10000 characters needed characters exceeded