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 make some fields of a view non editable

Former Member
0 Kudos

Hi experts,

I need to make some fields like system user, system time and system date of a view non editable and after saving values for all other editable fields, the system should fill the values for the non editable fields as well.

Kindly help in this regard.

3 REPLIES 3

Former Member
0 Kudos

In the program code for that filed make screen-INPUT = 0. in Loop at screen.. block.

Also while displaying the fields fill values into those by just passing system variable.

p_date = sy-datum.

p_user = sy-uname. ...etc

use the same while updating the view.

Former Member
0 Kudos

I am assuming that you created a maintenance view for your table. Under view fields there is a column called 'Maintenance Attribute for view field' (one character field with 'P' in the column. Set that column value to 'H' for the fields that you want to hide.

You then have to go to SE54, give your maintenance view name, in the menu, 'Environment-->Events' create an event 01 with your own code to fill in those hidden fields. Look with key words 'Table Events' in this forum and you will get a lot of examples.

Former Member
0 Kudos

If you use table main. generator for this

goto screen layout and

double clik on the field, and in the attributes, choose Program tab (bottom), and select the check box output only.

Pavan