cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the value of an Export variable Of Rfc enabled Function Module

Former Member
0 Kudos

Hi all,

I am using a RFC enabled function module in a portal application using

SAP .net connector 2.0,the internal table which i defined in function module

is retrieved in my proxy filter and i bind that filter to a table view control.

but i also defined a export variable in function module i want to read the value of the variable.

In my example i defined a filter for that variable,

but when i execute the function it asks me for parameters .

can anybody help me that how can i read the value of the export variable of RFC enabled function module and how can i place that value to a input

field.

Regards

Sanjay.

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

I don't fully understand your question, but I think you want to databind an out-parameter of a method to a windows forms control.

You can do this programmatically:

string result;

...

proxy.Method(..., out result);

this.textBox1.Text = result;

Or you add a proxy field and "wire" it to the pameter by setting it as "DefaulValue". Then you can databind the TextBox's Text property to the proxy field.

Proxy fields are described in NCo online help.

Former Member
0 Kudos

Hi Reiner,

Yes exactly you understood my question,when i am not using any out-parameter of a method but there are 6

in-parameters I can directly execute the method by

this.sapProxy11.RNO = InputField1.Value;

this.sapProxy11.DCODE1 = InputField2.Value ;

this.sapProxy11.PSNO1 = InputField3.Value ;

this.sapProxy11.FDate1 = InputField4.Value ;

this.sapProxy11.FTime1 = InputField5.Value ;

this.sapProxy11.TTime1 = InputField6.Value ;

this.sapProxy11.Zconf();

DataBind();

but when i used an out-parameter of same method which

is already "wired" to the pameter by setting it as "DefaulValue" and use same above statements,

at compile time it gives me an error

"No overload method for 'zconf' takes '0' arguments.

Regards,

Sanjay

reiner_hille-doering
Active Contributor
0 Kudos

There seems to be still a parameter that is not removed by "parameter wirering". Please open SAPProxy1.cs and search for the overloads of "Zconf". Maybe you just post both here.