11-14-2007 9:46 AM
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
11-14-2007 10:15 AM
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,