on 09-23-2016 10:52 AM
Hi Personas 3.0 experts,
This maybe is a very straight forward question - I want add a button that is enabled for some users but disabled for some other users based on their role. Anyone know how to do this? Please write the steps here.
Thanks a lot!
Dong
Well, you could always simply write a BAPI that rummages through the role and profile tables looking for the relevant thing and then have the onLoad script call it and set the button properties accordingly. If you really mean "role" here.
A more traditional solution would look for a specific authorisation, not a role, so the BAPI would just do an AUTHORITY CHECK.
Is that what you mean?
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
Thanks for the reply. Your suggestion is surely working. Beyond that I was looking if there was a "direct" binding. Using RFC has overhead like ABAP programming and set FM Whitelist. But if there is no other way, RFC or calling tcode would be the only option.
By the way, is there any way of extending the Personas "button" class with new method, eg, "AttachRole" or "AttachAuth" so that everytime I create a button it will be just calling the method.
Thanks.
Dong
create 2 flavors one with button and second without button and assign to specific roles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.