Calling Replenishment Engine Overview
This section describes the process of calling the Replenishment Engine using a macro to generate planned orders for an item and location combination from the specified start period and upto a specified horizon.
Pre-requisites:
The user must have access to the macro as well the replenishment engine defined for the current Cycle. Else, this error is displayed by the macro on execution:
Replenishment engine {0} is not accessible to user {1}
Data security rules are applicable for the current user executing the macro, when determining the item and the location elements to be passed to the Replenishment Engine for calculation. For example:
- CallReplenishmentEngine ("Brand A", "US", "", "")
- If the current user's data security does not allow the user to view Brand A or base items linked to BRAND A in the item hierarchy, the selected is not passed to the engine.
- If the user can access a subset of base element linked to Brand A, the schedules are calculated for these items only.
- If the user's data security does not allow the user to view US or base locations linked to US in the location hierarchy, the selected data is not passed to the engine.
- If the user can access a subset of base locations linked to US in the location hierarchy, the schedules are calculated for these locations only.
Calling the Replenishment Engine
The basic sequence to call the replenishment engine using the CallReplenishmentEngine macro command is as follows:
- Determine the replenishment engine defined for the current cycle.
- Determine the items and the location for scheduling.
- Process any other macro parameters
To call the replenishment engine: