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

check authorized tcodes for different users using 'authority_check_tcode'

Former Member
0 Likes
320

Hi,

i am checking authorized tcodes for different users in ECC5.0 by following code it working fine.(if user authorized for that particular transaction it is giving the message ok, user not authorized it is giving not_ok). <b>But the same code is not working in ECC6.0 any one please help me.</b>

REPORT YTEST_PRAVEEN6.

parameter : p_uname type sy-uname.

parameter : p_tcode type sy-tcode.

move p_uname to sy-uname.

CALL FUNCTION 'AUTHORITY_CHECK_TCODE'

EXPORTING

TCODE = p_tcode

EXCEPTIONS

OK = 1

NOT_OK = 2

OTHERS = 3

.

IF SY-SUBRC EQ 1.

WRITE : / 'OK'.

ELSEIF SY-SUBRC EQ 2.

WRITE : / 'NOT_OK'.

ELSE.

WRITE : / 'OTHERS'.

ENDIF.

Usefull answer will rewarded

Thnaks

1 REPLY 1
Read only

Former Member
0 Likes
265

Hi Praveen,

I checked your program code in ECC 6.0. It is working fine. Check with your Basis consultant for supprot packs. Also refer to OSS Note : 503099.

Thanx & Rgds,