‎2008 Nov 05 9:10 AM
Hi Experts,
I have a ABAP report. I am querying a custom table "YPROG_STATUS" in this report. Now as per security requirement I want to restrict this report for execution. Only those users who have change access to the custom table "YPROG_STATUS" can run the report.
1. To accomplish this how shall I configure and use my new custom authorization object "YPROG_AUTH".
2. Apart from ACTVT field what shall I enter under the "Authorization fields" section while creating a authorization object via SU21 transaction?
3. Do I have to include this authrorization object in my custom table?
4. How do I use the authorization check in my ABAP code?
AUTHORITY-CHECK OBJECT 'YPROG_AUTH'
ID ? FIELD ?
ID 'ACTVT' FIELD '03'.
IF sy-subrc NE 0.
MESSAGE E000.
ENDIF.
Please help!!!!
Thanks & Regards
Gopal
‎2008 Nov 05 11:20 AM
Hallo Gopal,
if you only want to restrict the access to this report, you can build up an own transaction for this report (transaction code: SE93). After this, the users only needs the authorization object S_TCODE with the value of your new transaction to run the report. This is an easy way. No further coding in the ABAP report is necessary.
Regards SWS