Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Transaction codes executable for user

Hi

I want a function module which says whether a user acess to particular transaction code.

I am using this FM, but it says the user has authorization to a particular transaction code although he/she is not having access to that transaction

SUSR_AUTHORITY_CHECK_SIMULATE

CALL FUNCTION 'SUSR_AUTHORITY_CHECK_SIMULATE'

EXPORTING

user_name = usr21-bname

object = 'S_TCODE'

field1 = 'TCD'

val1 = lv_tcode_val ( transaction is ME21N)

IMPORTING

sy_subrc = lv_rc

EXCEPTIONS

not_authorized = 1

user_not_exists = 2

internal_error = 3

OTHERS = 4.

can anybody tell how to handle this situation?

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question