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

regarding authorization

Former Member
0 Likes
505

hello everyone,

suppose i create a report and i want that nobody could access my report.

here i want to use the concept of authorization , how i can use that.

4 REPLIES 4
Read only

arpit_shah
Contributor
0 Likes
488

first remove the authorization of se38 then user can not acces ur report.

if u hv given tcode to report.

then assign that tcode to user in pfcg that user is required for that authorization.

remove tcode from other user who does not hv authorization.

for giving authorization,

PFCG is used.

create role and assign that role to user.

Regards,

Arpit

Read only

Former Member
0 Likes
488

Hi,

You can check some thing like this in the program itself.


At selection-screen output.
"Check for user id
if sy-uname = 'UserID'. "Your userid
  if sy-subrc NE 0.

Message 'Your are not authorized to access'.
endif.
endif.

Thanks,

Sriram POnna.

Read only

Former Member
0 Likes
488

There are many ways of restricting the user .

1. You can create a authorization object restrict any number of users.

2.You can create a z-table maintain the users and some of the related information and u can restrict them.

3. Finally you can hardcode in your program with the field SY-UNAME if this is equal to your id restirict the others to view the tcode. Ex: Check sy-uname = 'xyzzz'.

Read only

sreelatha_gullapalli
Active Participant
0 Likes
488

hi

check the following link

http://help.sap.com/saphelp_nw70/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm

http://help.sap.com/saphelp_nw70/helpdata/en/52/67129f439b11d1896f0000e8322d00/content.htm

http://books.google.co.in/books?q=authorization+insap&ots=VrBh1AUYVu&sa=X&oi=print&ct=title&cad=legacy&hl=en

bt this you can get more information regarding authorization.

Regards,

Sreelatha Gullapalli