2009 May 29 7:46 AM
Hi Experts,
I Have a problem regarding an application. In that I have to check the user's authorization before displaying screens. If he/she authorized to run that application I have to display the screens in change mode and if not I have to display the screens in display and disable mode.
Can anybody tell me what shell i do for this issue.
Presently I'm not doing this authorization check so all screens are in change mode. Now I want to do this authorization check in load of program event and there i have to check this authorization i think. but how should i do dynamical changes to my screens if he/she is not authorized.
Thanks
g.s.naidu
2009 May 29 7:51 AM
Hi,
First create an authorization object in t code SU21.
Then check in your code in the PBO of your screen is logged user(syuname) is auth. or not by AUTHORITY-CHECK statement.
Accordingly modify the screen.
Hi,
Create an authorisation object and assign various activities to it.
Add this object in the roles of the various users and in your program check this object using 'AUTHORITY-CHECK' statement and then call the screens accordingly.
Regards,
Ankur Parab
2009 May 29 7:49 AM
2009 May 29 7:50 AM
Dear naidu,
You can use SY-UNAME for determining user dynamically and then chose to display or change option in the coding part.
Hope this is useful.
Regards,
Vijay
2009 May 29 7:51 AM
Hi,
First create an authorization object in t code SU21.
Then check in your code in the PBO of your screen is logged user(syuname) is auth. or not by AUTHORITY-CHECK statement.
Accordingly modify the screen.
2009 May 29 7:53 AM
Hi,
Create an authorisation object and assign various activities to it.
Add this object in the roles of the various users and in your program check this object using 'AUTHORITY-CHECK' statement and then call the screens accordingly.
Regards,
Ankur Parab
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |