Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_CHANGE_PO messages

former_member569532
Participant
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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 

0 Kudos

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.

0 Kudos

Hi Anu,

There is a data available for PO item in tables tab 'POITEM'. Did you check that?

VenkatRamesh_V
Active Contributor
0 Kudos

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.