08-27-2012 10:54 AM
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.??
08-27-2012 11:05 AM
Use conversion exit for LIFNR before passing the value to importing parameter VENDOR. Referring to your code, vendor code you are passing seems to be with 9 characters.
Regards, Vinod
08-27-2012 11:05 AM
Use conversion exit for LIFNR before passing the value to importing parameter VENDOR. Referring to your code, vendor code you are passing seems to be with 9 characters.
Regards, Vinod