2006 Sep 15 11:59 AM
authority-check object 'myobj'.
id 'lifnr' field '101' .
for the above stmt authority check is created. but validation was not success. pls fix
2006 Sep 15 12:01 PM
authority-check object 'MYOBJ'.
id 'LIFNR' field '101' .
TRY UPPERCASE.
authority-check object 'myobj'.
id 'lifnr' field '101' .
for the above stmt authority check is created. but validation was not success. pls fix
2006 Sep 15 12:01 PM
authority-check object 'MYOBJ'.
id 'LIFNR' field '101' .
TRY UPPERCASE.
2006 Sep 15 12:02 PM
authority-check object 'Z_PLNT_AUT'
id 'ACTVT' field '03'
id 'WERKS' field i_auth_werks-werks.
if sy-subrc ne 0 .
message e398(00) with
'User' sy-uname 'not authorised for Plant : ' i_auth_werks-werks.check this, if u have any doubts let me know.
Regards
Prabhu
2006 Sep 15 12:06 PM
Hi Uma,
Check with the following Code:
AUTHORITY-CHECK OBJECT 'myobj'
ID 'ACTVT' FIELD '101'
ID 'CUSTTYPE' FIELD 'lifnr'.
IF SY-SUBRC <> 0.
MESSAGE E...
ENDIF.
2006 Sep 15 12:39 PM
Hi Uma,
the FM 'authority-check' is not used for creating Authorization objects.Its being used for checking the authorization whether a perticular user has got authorization for a perticular object or not.
If you want to create a new authorozation object
follow the steps.
1.)From the SAP initial screen
GOTO
Tools->ABAPworkbench->Development->
Othertools->Authorozation Objects.
Then first create the Authorization Fields for which data elements u want to check authorizations.
Then create Authorization Object and give all of ur authorization fields there.
Then it will create an authorization Object
Then ur administrator will add this authorization object to the corresponding user in SU01.
Then u can check this authorization by calling the FM 'authority-check ' by passing the object value that u have created recently and the field name that u have also created recently.
Hope now u understand this perfectly.
if its upto ur satisfactory level then reward me points Pls.
Regards
Manas Ranjan Panda.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |