‎2008 Nov 26 10:06 AM
Hi all,
I have a requirement to check the authoriazation of the user while executing a module pool for some fuctions, As i have two icons for the said to functions,on the application tool bar('Stage' and 'Process').
It has to check whether a user is authorized to execute the above said functions in a particular client.
So I have create an authorization object 'Y_CHECK_AUTH' with two fields client and the function(which i have mentioned earlier).and also i have implemented the following code in my program to check the authorizations.
authority-check object 'Y_USER_CHK'
id 'Y_EVENT' field my_ok_code
id 'Y_ENDPOINT' field my_client.
if sy-subrc eq 0.
rvv_flag = 'X'.
endif.
Apart from this what i need to do..?
do i need to add this authorization object to the user profiles or the authorization profiles... if so how to do that.
Thanks
Ram
Edited by: ram prasad on Nov 26, 2008 11:34 AM
Edited by: ram prasad on Nov 26, 2008 11:36 AM
‎2008 Nov 26 10:43 AM
Hi Ram
What you have done in the program is looking ok.
Now you need to inform your basis team to give and restrict the authorizations for the users .
You can tell them about the authorization object you have created and activities ofr those objects.
And they can assign those authorizations to the users.
Refer this for the information on assigning roles and autohrization object .
Regards
Neha
Edited by: Neha Shukla on Nov 26, 2008 4:14 PM
‎2008 Nov 26 10:43 AM
Hi Ram
What you have done in the program is looking ok.
Now you need to inform your basis team to give and restrict the authorizations for the users .
You can tell them about the authorization object you have created and activities ofr those objects.
And they can assign those authorizations to the users.
Refer this for the information on assigning roles and autohrization object .
Regards
Neha
Edited by: Neha Shukla on Nov 26, 2008 4:14 PM
‎2008 Nov 26 11:27 AM
EXAMPLE:
AUTHORITY-CHECK
OBJECT 'ZPLANT'
ID 'WERKS' FIELD vbrp-werks
ID 'ACTVT' FIELD '01'.