cancel
Showing results for 
Search instead for 
Did you mean: 

Macro execution

gurucharanscm
Contributor
0 Kudos

Hi Experts, I would like to know how a macro does get executed when written with multiple steps. Suppose I have 10 steps in it, does that mean that the macro starts executing step by step sequentially? Basically, what I would like to know is that: Can I use an auxilary key-figure value in, say, step 3, while the value for this key-figure gets calculated in say, step 7?

Please help me understand. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Guru,

If you use and Auxiliary figure in Step 3 and vlues for which is calculated in Step 7 then your KF will hold zero values .

As rightly mentioned by other experts macros follow sequential flow.

Regards,

Anurag

Answers (2)

Answers (2)

former_member187488
Active Contributor
0 Kudos

Hello, macro steps are always executed as the defined sequence, unless you use condition statement like IF, WHILE, SWITCH, etc. Auxiliary key figures can be used wherever you want, no need to define. If you use an auxiliary key figure in step 3, but you fill the value of the auxiliary key figure in step 7 , then in step 3, the key figure has no value. Layout variables must be defined before you get the value of it.

emani_raghavendra
Participant
0 Kudos

Dear Guru

Macro steps are executed sequentially only in the order they are written .