CopyCyclePeriodData parameters

This table lists the parameters used to execute the CopyCyclePeriodData macro:
Parameter Description
Source Cycle The Cycle from which the measure data is copied.
Source Cycle Period The Cycle period from which the measure data is copied.
Note: If this value is not specified, the current Cycle period for the specified Cycle is considered. If there is no Cycle period with Running status, an error message is displayed.
Source Scenario Name The Scenario name from which the measure data is copied.
Source Item Level The Item Level in the Source Cycle period which matches the base Item Level in the destination (current context) Cycle Periods Item hierarchy. The data from the Source Item Level is copied to the base Item Level of the Destination (current context) Cycle Period. The matching of nodes is based on the name of the item, since code lists, hierarchies or configuration versions can differ.
Note: If this value is not specified, the base Item Level (level to store scenario values) of Source Cycle period is considered.
Source Location Level The Location Level in the Source Cycle period and Source Module which matches the base Location Level in the destination (current context) Cycle Periods module Location hierarchy. The data from the Source Location Level is copied to the base Location Level of the Destination Cycle Period. The matching of nodes is based on the name of the location since code lists, hierarchies or configuration versions may differ.
Note: If this value is not specified, the base Location Level of Source Cycle period is considered.
Source Calendar Level The Calendar Level in the Source Cycle Period which matches the Calendar Level in the Destination (current context) Cycle Period. The data from the Source Calendar Level is copied to the base level of the Calendar in the Destination Cycle Period. The matching of nodes is based on the name of the calendar since code lists, hierarchies or configuration versions may differ.
Note: 
  • If this value is not specified, the Source Cycle Period base Calendar level (level to store scenario values) is considered.
  • If the Enable Telescopic option is enabled for the destination cycle, only the matching periods are copied.
Source Measure code The measure to be copied.
Note: If this value is not defined, all published, subscribed and internal measures including business metrics for this module (Source Scenario) are considered.
Item Hierarchy node The item hierarchy selected for copying.

If ‘Use Destination Hierarchy’ = False or is not defined:

  • The selection of item hierarchy refers to the nodes in the Item hierarchy of Source Cycle period and must exist in the Source cycle period.
  • If the ‘Item hierarchy node’ is located above the ‘source Item level’, the nodes below the specified node are copied to the matching base hierarchy nodes in the destination cycle period.
  • If the ‘Item hierarchy node’ is located below the ‘source Item level’, the ‘Item hierarchy node’ is aggregated to ‘source Item level’ and copied to the matching base hierarchy node in the destination cycle period.
  • If the ‘Item hierarchy node’ is Null or not defined, all the nodes displayed for the user at the specified level in the Source Cycle Period are copied (If the specified source level is same as the level at which the scenario values are stored, the iconst is also copied).

If ‘Use Destination Hierarchy’ = True:

  • The selection of item hierarchy refers to the nodes in the Item hierarchy of the Destination Cycle Period and must exist in the Destination cycle period.
  • All the base nodes at or below the ‘Item hierarchy node’ in the destination cycle period are matched with the nodes at the ‘source Item level’ in the Source cycle period and copied.
  • If ‘Item hierarchy node’ is Null or not defined, all the base nodes displayed in the destination Cycle Period are matched with the nodes at the ‘Source Item level’ in the Source cycle period and copied (For base level, the iconst is also copied).
Location hierarchy node The location selected for copying.

If ‘Use Destination Hierarchy’ = False or is not defined:

  • The selection of location hierarchy refers to the nodes in the location hierarchy of Source Cycle period and must exist in the Source cycle period.
  • If the ‘Location hierarchy node’ is located above the ‘source location level’, the nodes at the Source location level below the specified node are copied to the matching base hierarchy nodes in the destination cycle period.
  • If the ‘Location hierarchy node’ is located below the ‘source location level’, the ‘Location hierarchy node’ is aggregated to ‘source location level’ and copied to the matching base hierarchy node in the destination cycle period.
  • If the ‘Location hierarchy node’ is Null or not defined, all the nodes displayed at the specified level in the Source Cycle Period are copied (If the specified source level is same as the level at which the scenario values are stored, the Iconst is also copied).

If ‘Use Destination Hierarchy’ = True:

  • The selection of location hierarchy refers to the nodes in the location hierarchy of the Destination Cycle Period and must exist in the Destination cycle period.
  • All base nodes at or below the ‘Location hierarchy node’ in the destination cycle period are matched with the nodes at the ‘source location level’ in the Source cycle period and copied.
  • If ‘Location hierarchy node’ is Null or not defined, all base nodes displayed at the destination Cycle Period are matched with the nodes at the ‘Source location level’ in the Source cycle period and copied (For base level, the Iconst is also copied).
Note: If the copied measure is of Transactional Data type, the location hierarchy node refers to the ‘To Location’ of the transactional data.
Period label The period duration to be copied.

