Skip to Content

BAPI_CHANGE_PO messages

Hi Experts,

I am using BAPI_PO_CHANGE to change the existing items in PO and to create the new line items.After updating the PO BAPI is returning the messages.But these messages is not giving the exact information from which item the error message is coming.But my requirement is to show exactly from which item the error is coming.Kindly any one advise how to solve this problem.

Thanks & Regards,

Anusha.B

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jan 04, 2015 at 11:56 AM

    Hi Anu,

    In Error message you view Field ROW.

    read itab into wa with index row . " get the error details of the internal table.

    Hope it helpful.

    Regards,

    Venkat.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 03, 2015 at 06:43 AM

    Hello Anu Gottumukka,

    BAPI_PO_CHANGE is executing for each item and after execution of BAPI for each item then check the IT_RETURN table .

    Loop the it_return table and IT_RETURN -TYPE field contains the message status and Message type will be S Success, E Error, W Warning, I Info, A Abort.

    Based on the out come of IT_RETURN -TYPE you capture the error items and update in the respective table and display it.

    Thanks and Regards,

    Madhukumar L

    Add comment
    10|10000 characters needed characters exceeded