11-30-2007 9:57 AM
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.
11-30-2007 10:03 AM
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.
11-30-2007 8:30 PM
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.
11-30-2007 8:36 PM
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