将替代变量与某些 Enterprise Profitability and Cost Management 命令结合使用

Enterprise Profitability and Cost Management 作业支持将替代变量作为作业参数。您可以使用替代变量,当 EPM Automate 在命令执行过程中运行这些作业时,会解析这些替代变量。

用于运行以下命令的作业支持替代变量:

与这些命令结合使用的所有参数(必需和可选)都支持替代变量。

指定命令中的替代变量

要在命令中使用替代变量,参数值需以 &(“与”符号)字符开头。例如,在以下 calculateModel 示例命令中,您可以使用替代变量 &currYear&execType 替换实际值 FY22ALL_RULES

  • 替代变量的示例命令:epmautomate calculateModel FY22::Jan::Actual::Working "10 Actuals Allocation Process" ALL_RULES clearCalculatedData=true executeCalculations=true optimizeForReporting=true comment="Running all rules to calculate a POV"
  • 具有替代变量的示例命令:epmautomate calculateModel &currYear::Jan::Actual::Working "10 Actuals Allocation Process" &execType clearCalculatedData=true executeCalculations=true optimizeForReporting=true comment="Running all rules to calculate a POV"

Note:

  • 只有以 &(“与”符号)字符开头的参数值才会被视为替代变量。
  • 替代变量必须存在于 Enterprise Profitability and Cost Management 中。如果传递的替代变量不存在或拼写错误,则命令将失败。