on 11-09-2010 8:56 AM
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);
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have resolved this embarrassing problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.