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

Related questions

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.