cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of Purchase order line items after MIRO transactions.

Former Member
0 Kudos



HI MM experts,


In standard SAP process, for purchase order line items after completion of MIGO and MIRO transactions,


System allowed to do the deletion of that line items in purchase order.


my first question is "IS IT A STANDARD PRACTICE ?"


AND


if yes , then I want to restrict the same,




how to proceed for the same ?


Regards


Amit




Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Yes this is a std behavior, if you want to restrict ask your ABAPER to put some piece of code in exit "EXIT_SAPMM06E_017"

Answers (4)

Answers (4)

former_member387101
Discoverer
0 Kudos

Hi, How are you?.

If after deleting a position from a purchase order that already has MIGO and MIRO completely complete, you want to reverse the deletion of that position with ME22N, is it possible?

I have tried to revert but the error 06744 appears: Position 00010 of document 5200000253 is now fully delivered. (To reverse I chose the only position that has the purchase order, I selected it and pressed the "Unlock / Cancel deleted" icon.).

Thank you, very much.

adam_kavanagh
Active Participant
0 Kudos

Hi Amit,

The system is working as designed.

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

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."

As you have already received the goods and posted the invoice, the
deletion of the item shall 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
occurs.

Hope this helps,

Adam.

former_member183424
Active Contributor
0 Kudos

Its a standard behavior,

You can't restrict it in standard configuration.

You have to use any BADI or User exit.

Please check the similar thread

Prasoon
Active Contributor
0 Kudos

Hi,

  As per standard deign, system will allow to delete the PO once the procurement scenario is completed with GR and IR. The system is designed in that way in order to allow the PO archiving.

Refer the note: 457511 - FAQ: Purchase order change and goods receipt in purchasing  Question num: 2

  If you want to restrict the same before completing the procurement scenario, then you may use the messages 06 115 to 06 119

  If the procurement scenario is completed and you want to restrict PO deletion, you may go for development. You may check the BAdI: ME_PROCESS_PO_CUST

Regards,

AKPT