Skip to Content
0
Former Member
Dec 11, 2004 at 08:34 AM

Bapi_Salesorder_Getlist return no items

136 Views

When calling the Bapi_Salesorder_Getlist from .NET Connector but got no items return.

I can browse the order for customer 1012 in SAPGUI.

If the problem is caused by the searching parameters?

Please check the code for me.

Thanks!

Orders.SAPProxyOrders proxyorders= new Orders.SAPProxyOrders(cs);

// call the RFM method on the proxy

Orders.BAPIRETURN Return0=new Orders.BAPIRETURN();

Orders.BAPIORDERSTable Sales_Orders=new Orders.BAPIORDERSTable();

try

{

proxyorders.Bapi_Salesorder_Getlist("1012", "", "", "", "", "", "", "*", out Return0, ref Sales_Orders);

}

catch(SAP.Connector.RfcCommunicationException exp)

{

MessageBox.Show(exp.Message);

return;

}

catch(Exception exp)

{

MessageBox.Show(exp.Message);

return;

}

this.labelResultNumber.Text=Sales_Orders.Count.ToString();