on 2015 Jun 02 10:16 AM
Hi All,
I am working in BPC 10 NW
We have a specific requirement for RunAllocation logic
We have 2 dimensions named H_COST_CENTER and H_FUNC_AREA. Both these dimensions are linked via a Property named 'FUNC_AREA' in the H_COST_CENTER dimension.
We need to allocate X value from Cost Centres CC1 to CC12, CC13,CC14
In our Run Allocation Logic, we need to make the H_FUNC_AREA dynamic.
Sender CC is defined by %Q1% and Receiver CC by %Q3%
We need to know how the DIM H_FUNC_AREA should be written; where we tried to link to the property of Cost Centre dimension
Tried the bekow statement in the logic, but failed
*DIM H_FUNC_AREA WHAT = %Q1%.[FUNC_AREA] ; WHERE = %Q3%.[FUNC_AREA] ; USING = <<<;
*FOR %Q1% = CC1
*FOR %Q2% = 2014.01
*FOR %Q3% = CC11, CC12, CC13
*RUNALLOCATION
*FACTOR = USING
*DIM TIME WHAT=%Q2%; WHERE = <<<; USING = <<<;
*DIM H_FUNC_AREA WHAT = _________ ; WHERE = _________ ; USING = <<<;
*ENDALLOCATION
Request clarification before answering.
Hi Arun,
Vadim is correct...The above syntax wont work....and as per my knowledge we cant use dimension property values in script logic.
If your hard coding the costcenter, you might as well hard code the value of FUNC_AREA in the allocation script. Do you have one to many mapping between costcenter and functional area?
Regards,
JP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We can use property values in many statements of script logic, but not the same way
In REC we can use property value to read from specific member stored in property (using LOOKUP) and write to specific member stored in property: SOMEDIM1=SOMEDIM.PROPERTY.
In RUNALLOCATION we are limited to fixed selection of source and destination members by property.
Vadim
Hi Arun,
For sure you can't use the syntax like:
*DIM H_FUNC_AREA WHAT = %Q1%.[FUNC_AREA] ; WHERE = %Q3%.[FUNC_AREA] ; USING = <<<;
In general you have to use WHAT and WHERE selected by property (please read help about *RUNALLOCATION).
WHAT=[SOMEPROPERTY]="%SOMEVAR%"
where %SOMEVAR% - variable containing the required property value!
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Thanks for the input.
I am aware that we can refer to dimension property of H_FUNC_AREA in the below expression. However, is it possible to refer to another dimension property, like here WHAT should depend on the FUNC_AREA property value defined in Cost Center dimension.
*DIM H_FUNC_AREA WHAT=[SOMEPROPERTY]="%SOMEVAR%"
Hi Arun,
You can use values form Property of another Dimension, but indirectly.
You should first create a variable populated by those values using *SELECT for example. Next, you can use that variable in RUNALLOCATION restricting any other Dimension.
I know that this is too generic, so not sure if it helps you to resolve the initial issue, but it answers you last question.
Regards,
Gersh
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 7 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.