on 10-30-2010 2:34 PM
could you tell me how to create authorization object,please?
thanks!
hi
Using SU21 u can create Authorisation Object.
Details to give an authorisation for ABAP PROGRAMS
The smallest unit against which the check should be run is the authorization
field.
The ABAP command AUTHORITY-CHECK is used for performing authorizaton checks
in programs. Before accessing the database the user should carry out an
authorization check which is implemented in the ABAP program. The
AUTHORITY-CHECK statement first checks if the user has the authorization
containing all the required values. Then the code value in the system field
SY-SUBRC is checked. If the required value is available for each
authorization field, the check is successful (SY-SUBRC = 0). If the value is
not 0, then the check is unsuccessful, which means that the user does not
possess the required authorization and an error message will be displayed.
AUTHORITY-CHECK sets SY-SUBRC to 4, 8, 12, 16, 24, 28, 32 or 36 depending on
the cause of the authorization failure, e.g. return code 4 means that the
user does not have the required authorization; SY-SUBRC = 8 means that the
check could not successfully be carried out since not all fields of the
object were specified. The field SUBRC is in the APAB Dictionary SYST. To
address the system field in an ABAP program, the form SY-<fieldname> is
used.
The ABAP syntax of the AUTHORITY-CHECK statement is:
AUTHORITY-CHECK OBJECT '<object>' (which created by you in SU21)
ID '<name1>' FIELD <f1> (fields given in Authorisation object)
u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
ID '<name10>' FIELD <f10>.
Where <object> is the name of the authorization object that has to be
checked, <name1>,..., <name10> are the authorization fields in the object,
and <f1>,... ,<f10> are the values for which the authorization is to be
checked. If after the field name is entered DUMMY, the check for a
particular field will not be carried out.
Note: Keywords and options of statements are uppercase. Each statement ends
with a period or U can consult with ur ABAP consultant regarding
authority-check syntax.
Regards
balajia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Its Better consult your basis team
Use the T code su21 to create an authorization object.
regards
Prashanth
Edited by: Prashanth@SD on Oct 31, 2010 3:14 AM
Edited by: Prashanth@SD on Oct 31, 2010 3:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.