Application Development 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: 

Check Authorization for User ID

former_member300754
Participant
0 Kudos

hi all,

as per i know, i can check the authentication by check an object as the following


  AUTHORITY-CHECK OBJECT 'ZOBJECT'
           ID 'ACTVT' FIELD '_____'.

in case i have user id (user does not launch the program by himself) and i want to check the authorization. what can i do on this?

Regards,

Peerasit

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

You may use the RFC enabled FM [AUTH_VALUES_FOR_USER|https://www.sdn.sap.com/irj/scn/advancedsearch?query=auth_values_for_user&cat=sdn_all] and analyze the returned TABSET parameter.

Regards

5 REPLIES 5

Former Member
0 Kudos

You can control User Authorisation by adding the Tcode in the Users Authorisation Profile.

regards,

Jinson

raymond_giuseppi
Active Contributor
0 Kudos

You may use the RFC enabled FM [AUTH_VALUES_FOR_USER|https://www.sdn.sap.com/irj/scn/advancedsearch?query=auth_values_for_user&cat=sdn_all] and analyze the returned TABSET parameter.

Regards

0 Kudos

Hey Raymond,

your answer hits the point!!

Thanks so much

Regards,

Peerasit

PS thanks for every response as well.

former_member300754
Participant
0 Kudos

I'm implemeting RFC for WD Java, then the web sends an user id thru Bapi and I want to check the authorization on that Bapi. Any idea on this.

Thanks in advance,

Peerasit

dev_parbutteea
Active Contributor
0 Kudos

Hi,

Go to transaction su21:

- Enter user name and click on view

- Go to profiles tab

- double click on the profile for the Basis authorizations

The object should be listed there together with the permitted activities if the user has the required authorisations.