cancel
Showing results for 
Search instead for 
Did you mean: 

Macros in APO SNP at 'level change'

Former Member
0 Kudos

I am using APO 7.0.

In an SNP capacity based view (so using a resource selection), I am wanting to run a macro when I change level down to product, but NOT when I go back uo again to resource.

Is there a way of making this distinction?

Thanks for any advice...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello ,

Create a level change macro and put macro at levl 1, level 1 must be when you drill down to product. Inside macro check whether you have drilled down to product using macro function ACT_IOBJNM( ).

If you do so, Macro willl be excuted only when you drill down to product not at resource.

I hope this will help you.

Regards,

Srini

Former Member
0 Kudos

Srini,

Thanks for your response.

But I do not find the ACT_IOBJNM function, only the ACT_IOBJNM_VALUE function.

Can you clarify?...

Former Member
0 Kudos

Hi,

Sorry you are right, you can use ACT_IOBJNM_VALUE, check whether the value returned from this function is '9AMATNR' or your product characterstics( if you are not using standard).

Regards,

Srini

Answers (1)

Answers (1)

former_member187488
Active Contributor
0 Kudos

Hello,

In the macro, you can add an if condition using macro function DET_LEVEL().

Best Regards,

Ada