Application Development 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: 

How to restrict users form executing a report or transaction

Former Member
0 Kudos

Hi! All.

I have a report or a transaction(created by user using trans se93) which I want only a few users to be able to execute. If others try to execute the report, they should get the message saying, you are not authorized to execute this report.

So that only some users can run or execute a particular report or transaction.

Could anyone tell me how to do it.

Thank you.

Ashvender.

ashvender@rediffmail.com

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

u have to use authorization object.

and u have option se93 transaction

i have send u the attachement for the authorisation object

Message was edited by: Manoj Gupta

5 REPLIES 5

Former Member
0 Kudos

hi

u have to use authorization object.

and u have option se93 transaction

i have send u the attachement for the authorisation object

Message was edited by: Manoj Gupta

0 Kudos

Hi!

Thank you for sending solution for authorization object. It has resolved my problem.

0 Kudos

Hi

can u plz send me the attachment for authoris objects

my mail address is manu.684b@gmail.com

Thanks

former_member181966
Active Contributor
0 Kudos

You have to do like this

AUTHORITY-CHECK OBJECT 'Z:object'

ID 'ACTVT' FIELD '16' ( execute )

ID 'PROGRAM' FIELD SY-REPID.

IF SY-SUBRC NE 0.

MESSAGE E900 WITH SY-REPID.

STOP.

ENDIF.

and you have to diefine this object in roles of users : in Tr.PFCG . So the user who has role only can execute transaction or program .

Also check thread

<u><b>

Tip:Pl..before posting question search in SDN "Authorization Object" or "your Query"</b></u>

Thanks

Saquib khan

Message was edited by: Saquib Khan

ferry_lianto
Active Contributor
0 Kudos

Hi Ashvender,

You can use authorization object as mentioned by Manoj and Saquib earlier

or you can create transaction variants (t/code <b>SHD0</b>) and assign variant group.

In this case, ONLY certain users group can execute the report via transaction variant.

For futher information, please check this link.

http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm

Hope this will help.

Regards,

Ferry Lianto