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 : Is there any BAPI to CANCEL / BLOCK a Purchase Order

Former Member
0 Kudos

hello everybody,

can anyone tell me if there is any BAPI to cancel or block a Purchase order.

Note : blocking of purchase order is done on item level of the PO.

Regards

Swanand

4 REPLIES 4

Peter_Inotai
Active Contributor
0 Kudos

I would try BAPI_PO_CHANGE, but I'm not sure it can cancel or block PO.

There is also BAPI_PO_RESET_RELEASE, but it happens header level, not item level.

Check the methods of Business object BUS2012 for details.

Regards,

Peter

Ps: If it helped, please press the star icon in the subject. Thanks.

Former Member
0 Kudos

Hello Peter,

I have given a similar solution to this question sometime back in the thread -

What I would like to find out is whether it is possible to cancel / block a PO at the Item level, i.e., does the functionality allow for this if we were to do it using the standard screens (ME22(N)) ?

Regards,

Anand Mandalika.

0 Kudos

Hi,

Has anyone got a solution to this.

Pls let us know.

Regards,

Vivek

Former Member
0 Kudos

Hello,

in BAPI_PO_CHANGE:

Field DELETE_IND in structures POITEM and POITEMX.

It's reference is to data-element ELOEK: Documentation to this:

<i>Text

Deletion indicator in purchasing document

Definition

Determines whether the item in the purchasing document is deleted or blocked.

Use

You can set the deletion indicator by choosing Edit -> Delete if:

You want to cancel an item

An item is closed and can be archived

You can set the blocking indicator by selecting the item and then choosing Edit -> Block if you do not want to allow subsequent functions for the item. Note that you must manually remove the indicator as soon as subsequent functions are allowed again.

Examples

You have entered a purchase order item by mistake. You cancel it by setting the deletion indicator.

A purchase order item has been delivered, invoiced, and paid for, and can now be archived. You can set the deletion indicator.</i>

Regards Wolfgang