Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Authorization grpup for Command Button

Former Member
0 Likes
444

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

2 REPLIES 2
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
403

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.

Read only

Former Member
0 Likes
403

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.