Skip to Content
0
Former Member
Aug 27, 2012 at 09:54 AM

BAPI_PO_GETITEMS not executing for given Plant.

141 Views

hello all,

i am stuck with one bapi. not able to understand the reason for wht is happening,

m using BAPI BAPI_PO_GETITEMS.

However this bapi is running sucessfully, when i provide P.O No.(purchase order)

here is the code snippent.(case 1 when p.o no as input)

CALL FUNCTION 'BAPI_PO_GETITEMS'

EXPORTING

PURCHASEORDER = '0440000002'

* DOC_TYPE =

* DOC_DATE =

* PUR_GROUP =

* PURCH_ORG =

* VENDOR =

* PLANT =

WITH_PO_HEADERS = 'X'

DELETED_ITEMS = 'X'

ITEMS_OPEN_FOR_RECEIPT = 'X'

TABLES

PO_HEADERS = V_BAPIEKKOL

PO_ITEMS = V_BAPIEKPOC

RETURN = V1_BAPIRETURN

.

all tables are filled wth this purchase order details.

case 2. when Purchase order no is not provided as input.

rather vendor no. is given as input.

code snippet.

CALL FUNCTION 'BAPI_PO_GETITEMS'

EXPORTING

* PURCHASEORDER =

* PUR_GROUP =

* PURCH_ORG =

VENDOR = '000010658'

*PLANT =

WITH_PO_HEADERS = 'X'

DELETED_ITEMS = 'X'

ITEMS_OPEN_FOR_RECEIPT = 'X'

TABLES

PO_HEADERS = V_BAPIEKKOL

PO_ITEMS = V_BAPIEKPOC

RETURN = V1_BAPIRETURN

.

then the tables are not filled and BAPIreturn tables is filled with error msg.

here is the error msg.

E |W5037|No purchase orders satisfying selection criteria

wht are the reasons..why all the purchase orders with vendor no. 000010658 are not getting filled.??