Heuristic for Multi-Resource Planning (Even) 
Purpose
You use the heuristic multi-resource planning (even) (/SAPAPO/REM_HEUR_TEMPLATE), if you produce several products in repetitive manufacturing from the same resources (lines) and prefer one specific resource because of costs, or other reasons.

This heuristic is deliberately kept simple and does not take into account parameters in the planning algorithm such as the planning time fence and the production horizon. Also, it does not provide for any splitting of lots.
Therefore, you should use this heuristic primarily as a template for programming heuristics with your own algorithm. Do not use it unchanged in your operative planning.
For further information on adjusting the heuristic, see
Prerequisites
See
Planning Heuristics in Repetitive Manufacturing (REM Heuristics) .Process Flow
When using this heuristic, the system tries to distribute the planned orders across all the resources as evenly as possible. If there are no resources available for a period, the planned orders are moved to free resources in the previous period. If no free resources have been found for remaining requirements before the order start date, even in the previous periods, a planned order is not created, resulting in a shortage.
The procedure runs as follows: