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:
要定义替代变量:
从主页中,依次选择工具和变量。
在变量页面上,单击替代变量。
