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

Creating a custom authorization object. Please help!

Former Member
0 Likes
343

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

1 REPLY 1
Read only

Former Member
0 Likes
317

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