SAP Message C2146 - The production version used is not valid

Diagnosis
The production version selected is not valid. The production version islocked, your charge quantity area or your time period validity do notmatch the order data.

Procedure
Check the production version.
Also check whether the BOM usage, for the BOM used in the productionversion, is permitted for the desired application, which is maintainedin the order type.