DeletePlanningEngine macro
The DeletePlanningEngine macro deletes the Planning Engine and clears the data from the specified planning engine. You can delete specific planning engines or multiple planning engines based on the Category, Cycle, or Status parameter. When deleting Planning Engines by Cycle, only those with the Master status are considered. This macro is executed at a system level.
For executing the macro, the value for the Command field must be specified in this format:
DeletePlanningEngine([Planning Engine name], [Category],[Stop on End Status], [Cycle], [Status])
This table lists the parameters used to execute the DeletePlanningEngine macro:
Parameter Name | Description |
---|---|
Planning Engine name |
The name of the Planning Engine to be deleted. Note:
|
Category |
If specified, the Planning Engine with specified Category is deleted. Note: If no category
is defined (Null), Category is ignored.
|
Stop on End Status |
Stop on End Status decides the status of the macro which cause the macro to stop. Stop on End Status can be set as specified:
|
Cycle | The name of the Planning Engine Cycle from which the planning engines are to be
deleted. Note:
|
Status | The status of the Planning Engine to be considered. Possible values:
Note:
|
This table lists the examples of the DeletePlanningEngine macro:
Requirement | Syntax |
---|---|
Delete all planning engines | DeletePlanningEngine("","","") |
Delete the planning engine "Weekly Supply Plan FY19 W29" | DeletePlanningEngine("Weekly Supply Plan FY19 W29","","") |
Delete all planning engines with the Category "Weekly Supply" | DeletePlanningEngine("","Weekly Supply","") |
Delete all planning engines in the SCO cycle excluding the Planning Engine with the Master status. | DeletePlanningEngine("","","","SCO","") |
Delete all planning engines with the Completed status in the SCO cycle. | DeletePlanningEngine("","","","SCO","Completed") |