If ‘Use Destination Hierarchy’ = False or Not defined:

  • The period label refers to the period label in the Source cycle period calendar and must exist at the Source cycle period.
  • If the ‘period label’ is located above the ‘source calendar level’, the values in the buckets at the Source calendar level below the specified period label are copied to the matching buckets’ nodes at the destination cycle periods 'calendar level to store scenario value'.
  • If the ‘period label’ is located below the ‘source calendar level’, the ‘period label’ buckets are aggregated to ‘source calendar level’ and copied to the matching the nodes at the 'calendar level to store scenario values'.
  • If the ‘period label’ is Null or not defined, all buckets displayed for user at the specified calendar level in the Source Cycle Period are copied to the matching buckets in the 'calendar level to store values' plans in the destination cycle period (If the specified level is same as the calendar level at which scenario values are stored, the pconst is also copied

If ‘Use Destination Hierarchy’ = True:

  • The period label refers to the buckets in the Destination Cycle period calendar and must exist at the Destination cycle period.
  • All buckets (at the calendar level to store scenario values at or below the ‘period label’ in the destination cycle period are matched to the buckets at the ‘Source calendar level’ in the Source cycle period and copied.
  • If ‘Period label’ is Null or not defined, all buckets (at the calendar level to store scenario values) visible to user at the destination Cycle Period are matched to the nodes at the ‘Source calendar level’ in the Source cycle period and copied (If the specified level is calendar level to store scenario values, the pconst is also copied).
Note: 
  • If the copied measure is of Transactional Data type, the Period Label refers to the ‘To Date’ (Received/End) of the transactional data.
  • If the copied measure is of Market Intelligence type, only the MI events within the date range (including Start date and End date) are considered.
Destination Measure code The measure of the destination cycle period.
Note: 
  • If this value is not defined, the value of Source measure code is considered.
  • If the Source measure code is null, the Destination Measure code must also be null.
Source Module The module in the Source Cycle Period containing the source scenario from which the measure to be copied.
Note: If this value is not defined, the destination module (context of destination scenario) is considered.
Overwrite Indicates if the data at the destination is overwritten with the source data. Possible values:
  • TRUE: The data at the destination is overwritten for the item, location, period selection. (When the source values are null the destination values are not overwritten).
  • FALSE: The data from the source is added to the data at the destination.
Note: By default, this value is set to FALSE.
Filter The filter used to determine the item and location selection. The relevant data of the item@locations is copied only if the filter criteria is met.

If ‘Use Destination Hierarchy’ is set to False, the filter is applied to the source cycle's item@locations at the specified Source (Item, Location) level for the period label at the Source Calendar Level.

If ‘Use Destination Hierarchy’ is set to True, the filter is applied to the destination cycle's item@locations at the base level for items and hierarchies and for the Destination cycle's period label at the Calendar Level to store scenario values.

Use Destination Hierarchies Indicates if the hierarchies in the destination cycle period are considered. Possible values:
  • TRUE: The ‘Item hierarchy node’, ‘location hierarchy node’ and ‘period label’ refer to the hierarchies in the destination cycle period.
  • FALSE: The ‘Item hierarchy node’, ‘location hierarchy node’ and ‘period label’ refer to the hierarchies in the source cycle period.
Note: The ‘Item hierarchy node’, ‘location hierarchy node’ and ‘period label’ refer to the hierarchies in the source cycle period.
The value for the Command field must be specified in this format: CopyCyclePeriodData (Source Cycle, [Source Cycle period], Source Scenario Name, [Source Item Level], [Source Location Level], [Source Calendar Level], [Source Measure code], [Item hierarchy node], [Location hierarchy node], [Period label], [Destination Measure code], [Source Module], [Overwrite], [Filter], [Use Destination Hierarchies]).
Note: The optional Parameters are specified in [ ].
Table 1. Example
Requirements Parameter
Copy all valid measures from Demand-Baseline in the cycle period Normal May11 at the source hierarchy levels "SKUs, "Locations", "Weeks" to the current scenario for all source items at all source locations for the source cycle period horizon. Includes iconst, lconst and pconst values when item, location and period parameter selection is not specified. CopyCyclePeriodData("Normal","May11","Demand-Baseline","SKUs","Locations","Weeks","","","","","","","","","")
Copy the BREV measure from Finance-Baseline in the currently running cycle period for Normal at the source hierarchy levels "Groups", "Regions", "Weeks" to the current scenario for all source items at all source locations for the source cycle period horizon. Includes iconst,pconst and lconst values when item, location, period parameter selections do not exist. CopyCyclePeriodData("Normal","","Finance-Baseline", "Groups", "Regions","Weeks","BREV","","","","","","", "","")
Copy all valid measures from Finance-Baseline in the currently running cycle period for Normal at the source hierarchy levels "Groups", "Regions", "Weeks" to the current scenario for GOO items (at source) at all source locations for the source cycle period horizon. Includes pconst,iconst values when location and period label parameter selections do not exist. CopyCyclePeriodData("Normal","","Finance-Baseline","Groups","Regions","Weeks","","GOO","","","","","","","")
Copy all valid measures from Demand-Baseline in cycle period Strategic Q1 11 at the base hierarchy levels of the source Cycle Period to the current scenario for all source items at all source locations for all base periods within the calendar period "FY 10" (at source). Includes iconst and lconst values when item, location parameter selections do not exist. CopyCyclePeriodData("Strategic","Q1 11","Demand-Baseline","","","","","","","FY 10","","","","","")
Copy the BREV measure from Finance-Baseline in cycle period Normal Apr11 at the source hierarchy levels "Groups", "Regions", "Months" to the current scenario for GOO items (at source) at US locations (at source) for all months within the source calendar period "FY 10". Values for the month are totaled from weeks, assuming that the calendar level to store scenario values is Weekly, for the source cycle period. CopyCyclePeriodData("Normal","Apr11","Finance-Baseline","Groups","Regions","Months","BREV","GOO","US","FY 10","","","","","")
Copy the BREV measure from Finance-Baseline in cycle period Normal Apr11 at the source hierarchy levels "Groups", "Regions", "Months" to the FREV measure for the current scenario for GOO items (in source) at US locations (in source) for all months within the period "Current Year" (in source). Values for the month are totaled from weeks, assuming that the calendar level to store scenario values is Weekly, for the source cycle period. CopyCyclePeriodData("Normal","Apr11","Finance-Baseline","Groups","Regions","Months","BREV","GOO","US","Current Year","FREV","","","","")
Copy the MI measure DPLS_MI from Finance-Baseline in the currently running cycle period for Normal at the source hierarchy levels "Groups", "Regions", "Weeks" to the current scenario for all source items at all source locations for the source cycle period horizon to the measure "BREV". This copies the MI measure values of DPLS_MI (which is a Market Intelligence measure) to the measure BREV.
Note: Events and notes are not copied.
CopyCyclePeriodData("Normal","","Finance-Baseline","Groups","Regions","Weeks","DPLS_MI","","","","BREV","","","","")
Copy the SOP_FUNITS measure from "Revised" in the Demand module for the currently running cycle period for Xpress (M) at the base hierarchy levels of the source Cycle Period to the current (Supply) scenario for all source items and source locations for the cycle period horizon. Includes iconst, lconst and pconst values as using base levels for the source when item, location parameter selections do not exist. CopyCyclePeriodData("Xpress (M)","","Revised","","","","SOP_FUNITS","","","","SOP_CUSTOMER_PSALES","Demand","","","")
Copy the BREV measure from SPlus-Revised in the currently running cycle period for Normal at the source hierarchy levels "Groups", "Customers", "Weeks" to the current scenario for all source items at all source locations where SPLS_STOCK_QTYOH > SPLS_STOCK_COVER for the cycle period horizon. CopyCyclePeriodData("Supply (W)","","SPlus-Revised", "Groups", "Customers", "Weeks", "BREV","","","","","","","[SPLS_STOCK_QTYOH] > [SPLS_STOCK_COVER]","")
Copy the BSELL measure from Finance-Baseline in the currently running cycle period for cycle Normal at the source hierarchy levels "Groups", "Regions", "Months" to the current scenario for destination Item "GOO" at destination location "US" for the destination period "Rolling Periods". CopyCyclePeriodData("Normal","","Finance-Baseline","Groups","Regions","Months","BREV","GOO","US","Rolling Periods","","","","","TRUE")

Copy the Order TRANSFER from Supply-Baseline in the currently running cycle period for cycle Normal at the source hierarchy levels "Groups", "Regions", "Months" to the current scenario for nodes under the destination Item "BRAND A" at destination location "US" for the destination period "Rolling Periods". This copies all Transactional Data where "to Location" has locations under "US" for "BRAND A" Items in the destination cycle period and which the “To Date” (Received/End Date) is within the Destination Rolling Period bucket.

CopyCyclePeriodData("Normal","","Supply-Baseline","Groups","Regions","Months","TRANSFER","BRAND A","US","","Rolling Periods","","","","TRUE")
Copy the Market Intelligence measure DPLS_FMI_EVENT from Demand-Baseline in the current cycle period for cycle Normal at the base hierarchy levels of the source Cycle Period to the current scenario for all source items at all source locations for all base periods for Events which start and end within the calendar period "FY20 M10" (at source). CopyCyclePeriodData("Normal","","Demand-Baseline","","","","DPLS_FMI_EVENT","","","FY20 M10","","","","","")