05-27-2008 9:30 AM
Hi Guys,
In transaction ME51n i want to give authorisation to users based on cost center. how can i do this. do i have to create an authorisation objct for this.
please give me detail step by step way to create authrisation object.
<removed_by_moderator>
Regards,
Quavi
Edited by: Julius Bussche on May 27, 2008 11:10 AM
05-27-2008 9:51 AM
Hi Abdul
use transactionSU21. Enter an approproate auth.object class (doubleclick) or create an own(create button.
Then in the class press the create button, enter name, text, class, enter required fields (from SU20), create documentaton, possible allowed activites). Save.
Pls do not forget, to enter the object in SU24 after you have added your coding with the additional authority-check....
b.rgds, bernhard
05-27-2008 10:45 AM
Most imortant: you need to check whether an authorization check (AUTHORITY-CHECK statement in ABAP) on cost centers is built in the ME51N code. You can check this with either transaction S_ALR_87101287 or with report RPR_ABAP_SOURCE_SCAN.
According to my findings no additional checks are built in. You still can look for an appropriate user/customer exit (SMOD/CMOD)
Good luck!
Kind regards,
Lodewijk
05-27-2008 11:21 AM
Hi Lodewijk,
In addition to user/customer exits you can also use enhancement points - these are like user exits on steroids & can be very useful for including additional validations in standard transactions.
Not sure if it applies in this scenario but another option to look into.
05-27-2008 12:13 PM
Another aspect to consider is that if there already is an SAP standard auth object with fields which can do the control and is possibly already used in the auth concept to control the access in the same way it is intended to control in the exit or enhancement, then preference should be given to the standard option before creating an own one.
At least that is what we try to do.
Cheers,
Julius
05-27-2008 10:50 AM
Just to add!!
If you want to create your own Auth object, then follow up the document which shows the steps with screenshots.
Rakesh
05-27-2008 10:55 AM