In one report i am displaying the list of executable reports.
Now if the user double clicks the code, the same T Code will be opened.
But if a particular user has no authorization, the system openes the T Code eventhough it is not authorized to do that.
For that I am using one functional module 'SUSR_AUTHORITY_CHECK_SIMULATE'.
CALL FUNCTION 'SUSR_AUTHORITY_CHECK_SIMULATE'
USER_NAME = SY-UNAME
OBJECT = 'S_TCODE'
FIELD1 = 'TCD'
VAL1 = TCODE
SY_SUBRC = SYSUBRC
NOT_AUTHORIZED = 2
The tcode is passed and if sy-subrc is set to 0 it shold allow the tCode to open.
But this is not working.
Please suggest me what to do.