2008 Oct 06 11:14 AM
Hi Friends,
some user's dont have the authorization for some program/TC.
i want to check it using program.
is there any function module for AUTHORITY CHECK for program/TC.
Thanks & Regards,
Vallamuthu.M
Hi Friends,
some user's dont have the authorization for some program/TC.
i want to check it using program.
is there any function module for AUTHORITY CHECK for program/TC.
Thanks & Regards,
Vallamuthu.M
2008 Oct 06 11:18 AM
Hi
u have follow like that...
AUTHORITY-CHECK OBJECT 'ZPRCHK_NEW' :
ID 'TCD' FIELD SY-TCODE
ID 'BUKRS' DUMMY
ID 'PRCTR' DUMMY
ID 'SPART' DUMMY
ID 'WERKS' DUMMY
ID 'VKORG' DUMMY
ID 'EKORG' DUMMY.
IF sy-subrc NE 0.
MESSAGE TEXT-003 TYPE 'E'.
LEAVE PROGRAM.
ENDIF.
2008 Oct 06 11:18 AM
Maybe this FM help you:
SUSR_USER_AUTH_FOR_OBJ_GET - get list of auth objects for user
SUSR_AUTHORITY_CHECK_SIMULATE - simulate user auth
2008 Oct 06 11:27 AM
Try this for TC
authority-check object 'S_TCODE'
id 'TCD' field 'FB03'.
2009 Mar 11 11:31 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |