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: 

how to lock fields in a transaction for one user

Former Member
0 Kudos

Does anyone knows how to lock fields in a transaction (e.g in transaction mc46 we would like to have for one user :

plant, sales organisation and purchasing organisation fixed with values and grey)

3 REPLIES 3

Former Member
0 Kudos

by using Transaction Variants u do this thiing.

check tcode SHD0 and Documentation also avail there.

Regards

Prabhu

dani_mn
Active Contributor
0 Kudos

HI,

you can restrict users using Authorization profiles of the user for the objects you want.

SU22 is the transaction to be used for maintaining profiles.

OR using abap you can do this.

do in the PBO of the module pool program.

make a list of users in some table from which you can look for the users you want to disable these.

if sy-user = 'BRANKO'.

LOOP AT SCREEN.

if screen-name = 'PLANT'.

screen-input = 0.

modify screen.

endif.

ENDLOOP.

endif.

REgards,

Former Member
0 Kudos

Hi,

create transaction variant using SHDO and

inable fields by selecting output and invisible

attributes.

Regards

amole