/SAPAPO/CREATE_SCHED_REM_HEUR - Generate/Change/Delete Orders from REM Heuristics

General Material Data   General Data in Customer Master  
This documentation is copyright by SAP AG.

Functionality

The function module updates the scheduling proposal generated by the planning algorithm in the liveCache.

The following import parameters are transferred:

IV_START_TIME

,,Beginning of the period of time for which the heuristic run is being carried out.

IV_END_TIME

,,End of the period of time for which the heuristic run is being carried out.

IV_SIMID

,,GUID for the plan version.

IV_SIMSESSION

,,GUID for the simulation version.

IV_APPLICATION

,,States the application in which the function module has been called.

IT_IO_REC_UNFIRMED

,,Existing receipts that are not fixed before the heuristic run.

I_DIALOG_FLG

,,States whether the heuristic has been started in dialog mode or as background processing.

IS_HEUR_SETTINGS

,,Heuristic parameters

IT_SCHED_AONEW

,,Scheduling proposal for orders that have been generated by the heuristic run.

The function module runs through the following steps:

First, all orders that existed before the heuristic run and were not fixed are deleted.

Then the scheduling proposal for the newly generated orders, IT_SCHED_AONEW, is updated in the liveCache.

The entries in the IT_SCHED_AONEW table are processed sequentially.

Orders that can be planned finitely are updated first. There is usually one entry in the IT_SCHED_AONEW table for each period in the planning period.

Each entry consists of an AONEW table, which contains the data for the orders that are to be scheduledin the respective period, as well as the SCHEDCONTROL and SCHEDPARAM control structures. These structuresare used for determining the scheduling type. You can find details on the control parameters for these structures in the following include: /SAPAPO/CONSTANTS_SCHED_PARAMS.

Orders that cannot be scheduled finitely in the planning period are updated last. There is also an entry for this in the IT_SCHED_AONEW table.

The following export parameters are transferred:

ET_CAPREQS

,,Newly created / deleted / changed capacity requirements

ET_PEGIDS

,,Material- /location combinations for which orders have been created / changed / deleted. These do not necessarily have to agree with the objects contained in the CT_AONEW or CT_AONEW_OVER tables.

Example

Notes

Further information


Parameters

ET_CAPREQS
ET_PEGIDS_CHANGED
ET_PEGIDS_PLANNED
IS_HEUR_SETTINGS
IT_IO_REC_UNFIRMED
IT_PRODUCTS
IT_SCHED_AONEW
IV_APPLICATION
IV_END_TIME
IV_SIMID
IV_SIMSESSION
IV_START_TIME
I_DIALOG_FLG

Exceptions

FAILED

Function Group

APO/SAPLPT_HEUR

General Data in Customer Master   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.


Length: 2911 Date: 20120525 Time: 022240     triton ( 189 ms )