cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically Delete Or Cancelling Open Purchase Orders After A Period of time

amoschabwinja
Explorer
0 Kudos

Hi

We are requesting assistance with a SAP config to automatically delete any PO or STO that will remain open for a period in excess of three months.

Accepted Solutions (0)

Answers (5)

Answers (5)

Vaibhav-Mishra
Active Participant

Hello Amos,

You can try with BAPI (FM) : BAPI_PO_CHANGE. Align with ABAP. I hope this will help you out.

Vaibhav

BijayKumarBarik
Active Contributor

PO is a committed purchasing document with all purchasing conditions and you can design your custom solution with BAPI to set deletion flag in PO if PO is open for 90days (with a batch job to run daily) from its creation date!

But better let buyer/purchaser decide and monitor PO to set deletion flag in PO manually. Once deletion flag set in PO- vendor should receive notification that the current PO no longer valid and PO DELETED/CANCELLED.

amoschabwinja
Explorer
0 Kudos

Hello Bijay.

Thank you for your swift response. Is there any standard BAPI available to achieve this?

Regards

Amos

DominikTylczyn
Active Contributor

Hello amoschabwinja

You need a custom report to do that. However I would advise to use stock/requirements list, the MD07 transaction to nail down obsolete purchase orders using MRP exceptions. Then responsible people can make a decision to close/delete the purchase orders or not. That should be a daily routine of an MRP controller.

Best regards

Dominik Tylczynski

Ahmadfurqoni68
Participant
0 Kudos

Hello,

In standard there is no tcode. As an alternative you can run archiving object in preparation step only, to set deletion flag for certain period of time. System will read the document date compare with current date then will set deletion automatically. You can set background job for this using dynamic variant in program, with current date - XX days. So you will have auto deletion of PO

Vaibhav-Mishra
Active Participant
0 Kudos

Hello Amos,

There is no standard feature available to delete PO after a certain period of time. You need to develop a program to achieve it. Be aware that PO is a legal document so you must include necessary conditions in PO and inform vendor if PO is no longer valid.

Vaibhav

amoschabwinja
Explorer
0 Kudos

Hello Vaibhav

Thank you for the response will engage the ABAP team so they can help us on this request. Is there any standard BAPI which can help us?

Regards

Amos