cancel
Showing results for 
Search instead for 
Did you mean: 

SAC Data Action : send date value parameter

0 Kudos
2,263

Hi Experts

Could anyone help me with the below code please.

simple code but not working. I need to pass dynamic values to my data action for that I am first trying it out with constants then I will replace with script variables in Javascript.

DA_1.setParameterValue("CC_P", "GB1"); => company code dimension

DA_1.setParameterValue("MY_P", "202304"); => DATE dimension format "YYYYMM"

DA_1.execute();

The code above does not produce any errors, but it also does not perform the desired action of storing a value in the planning model. I would greatly appreciate any help or insights you can provide.

Thank you in advance.

Best regards,

M

View Entire Topic
0 Kudos

Hi Nikhil

I replaced comp_code with another dimension it worked but not working for organization dimension. is there any reason?

my organization dimension comp_code does not have hierarchy, but enabled person responsible.

Thanks

M

N1kh1l
Active Contributor
0 Kudos

malya_7

Can you just try passing without dimension name qualifier

DataAction_1.setParameterValue("CC_P", "IE02")

OR

DataAction_1.setParameterValue("CC_P", "[Comp_code].[IE02]")
0 Kudos

It Worked now. Thank you very much for your time.

M