2006 Nov 16 8:51 PM
Hi,
In which table are the AUTHORITY-CHECK objects and their asscoaited information (P_GROUP, ACTVT) information stored?
Thanks
Hi,
In which table are the AUTHORITY-CHECK objects and their asscoaited information (P_GROUP, ACTVT) information stored?
Thanks
2006 Nov 16 8:56 PM
2006 Nov 16 9:08 PM
Hi Rich,
I want to check the authorizations of users and awnt only some users to have the authorization of executing an ABAP program (ZABC).
Will this code suffice? I included this code after SELECTION-SCREEN statements and before the only SELECT statement.
SELECTION-SCREEN BEGIN OF BLOCK B1.
.............................
SELECTION-SCREEN END OF BLOCK B1.
AUTHORITY-CHECK 'S_DEVELOP'
ID 'P_GROUP' DUMMY
ID 'ACTVT' FIELD '03'.
DATA: ...........
SELECT..............
Thanks
2006 Nov 16 9:34 PM
Hi Sachin
To achieve the above first you have to create Authorization object using SU21 TCODE.
There u need to give Authorization object, text, class, Authorization fields[Like ACTVT(activity)].
Then in your program at the beggining where process begins write Authorization check syntax as below:
AUTHORITY-CHECK OBJECT 'OBJECT NAME'
ID 'ACTIVITY' FIELD ' '.in take field with name program
and the activity = (1,2,3 ) all
then ask the basis guy to assign this object to the diffrent users profiles to whom you need to give the authorization.
With that u can see that the user who is having ROLE/AUTHORIZATION will able to run through that report and view, The end users who are not having the same will not be able to view the report.
Revert back for more help
Regards
Naresh
2006 Nov 18 10:39 AM
Hi sachin,
Your program has selections screen,
put the authority check statement
after start-of-selection in following way.
START-OF-SLECTION.
AUTHORITY-CHECK 'S_DEVELOP'
ID 'P_GROUP' DUMMY
ID 'ACTVT' FIELD '03'.
if sy-subrc ne 0.
message e001 with 'No authorization to run the program'.
endif.
your select staemnt.
provided your authorization group,etc should exists in the syATEM.
2006 Nov 20 8:37 AM
2006 Nov 20 8:41 AM
Hi Sachin
If a specific authorization object is created for program ZABC, we can add this in the attributes of the program.
Kind Regards
Eswar
2006 Nov 16 9:01 PM
Hi,
Check the tables TOBJ & AUTHX, TOBJVORDAT, TOBJVORFLG,TACTZ..
Thanks,
Naren
2006 Nov 19 6:27 AM