cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve sales Order details from BAPI_SALESORDER_GETLIST

Former Member
0 Kudos

Hi Experts,

I am using Visual Studio 2003 and SAP.Net Connector for Microsoft .NET 1.0.3 .

I need to get the details of sales order.Following is the code snip.

protected ConnectorDemo2.BAPIRETURN bapireturn;  /*Manually Added */
proxy.Connection =  SAP.Connector.SAPLoginProvider.GetSAPConnection(this);
proxy.Bapi_Salesorder_Getlist("0000000006","","","","","","0001","0",
out bapireturn,ref bapiordersTable1);

I already check records in SAP R/3 system for data Cust No=00000006 and Sales Org=0001.

Please let me know about out parameter and if anyone is having correct list of ref and out parameter.

Help will appreciated and points will rewarded.

Thanks

Sunil Pawar

Edited by: Sunil Pawar on Nov 26, 2008 1:54 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

To Solve the problem I created one custome RFC and call BAPI_SALESORDER_GETLIST in it and my problem get solved.

This is just work around but still not found why no data when using OUT parameter.

CALL FUNCTION 'BAPI_SALESORDER_GETLIST'

EXPORTING

CUSTOMER_NUMBER = Z_CUSTOMER_NUMBER

SALES_ORGANIZATION = Z_SALES_ORGANIZATION

  • IMPORTING

  • RETURN =

TABLES

SALES_ORDERS = Z_SALES_ORDERS

Thanks

Sunil Pawar

Former Member
0 Kudos

1- call your BAPI

2 - for each row call BAPI_SALESORDER_GETDETAILS....

Former Member
0 Kudos

oups.. I used the bad account