RunScenarioMacro at scenario level

This macro is used to run the scenario macro at scenario level.
For executing the macro, the value in the Command field must be specified in this format:
RunScenarioMacro(Macro, [Filter],[Skip if not present])
Note: The optional parameters are specified in [ ].

This table lists the parameters used to run RunScenarioMacro at the scenario level:

Parameter Name Description
Macro The name of the macro to be run.
Filter If specified, the filter condition is applied to the macro.
Note: This parameter is applicable only for the macros that use the filter condition.
Skip if not present The macro step is skipped if the macro named in the step is not available or disabled. Possible values:
  • True
  • False
Note: 
  • If the macro name is an application variable and the application variable does not exist, the macro step is also skipped (when the value is set to True).
  • If a macro step is skipped, the related information is displayed in the log and the macro step execution is successful.

This table lists examples of RunScenarioMacro at the scenario level:

Requirement Syntax
Run the scenario macro “InitFinanceScenario” for the current cycle period and scenario. RunScenarioMacro("InitFinanceScenario","","").
Run the scenario macro “ClearFcstMeasures” for the current cycle period and scenario, passing the filter "[DPLS_HUNITS] > 0". RunScenarioMacro("ClearFcstMeasures" ,"[DPLS_HUNITS] > 0","").
Run the scenario macro “InitFinanceScenario” for the current cycle period and scenario. The macro is skipped if not present.