Start of Content Area

Procedure documentation Creating Maintenance Views  Locate the document in its SAP Library structure

Procedure

  1. Enter an explanatory short text in the field Short text.
  2. You can for example find the view at a later time using this short text.

  3. Enter the primary table of the view under Tables in the Tables/Join conditions tab page.
  4. Only those tables that are linked with the primary table (indirectly) with a foreign key can be included in the maintenance view.

  5. If required, include more tables in the view. In a maintenance view you can only insert tables that are linked to one another with foreign keys.
  6. Place the cursor on the primary table and choose Relationships. All existing foreign key relationships of the primary table are displayed. Select the required foreign key and choose This graphic is explained in the accompanying textCopy. The secondary table used in such a foreign key is included in the view. The join conditions derived from the foreign keys (see Foreign Key Relationship and Join Condition) are displayed.

    You can also insert tables that are linked by foreign key with one of the secondary tables that was already inserted. To do this, place the cursor on the secondary table and choose Relationships. Then proceed as described above.

    For maintenance and help views, there are certain restrictions on the foreign keys with which the tables can be included in the view (see Restrictions for Maintenance and Help Views). The foreign keys violating these conditions are displayed at the end of the list under the header Relationships with unsuitable cardinality.

  7. On the View fields tab page, select the fields that you want to copy to the view.
  8. Choose Table fields. All the tables contained in the view are displayed in a dialog box. Select a table. The fields of the table are now displayed in a dialog box. You can copy fields by selecting them in the first column and choosing This graphic is explained in the accompanying textCopy.

    All key fields of the primary table must be included in a maintenance view. In addition, all key fields of secondary tables that are not involved in the foreign key (that is, which are not linked via a join condition to a key field already included in the view) must be included in the view.

    This ensures that the records inserted with a maintenance view can be written correctly in the tables contained in the view.

  9. On the Selection conditions tab page, you can (optionally) formulate restrictions for the data records that can be displayed with the view (see Maintaining Selection Conditions for Views).
  10. The selection conditions define the data records that can be selected with the view.

  11. In the Maintenance status tab page, define the maintenance status of the view.
  12. The maintenance status defines how you can access the view data with the standard maintenance transaction (SM30).

  13. Choose This graphic is explained in the accompanying text.
  14. At activation, a log is written; it can be displayed with Utilities ® Activation log. If errors or warnings occurring when the view was activated, the activation log is automatically displayed.

  15. Go to Transaction SE54 with Environment ® Tab.maint.generator.

From the view definition you can generate maintenance modules and maintenance interfaces that distribute the data entered with the view to the base tables of the view. You can find more information in Creating a Maintenance Dialog.

Other Options

See also:

Maintenance Views

BC - Generating the Table Maintenance Dialog

End of Content Area