Symptom
While trying to cancel a Production Order, an error message 'Action failed; error while closing lot' appears and it is not possible to cancel the Production Order.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to Production Control workcenter.
- Navigate to to Production Orders view.
- Search for the relevant Production Order.
- Click Cancel button, then the mentioned error would occur.
Cause
The system is working as expected. When canceling a Production Order, the finish action is triggered for all tasks. In the "Disallow Production Task Execution" section of the relevant Production Order, if either checkbox is selected, the tasks cannot be started, resulting in the inability to cancel the Purchase Order.
Resolution
To cancel the Production Order, please remove the checkbox indicators.
Keywords
Production Order, Action failed; error while closing lot, Cancel, Disallow Production Task Execution , KBA , AP-PE-ORD , Production Order , How To