2005 Jan 24 4:17 AM
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
2005 Jan 24 1:33 PM
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.
2005 Jan 24 1:53 PM
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.
2005 Aug 08 10:58 AM
Hi,
Has anyone got a solution to this.
Pls let us know.
Regards,
Vivek
2005 Aug 08 1:00 PM
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