cancel
Showing results for 
Search instead for 
Did you mean: 

Function module (Or any way) to check perticulat user has authorization

Former Member
0 Kudos

Hi,

Do we have any Function module (Or any way) to check perticulat user has authorization to perticular transaction..??

I mean, I have user called 'ABC' ... I need to check he has authorization to 'MM01' transaction... like this I need to check for several users...

Regards,

Rays

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Use this one!

AUTHORITY_CHECK

CALL FUNCTION 'AUTHORITY_CHECK'

EXPORTING

USER = user_name

object = 'S_TCODE'

field1 = 'TCD'

VALUE1 = 'MM01'

EXCEPTIONS

USER_DONT_EXIST = 1

USER_IS_AUTHORIZED = 2

USER_NOT_AUTHORIZED = 3

USER_IS_LOCKED = 4

OTHERS = 5

.

Thanks not forgetting the reward!

Former Member
0 Kudos

Or you can use this one!

SUSR_AUTHORITY_CHECK_SIMULATE

former_member188685
Active Contributor
0 Kudos

hi,

you can use FM <b>AUTHORITY_CHECK</b>

that is working.

thanks

vijay

Former Member
0 Kudos

> hi,

>

> you can use FM <b>AUTHORITY_CHECK</b>

>

> that is working.

>

> thanks

> vijay

Please read previous answer! I did send that already

former_member223537
Active Contributor
0 Kudos

Hi,

Pass that TCODE as a object in AUTHORITY-CHECK.

It will do the validation for user name with TCODE.

Best regards,

Prashant

Former Member
0 Kudos

Hi,

Goto transaction SUIM.

There is a hierarchy tree select the User option and give the user name. You will get the list of transactions he is authorised to execute.

Hope it helps...

Lokesh

Pls. reward appropriate points

Former Member
0 Kudos

Thanks..Yes you are in my way..

We can get list of transactions of 'ABC' user has authorization using TCode: S_BCE_68001426

We can get list of Users has authorization for the perticular transaction using TCode: S_BCE_68001398

But problem here is S_BCE_68001398 wont check user has start authorization for that Tcode.

<b>I need FM(or any way) to check perticulat user has authorization to tcode.</b>

I have user name and Tcode... I need to check he has authorization to that tcode...

Regards

Rayudu

Former Member
0 Kudos

Hi,

Check the FUnction Modules from FG

SUSD and SUSE

OR Try the FMs

SUSR_TCODES_LIST_SELOPT_USER

SUSR_USER_AUTH_FOR_OBJ_GET

SUSR_USER_DISPLAY_WITH_AUTHS

Hope it helps...

Lokesh

Pls. reward appropriate points

former_member188685
Active Contributor
0 Kudos

Hi,

check this FM AUTHORITY_CHECK_TCODE.

thanks

vijay

Former Member
0 Kudos

Solved proble with FM SUSR_TCODES_LIST_SELOPT_USER

Thanks,

Rayudu

Former Member
0 Kudos

> Solved proble with FM SUSR_TCODES_LIST_SELOPT_USER

>

> Thanks,

> Rayudu

this one does list all tcode for one user!

If you only need to check 1 codes I would not suggest to use this one!

former_member223537
Active Contributor
0 Kudos

Hi,

You need to create a authorization object ( EG. Z_CHECK_PLANTS ).

AUTHORITY-CHECK OBJECT 'Z_CHECK_PLANTS'

ID 'PLANT' FIELD WA_INPUT-WERKS.

SY-SUBRC NE 0 -- AUTHORIZATION FAILED ( NO ACCESS TO USER )

Best regards,

Prashant

Former Member
0 Kudos

Try with the FM RKE_CHECK_AUTHORITY

former_member188685
Active Contributor
0 Kudos

Hi

run the transaction se97 to know the authorizations for a user.

(not in change mode) go to display mode.

thanks

vijay