Skip to Content
author's profile photo Former Member
Former Member

Screen Personas 3.0 - Authority question

Hi,

i have copied the standard screen personas authority role /PERSONAS/CONSUMER_ROLE to a new Z_PERSONAS_CONSUMER role, and i have

deleted from this new authority role the runtime activities "Select_Flavor" and "Manage_Flavor".Therefore, the role has only the activity "Use_Flavor".

The new role is assigned to the user Consumer1. In transaction /PERSONAS/ADMIN the flavors F1 and F2 (both are flavors for transaction SMEN) are assigned to user Consumer1. Flavor F1 ist the default flavor.

In flavor F1 there is a script button, which calls the flavor F2 with script "session.utils.changeFlavor". But this script does not work in this case, the flavor can't be called. If i add in the authority role the runtime activitiy "Select_Flavor", the script works fine.


Therefore my question, if there are more flavors for a transaction, and the authority role is minimized to activity "Use_Flavor", the script "session.utils.changeFlavor" does not work any more?



Thanks,

Andreas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 23, 2015 at 04:21 AM

    Selecting the flavor using the flavor bar or a scripting method are the same thing, so yes, this won't work.

    I see a use case however when someone wouldn't want to permit selecting a flavor manually by the user but the same should be allowed via a script... so it is debatable whether this SHOULD be possible 😊

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Exactly this scenario is true for my application - in my application i have a flavor with all input fields which are relevant for transaction PA30 and a button which calls a PA30 flavor by script.

      After filling all fields and clicking the button, the PA30 transaction is executed automatically.

      But the user should not be permitted to call the PA30 flavor manually.😉

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.