04-08-2010 10:29 AM
Hi,
Is there a Function Module which takes user name and tcode and gives back the result whether the user is authorized to access the tcode.
Regards,
Wasif.
04-08-2010 10:36 AM
Hi,
There may be a function module, but you can also do this in regular ABAP;
AUTHORITY-CHECK OBJECT 'S_TCODE' FOR USER wa_uname
ID 'TCD' FIELD wa_tcode.
Where wa_uname is the user name and wa_tcode is the transaction code.
Regards,
Nick
04-08-2010 10:36 AM
Hi,
There may be a function module, but you can also do this in regular ABAP;
AUTHORITY-CHECK OBJECT 'S_TCODE' FOR USER wa_uname
ID 'TCD' FIELD wa_tcode.
Where wa_uname is the user name and wa_tcode is the transaction code.
Regards,
Nick
04-08-2010 10:39 AM
there is a function AUTHORITY_CHECK_TCODE but it runs for current user only.