‎2007 May 30 9:54 AM
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
‎2007 May 30 9:58 AM
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
‎2007 May 30 9:59 AM
Hi ,
Check this links, you will get some idea,
https://forums.sdn.sap.com/click.jspa?searchID=2868772&messageID=2124932
https://forums.sdn.sap.com/click.jspa?searchID=2868772&messageID=3294649
Thanks.
‎2007 May 30 10:00 AM
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
‎2007 May 30 10:07 AM
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
‎2007 May 30 3:03 PM
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
‎2007 May 30 3:04 PM
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