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

Error in BAPI for ME21N

Hi,

I have developed a Z program for ME21N by using BAPI( BAPI_PO_CREATE1). When I executive it always shows

"Please enter items first. No instance of object type PurchaseOrder has been created. External reference: Document contains no items".

Would you suggest how can I solve this problem

Best Regards

Mahabub

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2011 at 04:44 AM

    Hi mahaboob,

    Before creating Z program , first execute Function module itself in se37 by passing required parameters with help of functional consultant and if any errors occurs , functional consultant can easily idetifies and resolves it. After successfully execution, develop the Zprogram.

    Place the parameters what you are passing , so that i can help you if you need.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2011 at 03:31 AM

    i think you are creating POs without items or you havent mapped item table to BAPI...

    regards

    Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 19, 2011 at 03:49 AM

    It means that you are creating PO without specifiying the Items, PO must contain atleast one items. You Check your POITEM table. whether contains data or not ?

    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.