
Maintenance View
Definition
Related data in several tables can be maintained together in a maintenance view.
Structure
A maintenance view has the samee key as its primary table. To ensure that the system can write the records inserted in a maintenance view correctly into the tables in the view, put all key fields of the primary table in a maintenance view.
Each entry in the primary table can have at most one dependent data record in the secondry table. The only exceptions are the text tables of tables in the view which have the additional key field Language. The system puts the logon language in the language field during the table maintenance. You cannot put the language field in the view explicitly.
You can maintain text table entries in other languages with the translation function in transaction SM30.

You must regenerate the maintenance dialog if you change the definition of a table/view with a generated maintenance dialog, e.g. add or remove fields, or change the maintenance attribute or a selection condition.
Maintenance Attributes
You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be R (read only), H (hidden), or S (subset).
A field flagged R is not ready for input by the user on the screen. When a new data record is created, it must be filled automatically in the background. To fill a field automatically in the background, create a routine for an
A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
The system writes R and H fields to the database like all other fields when a new data record is saved.
A field flagged S restricts the work area.
The system only shows data records for which this subset field has the specified value. This restriction of the work area remains effective when you create new data records.
View Variant
You can define any number of view variants for an existing view. The view variants do not have their own generated maintenance dialogs, they use the base view. The view variants can differ from their base view by different selection conditions and a different field selection.