Skip to Content
0
Former Member
Nov 09, 2010 at 08:56 AM

How to pass parameter of table through .net connector

267 Views

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);