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

issue on authorization object

Former Member
0 Likes
661

hi all,

in me52n transaction, in account assignment tab there is field called costcenter. its field name is kostl and strucutre is cobl. now i have requirement to create an authorization object on this costcenter. that is for example , if i try to make any changes in the cost center field it should allow me to do it. but if some others are using it should not allow them to make any changes. plz let me know the solution how to do step by step. points will be awarded . this is urgent requirement. plz reply fast.

thanking u in advance,

a.srinivas

6 REPLIES 6
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
633

Hi

Have a look on the link:

<b>https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c</b>

Regards,

Sree

Read only

Former Member
Read only

former_member873340
Active Participant
0 Likes
633

Hi deniz,

Use this to set up the autherisation object

AUTHORITY-CHECK OBJECT '<objectname>'

ID 'ID FIELD SY-UNAME.

IF SY-SUBRC NE 0.

MESSAGE S999 WITH 'You are not Authorised to change entries'.

EXIT.

ENDIF.

Inform the Basis team to assign the role only to ur id...so that no other person wil u autherized

Award points if useful

Regards

Gowri

Read only

0 Likes
633

Hi,

use tcode su21 to first create a authority object for eg zauth

assign fields to it u can use ACTVT and ofcourse kostl(cost center) then u can use this in ur program by going to pattern and choosing authority-object and putting in the name of the aurhority object that u have created and then put in the value of the fields as per ur requirments in place of dashes. After this ur Basis team can assign the same to the specific user.

regards,

himanshu

Read only

0 Likes
633

i have created the authorization object and called in the relevant user-exit mereq001 but when i am checking the sy-subrc value though it is the same user or different user the error message is populating and the sy-subrc value is returning as 12 instead of 0. y is it so?

plz reply

Read only

0 Likes
633

i have created the authorization object and called in the relevant user-exit mereq001 but when i am checking the sy-subrc value though it is the same user or different user the error message is populating and the sy-subrc value is returning as 12 instead of 0. y is it so?

plz reply