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_PO_CHANGE

Former Member
0 Kudos

Hi all, When I use BAPI_PO_CHANGE to delete PO items, I meet some problem.

My problem is that: when I use this BAPI to delete PO items, there are messages:

1, PO could not be changed using the Enjoy-BAPI

2, Purchase order still contains faulty items

3, Quantity delivered and invoiced smaller than quantity ordered

In ME23N, I delete the PO item manually, it has a warning message 'Quantity delivered and invoiced smaller than quantity ordered', but I still can delete it. When using BAPI, I can't delete. Can we ignore the warning message, and delete the PO using the BAPI?

4 REPLIES 4

Former Member
0 Kudos

Anyone can help me?

Can I use BAPI_PO_CHANGE to delete PO items even through there is warning message, for example 'Quantity delivered and invoiced smaller than quantity ordered', I can delete it manually in ME23N, but can not delete using the BAPI.

Former Member
0 Kudos

I have resolved it.

0 Kudos

Hello Yu Huali,

I am having the same issue as described above and noticed you have a solution. I hope you can share your resolution. Thank you.

Former Member
0 Kudos

Hello ,

you need to pass

PO_ITEM-DELETE_IND = 'X'

PO_ITEMX-DELETE_IND = 'X'

and then commit work if no error encountered.

regards

Johnny Taghoy