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

authorization objects

Former Member
0 Likes
477

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
449

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 .

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a...

Regards

Neha

Edited by: Neha Shukla on Nov 26, 2008 4:14 PM

2 REPLIES 2
Read only

Former Member
0 Likes
450

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 .

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a...

Regards

Neha

Edited by: Neha Shukla on Nov 26, 2008 4:14 PM

Read only

Former Member
0 Likes
449

EXAMPLE:

AUTHORITY-CHECK

OBJECT 'ZPLANT'

ID 'WERKS' FIELD vbrp-werks

ID 'ACTVT' FIELD '01'.