Enterprise Profitability and Cost Management 支援在下列「PCM 代理程式」命令中使用替代變數:
當您使用替代變數時,可以將包含替代變數的使用者要求儲存為工作,以便稍後使用。這些替代變數會在執行時期針對 POV 進行解析,並據此執行工作。
例如,如果您想要每月執行計算工作,可以使用如 &currPeriod 的替代變數,並在使用者介面中設定其值。在後續的月份中,只要您更新替代變數,就無需更新已儲存工作的 POV 參數或任何自動化程序。
使用替代變數時,請記住下列幾點:
替代變數應以 & 開頭。
如果不是以 & 開頭,它將會被視為一般參數。
如果替代變數不存在或傳送了無效的名稱,該工作將會失敗並發生錯誤。
使用替代變數的範例使用者要求:
Calculate Model &Model povs &CurrYear::&CurrMonth::Actual::Working
Copy pov source pov '&CurrYear::&SourceMonth::Actual::Working' destination pov '&DestYear::&DestMonth::Actual::Working' pov delimiter '::' copy type 'INPUT' create destination pov 'true' source cube 'PCM_CLC' destination cube 'PCM_REP'
clear point of view &DestYear:&DestMonth:Actual:Working cube PCM_CLC clear input true clear allocated true clear adjustment true and save job as 'Clear FY16 Mar POV'
Delete POV &CurrYear::&DelPovMonth::Actual::Working pov delimiter '::'
Note:
若要定義替代變數,請執行下列動作:
從首頁中,依序選取工具、變數。
在變數頁面上,按一下替代變數。
