Show TOC

 Setting Up REM Heuristics

Both of the REM basic heuristics consist of three function modules. The first and the third function modules are responsible for the preparation and follow-up of the heuristic run and are therefore identical in both heuristics. The second module describes the actual heuristic run and contains the planning algorithm; this module is different in both heuristics.

Module /SAPAPO/COLLECT_DATA_REM_HEUR

This module collects the master data and movement data necessary for repetitive manufacturing, and transmits this to the module, which contains the planning algorithm.

If the heuristic starts with the resources, the system first of all determines all products that can be produced on the specified resources. Then it checks whether the products can also be produced using other, unspecified resources. If other products can be produced on these additional resources, it checks whether these products can be produced in other resources. It repeats this process until a closed quantity of resources and products to be planned is defined.

Note Note

The heuristics can also start with the products. When determining the scope of planning, the system proceeds in the same way.

End of the note.

Then the system determines the master data and transaction data necessary for the REM heuristics, for the resources and product/location combinations. This can be, for example, production process model, rate, requirements, stocks, receipts, resource schedule and so on.

If you want to program a heuristic with your own algorithm, you can copy this module directly, without changing it.

Module /SAPAPO/REM_PLAN_TEMPLATE (multi-resource planning even) or /SAPAPO/REM_PLAN_WAVE (multi-resource planning with primary resource)

This module contains the actual planning algorithm; you can copy it and adjust it to match your requirements.

Note Note

The module /SAPAPO/REM_PLAN_WAVE is relatively complex; only use it as a template it you have sufficient experience with SAP Systems. The module /SAPAPO/REM_PLAN_TEMPLATE on the other hand, is deliberately simple and can act as a template for programming your own algorithm.

End of the note.
Module /SAPAPO/CREATE_SCHED_REM_HEUR

This module updates the results of the planning run in the liveCache, that is, it creates, changes or deletes planned orders.

First of all, the system deletes all orders, which were already available before the planning run with the REM heuristic, and which were not firmed. It then updates the schedule proposal for orders to be scheduled finitely. It then updates the schedule proposal for orders not to be scheduled finitely.

If you want to program a heuristic with your own algorithm, you can also copy this module directly, without changing it.

Note Note

For exact technical information see the online documentation on the individual function modules.

End of the note.