Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

AUTHORITY CHECK

vallamuthu_madheswaran2
Active Contributor
0 Likes
864

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

4 REPLIES 4
Read only

Former Member
0 Likes
720

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.

Read only

Former Member
0 Likes
720

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

Read only

Former Member
0 Likes
720

Try this for TC

  authority-check object 'S_TCODE'
                      id 'TCD' field 'FB03'.

Read only

vallamuthu_madheswaran2
Active Contributor
0 Likes
720

SOLVED OWN