cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict deletion of a operation in the maintenance order

syed_yousuf
Participant
0 Kudos

Hi,

Can anybody tell me how to restrict deletion of operation in the maintenance order if the operation has purchase requisition generated from it and the PR has RFQ and PO. However, it should allow deletion of operation when there are no RFQ and POs created against the PR generated from the operation.

Regards,

Syed

Accepted Solutions (1)

Accepted Solutions (1)

syed_yousuf
Participant
0 Kudos

Thanks Paul and Nic for your responses.

The logic is implemented with user exit IWO10009 and referred the below thread.

https://blogs.sap.com/2014/12/08/prevent-operation-changes-after-pm-order-release-user-exit-iwo10009...

Answers (2)

Answers (2)

paul_meehan
Advisor
Advisor
0 Kudos

Hi,

You could add some validation via exit CNEX0039.

If the validation fails then issue a error message and set exception parameter

REJECTED to prevent deletion of the component.

-Paul

NTeunckens
Active Contributor
0 Kudos

I think you will need to do some ABAP Development in the "WORKORDER_UPDATE" BAdI to prevent the Deletion from happening in such case.