cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Block 'Cancellation of STO'

riyamd81
Product and Topic Expert
Product and Topic Expert
0 Likes
385

Plant A(Requesting) to plant B(Supplying) STO scenario:

Plant A is creating a STO on 8th Dec for a quantity of 500 Pcs. On that date, plant B has no stock. So production order is generated and the delivery date is 16th Dec.

Now, on 12th Dec, plant A decides to cancel the STO but the production is already started in plant B.

How can we restrict the plant A to cancel the PO?

Accepted Solutions (0)

Answers (1)

Answers (1)

Suryaprakash13
Active Participant
0 Likes

Hi riyamd,

We can use the BADI "BD_MMPUR_FINAL_CHECK_PO" "Check of Purchase Order Before Saving" can be used to throw error when a Production process is started.

In the BADI first check whether it is an STO PO and a Block or Deletion process has occurred, if the above both condition are true then check whether any process with respect to current PO has happened, then throw some error message and block the saving of the PO.

OR

We can use the BADI "MM_PUR_S4_PO_OPEN" Open Purchase Order to make the PO to become as not editable, check whether any process with respect to current PO has been done then make the parameter ISREADONLY to True thus making the PO uneditable.
Check the above BADI documentation for more Info.


Hope this helps!!!!

Thanks and Regards,
Suryaprakash.