
In the standard version of S/4HANA PP/DS, a range of heuristics is available for various tasks in Production Planning and Detailed Scheduling. A heuristic is defined through an algorithm whose process can be influenced, if necessary, by specific additional control parameters for the relevant algorithm.
It is possible to use SAP algorithms to define your own heuristics. You define heuristics in Customizing for Production Planning and Detailed Scheduling by entering a standard SAP algorithm and making your own settings in the additional control parameters. You can also use your own (user-programmed) algorithms to create heuristics, if you have integrated these algorithms in S/4HANA PP/DS.
Standard SAP Heuristics
Overview of Heuristics in Production Planning

You use heuristics for production planning to plan products in interactive planning or in the production planning run. The heuristics are divided into different groups:
The product heuristics can be entered in the product master and affect planning of this product in the planning run.
The planning run sequence is defined using the heuristics for process control that are specified in the initial screen for the production planning run. For example, product planning with components according to low-level codes results in a production planning run which is the same as planning in SAP S/4HANA MRP. Using the service heuristics that can be specified in the production planning run, you can execute other individual functions.
You can execute several heuristics, which belong to both production planning and detailed scheduling, for the same products in one planning run. The heuristics are executed in the sequence in which you entered them on the initial screen of the production planning run.
Product Heuristics
On the view Advanced Planning of the material master in S/4HANA, you specify a heuristic for product planning if the product is not to be planned using the standard heuristic defined in Customizing. In the planning procedure in Customizing, enter the standard product heuristic that you want to use to plan the products for which no heuristic has been defined in the product master.
Product heuristics can be entered in the product master and they then influence planning of this product in the planning run. In particular, special lot-sizing procedures can be implemented using these heuristics. The "Planning standard lots" heuristic is of particular significance: It corresponds to normal planning of a product using the lot size defined in the product master.

Reorder point planning can be mapped in PP/DS using the relevant heuristic. However, for materials planned using reorder point planning, the question arises if they should be planned in SAP S/4HANA and not transferred at all to PP/DS. Optimizing lot-sizing procedures are also mapped in PP/DS using a relevant heuristic.
If planning is to be executed using the continuous input / output function in the PDS, this can be achieved using the relevant heuristic in the product master.
Lot-Sizing Settings

You select the Use lot-sizing settings from heuristic option on the Lot Size tab in the heuristic. This indicator is not set by default. However, special product-specific parameters (for example, the exact remaining lot size or the parameters for planning safety stock) are still read from the location product master, even if you select this indicator.

Production Planning (PP) heuristics contain all strategy parameters required for each heuristic on the Strategy tab.
The heuristics with the strategy settings specified are used as part of a production planning run. If no strategy profile is maintained, the global parameters of the strategy profile defined in PP/DS are used (Planning Run field). This strategy profile and its parameters are also used as part of interactive planning (Interactive Planning field).