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 Checks

Former Member
0 Likes
335

Hi,

I am doing an ALV report for Handling Units. Selection-screen consists of 3 fields-Plant(mandatory), Material Number and Warehouse Number.

Security Restrictions: The following authorization checks or security restrictions must be programmed in the report.

1.The report has to be run by the person from Logistic and Warehouse department.

2.The report should have a provision to execute the report for a particular plant only.

3.The users from one plant should not be able to run the report for other plant.

Can any body tell me the logic for the above authorization checks. Is there any FM for the above requirement.

Thanks,

Bala.

2 REPLIES 2
Read only

Former Member
0 Likes
308

Make that object Authorization specific.Assign roles,profiles (PFCG)to the object.Then run the report.

Message was edited by:

SAI

Read only

Former Member
0 Likes
308

Hi Bala,

You dont need a function module to check the authorizations, instead just check the authority objects (the code for the same can be generated through pattern function in ABAP editor).

The main challenge is to find the appropriate authority object, once thats done you can ask your basis team to generated profiles on the object, assign the profile to a role and attach users to the roles.

All of the above is through Role Maintenance transaction PFCG.

To search for an appropriate authorization object goto transaction SUIM.

An example for plant level authority object (and popular choice) is M_MATE_WRK

.

Hope this information helps you to get a head start.

Regards,

Aditya