Ayan,
Is it possible to have production order quantity that is calculated based on component availability?
In general, planning engines of any kind, including MRP planning engines, do not produce production orders. In most planning solutions, Production order quantities are not specifically calculated to meet any special rules, they are normally copied from values found in existing planned orders, or the quantities are set using some manual process.
same for planned order.
In general, MRP planning engines (including the version contained in ECC Production Planning) do not check the availability of components during the planning of a parent part.
MRP runs via low level code, beginning from the highest level of the BOM (level 0), and works its way completely through each level before proceeding to the next lower level of a BOM. The total demand for any given component material is not known until the exploded demands from ALL parent parts have first been calculated. At the point when MRP is creating a supply element (e.g. planned order) for a parent part during this process, the total amount of information required to perform a logical availability check of components is not available to the planning engine.
Over the years, many people have developed workarounds for this basic limitation of MRP, using multi-step processing (e.g., run MRP and then run one or more subsequent processes, which sometimes includes the use of custom created enhancements) that give them planning results that are more satisfactory. The other experts have alluded to a couple of the more common ones, above.
There are other planning engines that can be configured to create ONLY supply elements (planned orders) that are 'feasible'. Feasibility checks commonly include the availability of components. SAP has implemented two additional planning engines; that can probably be configured to meet your requirements. They are called "Capable to Match" and "Optimizer". These only exist in APO, SAPs Advanced planning solution.
Comparison of the Planning Methods - Supply Network Planning Run - SAP Library
Best Regards,
DB49