01-03-2015 5:39 AM
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
01-03-2015 6: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
01-04-2015 6:24 AM
Hi Madhukumar,
Thank you for your reply.
BAPI_PO_CHANGE is executing the program at PO level.It is not returning the item number in the message.But in my program i need to display error messages corresponding to item.
Rgds,
Anusha.
01-04-2015 6:47 AM
Hi Anu,
There is a data available for PO item in tables tab 'POITEM'. Did you check that?
01-04-2015 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.