‎2008 Jan 30 1:41 PM
Hi all,
I am keeping the one command button name is EMAIl in application tool bar. I want to create auth group those who have auth to execute this Email button .
For other users this command should be not seen. only auth users to see this button.
How can i create authgroup for command button.
regards,
Ajay
‎2008 Jan 30 2:02 PM
Hi,
You can use transaction SE54 or simply in the program attribute you can type in a name for the group and it will get created into TPGP table.
you can also use program RSCSAUTH to assing authorization group to programs
But for disabling the button, u ca't do just by using authorozation group, u have d it through coding.
First you can check the authorization group and then checking the sy-subrc and then u can disable by using ur PF-status for that particular user.
Cheers,
SImha.
‎2008 Jan 30 2:05 PM
Hi,
when the report is started check for authority for the user to execute the transaction.
like:
AUTHORITY-CHECK OBJECT auth_obj [FOR USER user]
ID id1 {FIELD val1}|DUMMY
[ID id2 {FIELD val2}|DUMMY]
...
[ID id10 {FIELD val10}|DUMMY].
if this authority check fails:
set pf-status <ur pf status> excluding <function code for command button>.
Regards,
Renjith Michael.