AUTHORITY-CHECK doesnu00B4t work
I have created an authority object. I have assigned this object to a role.
When I call "authority-check object", it always returns the value 12.
Why? I call the authority-check with parameters that should return 0 value.
check the below table ..
The authorization group allows extended authorization protection for particular objects. The authorization groups are freely definable. They usually occur in authorization objects together with an activity. The table that contains all authorization objects is TOBJ. The table that contains all activities is TACT. The table that contains definition of all authorization groups is TBRG. TBRG -- Contains all authorization groups and gives information about relation between authorization object and authorization group. The description of the authorization groups is defined in table TBRGT.
If you create AUTHORITY-CHECK for report or t-code..
* Checking Authorization AUTHORITY-CHECK OBJECT 'S_TCODE' "S_PROGRAM for program ID 'TCD' FIELD 'ZC7B1UM'. "ZC7B1UM is t-code IF sy-subrc <> 0. MESSAGE e544. ENDIF.
if you check for t-code check by above syntax.
Edited by: Prabhu Das on Apr 15, 2009 11:04 PM