Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

check authorization

Former Member
0 Likes
758

hi all,

i been ask to check if the user has authorization to transaction va01, vl01n...

how do i do this?

is it user exit?

thanks,

dana.

6 REPLIES 6
Read only

Former Member
0 Likes
696

Hi dana,

1. simple

2. use the FM AUTHORITY_CHECK_TCODE

regards,

amit m.

Read only

0 Likes
696

FM AUTHORITY_CHECK_TCODE or

SUSR_AUTHORITY_CHECK_S_TCODE

Read only

Former Member
0 Likes
696

Hi

Place a call to function module AUTHORITY_CHECK_TCODE at the beginning (AT INITIALIZATION) and give the TCODE as the transaction code.

Regards,

Navneet

Read only

Former Member
0 Likes
696

Hi Dana

Please have a look at transaction SUIM, this might help you.

<b>Navigation Path:</b>

User Information System -> Transactions -> Executable for User.

Hope this helps you.

Kind Regards

Eswar

Read only

Former Member
0 Likes
696

Hi,

You could do in the following way.

Go to transaction SQVI and join two table

1) Agr_tcodes

2) Agr_users

And run the query. Enter user name and transaction it will show all details. Hope it will help you out. With this query you could check whatever it will be

Thanks

Q

Read only

Former Member
0 Likes
696

hi ,

here is the code that will help you definitely.

&----


*& Report Z_SYED_AUTHORITY_CHECK_TCODE *

*& *

&----


*& *

*& *

&----


REPORT Z_SYED_AUTHORITY_CHECK_TCODE .

parameters: tcode type TSTC-TCODE.

CALL FUNCTION 'AUTHORITY_CHECK_TCODE'

EXPORTING

tcode = tcode

EXCEPTIONS

OK = 1

NOT_OK = 2

OTHERS = 3

.

IF sy-subrc EQ 2.

write:/'You dont have authorization!!!'.

elseif sy-subrc EQ 1.

write:/'You have authorization!!!'.

ENDIF.