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

BAPI_PO_CREATE1 - How to get error PO item number

All,

I am using BAPI_PO_CREATE1. When PO is errored out, RETURN structure returns PO number with list of errors and warnings.

It says, 'PO contains still faulty items' but does not return specific item number.

I need error PO item number too. Any help?

Thanks,

SKJ

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2008 at 04:04 PM

    Hello SKJ,

    Check the following fields on the BAPI return table structure:

    MESSAGE_V1

    MESSAGE_V2

    MESSAGE_V3

    MESSAGE_V4

    You may have some information regarding the line items.

    Thanks,

    Greetson

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2008 at 05:50 PM

    hi debug the bapi with the given input values....then it is very easy to find out the mistake where it was....did you used the commit work after the badi........

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2008 at 06:36 PM

    Hi,

    In the return internal table ..there is a column ROW which might have the line item..

    Thanks

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2008 at 10:30 PM

    In the RETURN table which is of BAPIRET2 structure, there are 2 fields PARAMETER, ROW. Parameter gives the Table name which has the error and the ROW field gives the row number in that particular table. for eg: PARAMTER = 'POITEM' and ROW = '2' means the error corresponds to line number 2 in the POITEM table.

    If these 2 fields are not populated, then it is an error in the header

    Hope this helps,

    Regards,

    Hari

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 06:08 PM

    All,

    Yes i found the field ROW in RETURN structure while debugging it keenly. However, it does not return the actual PO item number.

    Do we need to just assume that ROW = 2 indicates PO item 2 and so on?

    Thanks,

    SKJ

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 06:10 PM

    Hi,

    I think the row number should match the PO item number..

    THanks

    Naren

    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.