Skip to Content
author's profile photo Former Member
Former Member

BAPI_PO_GETITEMS not executing for given Plant.

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.??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 27, 2012 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.