Hi,
I am on version 7.5 MS and currently struggeling with the following:
Step 1. I am writing to a yearly input container via EPM client and the affected underlying months should get exactly the same value. It's more or less a one-to-many copy.
Step 2. These newly generated monthly values should form a calculation A * B = C. This is done for two Accounts.
I decided to give Step 1 a try by using Script Logic allocation. Works without problems when run alone.
Also Step 2 is more or less straight forward. Works without problems when run alone.
Then I combined the two parts and separated it by a *commit.
Findings:
When I run the combined package as DEFAULT.LGF (this is what I need) it would not perform Step 2. At least it looks like it as all resulting values in C are put back to zero.
When I run the DM package DEFAULT FORMULAS afterwards, the combination works without problems.
As I said, I need to have that as default lgf. The intended routine is supposed to make the input process of users easier.
Can somebody point me into the right direction ? Is it the missing scoping that causes the problem ? It seems to be a triggering problem, ie. what triggers what.
BR
Wolfgang
Here comes the code in the default.lgf
// Section 1
*RUNALLOCATION
*FACTOR=1
//*FACTOR=1/COUNT
*DIM TIME WHAT=%YEAR%.INP; WHERE=BAS(%YEAR%.TOTAL)
*ENDALLOCATION
*COMMIT
// Section 2
*WHEN PARM
*IS "VOL"
*WHEN ACCOUNT
*IS "CASH"
*REC(EXPRESSION = (%VALUE% * GET(ACCOUNT="TAXRATE",PARM="NO_PARM") * FLD(TIME.DAYSINPERIOD) / FLD(TIME.DAYSINYEAR)) , ACCOUNT="REBATES",PARM="NO_PARM")
*IS "ACCREC"
*REC(EXPRESSION = (%VALUE% * GET(ACCOUNT="TAXINCENTRATE",PARM="NO_PARM") * FLD(TIME.DAYSINPERIOD) / FLD(TIME.DAYSINYEAR) ) , ACCOUNT="INTERESTEXP",PARM="NO_PARM")
*ENDWHEN
*ENDWHEN
*COMMIT