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

dynamic program output

Former Member
0 Likes
642

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
Read only

Former Member
0 Likes
609

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
Read only

Former Member
0 Likes
609

use command AUTHORITY-CHECK OBJECT

Read only

0 Likes
609

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

Read only

Former Member
0 Likes
610

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.

Read only

Former Member
0 Likes
609

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