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 for Z Program for creating entries

former_member624066
Participant
0 Likes
749

I have created a dialog program to maintain employee details with menus Create, Change, Display

My concern is that i want to restrict some user for creating entries in database table through this dialog program those users only authorize to display data.

Please guide me how to do achieve above.

Thanks

I have created a dialog program to maintain employee details with menus Create, Change, Display

My concern is that i want to restrict some user for creating entries in database table through this dialog program those users only authorize to display data.

Please guide me how to do achieve above.

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
719

Hi

Try to create a ztable where you have two fields named user and authorization.Before updating the entries of employ check for authorization in ztable.

Regards

Srilaxmi

Read only

0 Likes
719

HI Srilaxmi,

Thanks for quick reply,

Will u please explain u r concept in details .

Read only

former_member156446
Active Contributor
0 Likes
719

Hi Suyag, search in SCN with key words "Authorization Objects" "SU21" "authority-check"

that will help you solve your problem.

Read only

Former Member
0 Likes
719

Hi,

You can make use of the system variable sy-uname which holds the user logon name. Based on this u can decide whether to allow the user in edit mode or display mode.

Regards,

Naga Sai

Read only

0 Likes
719

you can create a value range for the restricted user and then in your program you can check using sy-uname .