搭配部分 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 中必須有替代變數。如果您傳送的替代變數不存在或拼字錯誤,命令將會失敗。