cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameter of table through .net connector

Former Member
0 Kudos

Hi,

I try to input a table to a RFC method.But the table parameter receives nothing.I don't know the reason.

code in VS2003 C#:

SAPProxy1 proxy = new SAPProxy1();

proxy.Connection = SAP.Connector.SAPConnection.GetConnection("CLIENT=800 USER=jyabap PASSWD=********* ASHOST=172.16.0.123 SYSNR=00");

ZRFC_VKORG ds_werks = new ZRFC_VKORG();

ZRFC_VKORGTable Werks = new ZRFC_VKORGTable();

ds_werks.Sign = "I";

ds_werks.Option0 = "EQ";

ds_werks.Low = "1000";

Werks.Add(ds_werks);

ds_werks.Sign = "I";

ds_werks.Option0 = "EQ";

ds_werks.Low = "1001";

Werks.Add(ds_werks);

proxy.Zrfc_Sd_Kpi_Delivery_Rate("","",out de_rate,ref Werks,ref Delivery_Detail);

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

please pay attention to your abap code.

the table parameters in RFC have header line, so you must use parameter[] to identify the table parameter, not parameter which means to a structure.

Answers (2)

Answers (2)

Former Member
0 Kudos

I have resolved this embarrassing problem.

Former Member
0 Kudos

Dear Wayne,

I am also facing this kind of problem. Can you help me how to solve this issue?

Regards,

prabakaran.k

Former Member
0 Kudos

Dear Wayne,

I am also facing this kind of problem. Can you help me how to solve this issue?

Regards,

prabakaran.k

Former Member
0 Kudos

Hi!

This may be a (very) silly suggestion, but perhaps you could try to open up the connection first... Or it's just because you did not include that part of code in here?

And by "not receiving data", you mean the parameter gets in SAP empty, or your "out" param is empty after?

Regards,

Michel