cancel
Showing results for 
Search instead for 
Did you mean: 

Correct usage of C_APO_MAC auth. object ?

thomas_schulze2
Active Participant
0 Kudos

Hello experts,

I'm getting stuck with applying authorization object C_APO_MAC (macro execution) to control execution of macros in DP DataViews.

I have a DP Planning Book ABC which has 3 DataViews ABC_1, ABC_2 and ABC_3. I'd like to achieve that the user can not execute macros in DataView ABC_3.

I have been trying 2 things ...

1) deactivate / activate C_APO_FUN --> C_MAKRO

2) add auth. object C_APO_MAC with followin settings:

     ACTVT = 16

     APO_MACRO = *

     APO_PLBK = ABC (the PLBK_ID from the dropdown)

     APO_VIEW = ABC_1, ABC_2  (the VIEW_ID from the dropdown)

    

No matter what I do - I can still use a sample macro behind a button in DataView ABC_3. Checking SU53 is bringing up the missing authorization but there is no message in the DataView of the not being authorized to execute this macro or anything else ...

SCM Release: SCM7.0 SP8

Any hint ?

Regards

Thomas

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

I also had to check C_MAKRO in C_APO_FUN. It's only used by program /SAPAPO/TS_BATCH_F02 which is used for background jobs only. So wouldn't be relevant in your case (as it wasn't in mine).

Maybe you can incluce a check in the macro itself that it's not executed in view ABC_3, but then of course this check would hit all users (may or may not be ok with your requirements).

Regards