2008 Feb 26 8:23 AM
hai all,
can any one tell how to use authorization object, in which event i have to keep it,
what happens when it keeps in start of selection , or at selection-screen event
2008 Feb 26 8:28 AM
Hi
Plz check the following link. It is excellent and gives you all the required details:
Thanks
Vijay
PLZ reward points if helpful
hai all,
can any one tell how to use authorization object, in which event i have to keep it,
what happens when it keeps in start of selection , or at selection-screen event
2008 Feb 26 8:28 AM
Hi
Plz check the following link. It is excellent and gives you all the required details:
Thanks
Vijay
PLZ reward points if helpful
2008 Feb 26 8:34 AM
Genarally you can use authorization object in following events
INITILIZATION - some times
AT SELECTION-SCREEN
START-OF-SELECTION
Authorization object is used to rectirict the access to thr program or tcode.
Example:
In the program.
Here s_ekorg is the select option.
loop at s_ekorg.
authority-check object 'Z_MM_EKORG'
id 'ACTVT' field '03'
id 'EKORG' field s_ekorg-low.
if sy-subrc ne 0 .
message e444 with text-022.
endif.
endloop.
Thanks,
2008 Feb 26 8:35 AM
HI.
The sytax for authority object is as follows.
AUTHORITY-CHECK OBJECT ' onject name'
ID 'Field' FIELD field-name
ID 'Field' FIELD field-name.
IF SY-SUBRC <> 0.
error message.
ENDIF.
Authoruty check can be at field level or program level.
Authority check at field level can be places either in START-OF-SELECTION or
AT SELECTION SCREEN.
1) If the authority check is palced in START-OF-SELECTION then, when the user(assume that he don't have the authorization) executes the program after he enters the values in the selection screen, it will throw the error message in the next screen. Suppose if he wants give other values than once again he has to execute the program (ie he has to give the transaction is the command line once again to execute).
2)If the authority check is palced in AT SELECTION SCREEN then, when the user(assume that he don't have the authorization) executes the program after he enters the values in the selection screen, it will throw the error message in the same screen so that the user can give other values and execute( there is no need for the user to give the transaction in the command line once again).
Reward Points if helpful.
2008 Feb 26 8:36 AM
SU21 we can create the New Authorization Object
See this and do accordingly
In general different users will be given different authorizations based on their role in the orgn.
We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
USe SUIM and SU21 T codes for this.
Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
This means you have to allocate an authorization object in the definition of the transaction.
For example:
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
...
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
You program the authorization check using the ABAP statement AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD 'B'.
IF SY-SUBRC 0.
MESSAGE E...
ENDIF.
'S_TRVL_BKS' is a auth. object
ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
This Authorization concept is somewhat linked with BASIS people.
As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a profile and that profile in turn attached to a particular user.
Take the help of the basis Guy and create and use.
2008 Feb 26 8:36 AM
Pls. check below useful links.
With PDF.
Check the below link,here you can see complete information about Auth checks and objects.
Check the below links.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/8d/3e4e19462a11d189000000e8323d3a/frameset.htm
Check the below link for Main HR Authorization Object for Security .
http://www.sap-img.com/human/main-hr-authorization-object-for-security.htm
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |