Application Development 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: 

Authorization Object

Former Member
0 Kudos

Hello All,

I have a report & want to create to authorization object for this to avoid unauthorised access. How to add authorization object? Kindly explain.

Regards,

Dilip

9 REPLIES 9

Former Member
0 Kudos

Hi,

what is the type of the object.

go and check in the TCODE su21 all the authorization objects check which will suit you.

The syntax is Authority-check object <object name>

Regards

Kumar

0 Kudos

Hello,

This is a report & I want to create authorization object for this only. SU21 is to create authorization for fields.

Regards,

Dilip

0 Kudos

Hi Dillip,

Use T/Code SE80 and edit object cjoose Authorization object and create one.

Hope this will work.

0 Kudos

I think it is basis problem to create authorizations for report.

but using se80 you can do that...

regards

vijay

Former Member
0 Kudos

Hi Diliip,

In SU20 you will have to create a CLass.

After saving this double click this and you will taken to another screen where you can create Auth Object.

You can create authorization fields in SU21 or use existing ones.

You can also do above thru tcode SE80 Edit -> Other Object. In one the tabs you will see Auth. Objects .

For further ref check on to this link:

http://help.sap.com/saphelp_bw33/helpdata/en/52/67167f439b11d1896f0000e8322d00/frameset.htm

Hope this helps u,

Regards,

Nagarajan.

abdul_hakim
Active Contributor

former_member188685
Active Contributor
0 Kudos

Hi You have READ/WRITE/DELETE 3 options .

You can create the object using SU21.

But Basis will take care of those..

once they assigned if you want to check what are the authorizations then run the report/trxn and use su53 trxn

to find what are the auhorizations for that user

regards

vijay

VijayasekarK
Active Participant
0 Kudos

Hi,

If you know the authorization object use the below code to check for the authorzation.

Sample Code...

AUTHORITY-CHECK OBJECT 'ZPRCHK1'

ID 'BUKRS'

FIELD p_bukrs.

IF sy-subrc NE 0.

MESSAGE e000 WITH

'You are not authorised for Company code' p_bukrs.

ENDIF.

In the above code "ZPRCHK1" is the authorization object which we have created .

Go thru the below sap link for more details...

http://help.sap.com/saphelp_bw21c/helpdata/en/5c/deaa74d3d411d3970a0000e82de14a/content.htm

Hope it helps u...

regards,

Vijay

Message was edited by: Vijayasekar

Francis417
Participant
0 Kudos

May be you can use the field 'Authorization group' together with the authorization object S_PROGRAM.

Regards.