‎2007 Feb 16 12:27 PM
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.
‎2007 Feb 16 12:33 PM
Make that object Authorization specific.Assign roles,profiles (PFCG)to the object.Then run the report.
Message was edited by:
SAI
‎2007 Feb 16 12:46 PM
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