cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Bapi_po_Getdetail return values

Former Member
0 Kudos

We have developed a web service in asp.net to get the details of a particular purchase order number calling Bapi_po_Getdetail. The input parameters that we pass are:

string ITEMS = “X”

string PURCHASEORDER= “<purchase order number>”

But when we debug and check the return values from the bapi, BAPIEKPO Table doesn’t have any data, it is null.

Could someone help us, please?

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

Please initialize the BAPIEKPOTable bedore call. Passing null allways returns null.

NCo:

string ITEMS = “X” 
string PURCHASEORDER= “<purchase order number>”
BAPIEKPOTable result = new BAPIEKPOTable();
...
proxy.Bapi_po_Getdetail(ITEMS, PURCHASEORDER, ref result);

Soap Processor / Web Service Wizard

string ITEMS = “X” 
string PURCHASEORDER= “<purchase order number>”
BAPIEKPO[] result = new BAPIEKPO[0];
...
proxy.Bapi_po_Getdetail(ITEMS, PURCHASEORDER, ref result);

Former Member
0 Kudos

Thanks a lot for the solution!

reiner_hille-doering
Active Contributor
0 Kudos

Could you please mark the question at answered? (Set the "Ansswerd Star" to my answer before.)