Former Member

# Script Logic

Hi ,

I have an issue with script ,

which one do I need to select like MDX,Script,Stored procedure and how to justify

Query :

We have Cost Cnetres like T1 ,T2,T3

T1 refer with t2

Tier1 Cost Cnetre Value Hrs StandarRate

T1 - 100 100000 100 100

T2 -100 101 25000 25

T2 -100 102 50000 50

T2 -100 103 25000 25

Entity,Acount Plannin,Scenario,Time ,Version

Key Figure Rpt_Currency Cost_Centre_FromCost_Center_TO Hours 100 123 25 100 124 50 100 125 25 Rpt_Currency Cost_Centre_FromCost_Center_TO Amount LINEITEM 100 -100000 100 123 25000 100 124 50000 100 125 25000 100

Please advice how to define script logic and what are the input parameters we need to take

10|10000 characters needed characters exceeded

### Related questions

• Former Member
Posted on Jan 07, 2014 at 11:56 AM

HI

I am using Cost center allocation to multiple cost centers

Cost Center 1 : 100 value 10000 1000 Hrs

Cost Cneter 2 : 101 25000 25

CC 3 102 50000 50

CC 4 103 25000 25

CC1 having total 1000 hrs 25*1000 = CC2 value 25000

CC1 50*1000 = CC3 value 50000

CC1 25*1000 = CC4 value 25000

In script allocation logic shall I use as FACTOR = USING *1000

10|10000 characters needed characters exceeded
• Hi VY,

It is possible to do this multiplication using all the 3 ways - MDX, Script logic and Stored procedure.

Go with Script logic to do the calculation, since MDX is costly in terms of performance and stored procedure is costly in terms of future upgrade process.

Try to use XDIM_NOSCAN, FACTOR and GET functions to do the multiplication.

Best Regards,

Karthik AJ