Application Development 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: 

dynamic program output

Former Member
0 Kudos
92

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
59

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.

4 REPLIES 4

Former Member
0 Kudos
59

use command AUTHORITY-CHECK OBJECT

0 Kudos
59

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

Former Member
0 Kudos
60

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.

former_member555112
Active Contributor
0 Kudos
59

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