‎2008 Mar 04 10:17 AM
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.
‎2008 Mar 04 10:22 AM
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
‎2008 Mar 04 10:30 AM
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.
‎2008 Mar 04 10:31 AM
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'.
‎2008 Mar 04 10:35 AM
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