cancel
Showing results for 
Search instead for 
Did you mean: 

Close all opened PO

former_member303755
Participant
0 Kudos

Hi Experts,

What is the T-code to close all open PO in one shot for a particular plant ?

Regards,

Phalgun patel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Normally to close PO ,users have to set "Delivery Completion Flag" in PO.

You can do the same for several POs using Tcode-MASS

Select Object-(BUS2012-Purchase orders) > Execute > Purchase Order Item > Give the reference of all POs and line item number(which requires to short-close) > Execute > Select Field "Deivery Completed" > set "Y" flag to all and then Execute.

It will then help to short close all POs through Mass transaction.

Note also you need to shortclose PO by selecting deletion Indicator="L" if the GRN is not made.

Hope this will resolve your query.

Regards,

Sandesh Sawant

former_member303755
Participant
0 Kudos

If partial GR is made then how to close the PO. Since i tried through T-code = mass for closing partial PO then i got the following errors: ( Partial PO mean 400 kg PO was there out of 200kg was GR and balance open PO of 200kg i tried to closed through mass t-code but following error is coming)

4500017177 : Quantity delivered differs from qty. invoiced (Function not possible)

4500017177 : Purchase order still contains faulty items

4500017177 : Instance 4500017177 of object type PurchaseOrder could not be changed

4500017177 : Requisition quantity 200,000 KG open again

sjeevan
Active Contributor
0 Kudos

Since you're saying a GR is done for 200kg already, I would suggest you to look at the invoice doc. for that PO if it's not 200kg then you cannot close the PO. But PO GR qty = Invoice qty you can all close those POs.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I hope u have already the list of open PO's.

Use MEMASSPO transaction and filed EKPO-LOEKZ , u need to set deletion indicator for the line items in the PO.

Thn only the PO's are closed because if u set only delivery completed indicator manually in PO. System still allow to do GR and it takes out the delivery completed indicator if u do the partial GR.

IF u do full ordered qty GR delivery completed indicator will be thr.

So set deletion indicator for the PO line items in MEMASSPO transaction . Field value L should be used for deletion when u r changing

Former Member
0 Kudos

hello there,

An ABAP program can be written to close all the open POs in the system. This program can check the Delivery Completed status in the item detail level of PO(table - EKPO). This status can be ckanged by the ABAP program to close the POs. Hope this is helpful.

naveenthe482
Explorer
0 Kudos
We have an ABAP program to check the delivery completed status in the item detail. But it's not working for Purchase orders which are in HOLD. We have thousands of such HOLD Purchase orders which are incomplete and not getting closed using ABAP program. Please advise
former_member131774
Contributor
0 Kudos

I don't think SAP predelivery such functionality, you could write your own program to achieve this.

Former Member
0 Kudos

use mass maintenance T-code MEMASSPO, set "delivery completion indicator"

Umakanth R