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

BAPI_PO_CREATE1 - Error Handling

Hi,

During creation of a POs using BAPI_PO_CREATE1, if there is a error in the first PO then the BAPI is not processing the next records. Only the errors of the first record is repeated for all the iterations. I found that this happens only if a Purchase requisition is given during the creation.

Please provide your valuable inputs on this.

Thanks,

Vijay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2011 at 04:24 AM

    Hi Vijay,

    can you place the code how you are using bapi, and if any record fails you can move it to the BAPIRETURN table and you can process next record.I can help you on this issue if you plac the code and flat file input and what error it is showing.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 14, 2011 at 05:48 AM

    Hi Vijay,

    If the same error is getting repeated, I believe it's the internal tables (Table paramaters) & header data that is not being cleared by you.

    To verify put a breakpoint at the loop start & at the FM BAPI call. Ensure that your data in the internal tables are cleared at the start of every loop pass and the data for the next PO's are then passed. There is a possibility that your data might be incorrect and hence, the same error.

    Finally, I've used BAPI_PO_CREATE1 with PR reference and found absolutely no issues in subsequent loop passes after an error. Also, clarify the error with a Functional Consultant or you can post your code and error.

    Regards,

    Pranav.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2011 at 11:57 AM

    Hi,

    Plase follow the link

    bapi creation

    Regards

    kk

    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.