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 problem

Former Member
0 Likes
402

Hi to all

My requirement is....

I my company there is two types of salary processing.

senior staff salary(Upper management) and below that level salary.

Now our requirement is to impose a authorization only certain users can see senior staff salary.

But reports are common .

How to impose authorization.

Please guide me....

3 REPLIES 3
Read only

dhruv_shah3
Active Contributor
0 Likes
389

Hi,

First you have to create A role in that assign that transaction of report

and according to your requirement assign that role to the some persons of the lower staff.

HTH

Regards,

Dhruv Shah

Read only

Former Member
0 Likes
389

Hi,

First create a Role with Tcode PFCG

Then maintain the authorization objects to this role. like DISPLAY

Assign the users who can view the salary...

Now write a BAdi method, where you check the Authorization object matches the one which has been set in above step. Return a message if user not authorized.

now call this BAdimethod in your code with the authorization code. if there is a message returned, that means user is not authorized...

Reward points if found helpful

Seema

Read only

0 Likes
389

Hi

create a an auth object and assign two values to it.

based on the value assigned to the auth object in the user master record run the select statement.

code ur select statement accordingly.

Thanks

Achu

Reward points if the reply is helpful to u.