cancel
Showing results for 
Search instead for 
Did you mean: 

Line item in PO cannot be deleted if GR or IR already processed

Former Member
0 Kudos

Hi Gurus,

It is possible to have an error message if the line item in PO cannot be deleted if GR or IR already processed?

Thanks,

Marina

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Marina,

First of all why you want to have an error message while deleting line item in PO after GR/IR done. When an IR posting has been done the procurement cycle already finished and the order amount has been already credited to vendor account and ready for payment so even if you delete the PO line item there will be effect in payment process.

But if you try to delete the PO line item before invoice booking then system gives you an error message and shows that the deletion function not possible for GR stock.

Hope this helps you.

Thanks.

Former Member
0 Kudos

Hi  Abhishek Aro,

We want to have this error message to inform the end user not to delete the line item because this item have already processed both GR and IR. it is possible to have this error message?

I already tried to delete the line item with GR or IR and it gives an error message. We also want this error message if already processed both GR and IR.

Thanks

former_member182673
Active Contributor
0 Kudos

You have to create a custom message via user-exit, I don't think there is any standard message available for this requirement. However there is a catch. Deletion is only possible when GR & IR matches for both qty & value. If there are differences, then anyway the system will not allow deletion of the said PO line. So when you create this custom message you have also check whether GRs & IRs posted on the said PO line is matching for both Quantity & Value. This check can become a treacherous path for failure as the PO history gets built-up with hundreds of GRs & IRs over time. So there is a risk here too.

former_member218071
Active Contributor
0 Kudos

Hi Marina,

Yes SAP allows to delete the PO line when GR/IR has been completed for archving purpose. Refer Note 457511

Use Badi 'ME_PROCESS_PO_CUST' to restrict user from deleting the PO line if GR/IR exists for the item

Regards, Rakesh

JL23
Active Contributor
0 Kudos

set the message 06 115 to 'E'

esther_hernanz
Contributor
0 Kudos

Hello Marina,

When all the procurement process is finished, it must be possible to delete the PO item (for example, for archiving purposes).

You can see the on-line help on that matter:

"You cancel items in a purchase order by deleting them.
Please note that an item may only be deleted if it is closed (that is to say , there is no outstanding quantity to be delivered or invoiced).
Items are regarded as closed if, for example:

· the ordered quantity (or more) has already been delivered
· the ordered quantity has been invoiced in full
· no related follow-on processes (such as reservations) are active in the stystem."

So if you have already received the goods and posted the invoice, the deletion of the item will have no effect. The procurement process has been completed.

If however you try to delete the item after GR but before invoice receipt, the procurement process is not complete, therefore the error 06 115 will occur.

Also note that the item will be marked as deleted, but not actually removed from the system, it will still be available for reporting.

I hope this helps,

Esther.

Former Member
0 Kudos

Dear Marina

Use Badi 'ME_PROCESS_PO_CUST' and do the enhancement. Thus you would be able to set the error message for the same.

Hope this helps!