Show TOC

 Creating Help ViewsLocate this document in the navigation structure

Procedure
  1. Enter an explanatory short text in the Short text field.

    You can find the view at a later time using this short text, for example.

  2. In column Tables on the Table/Join conditions tab page, enter the primary table of the view.
    Caution

    Only tables that are linked with the primary table (indirectly) with a foreign key can be included in the view.

  3. If required, include more tables in the view.

    In a help view you can include only tables that are linked to one another with foreign keys.

    1. Select the primary table in column Tables and choose Relationships.

      The system displays all existing foreign key relationships of the primary table.

    2. Select the foreign keys through their indicators and choose Copy.

      The secondary table involved in such a foreign key is included in the view. The join conditions derived from the foreign keys are displayed. For more information, see Foreign Key Relationship and Join Condition .

    You can also (optionally) include tables that are linked with a foreign key to one of the secondary tables already included.

    1. To do this, select the secondary table in column Tables and choose Relationships.

      The system displays all existing foreign key relationships of the secondary table.

    2. Select the foreign keys by their indicators and choose Copy.

      The join conditions derived from the foreign keys are displayed.

      Note

      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.

  4. On the View fields tab page, select the fields that you want to copy to the view.

    The key fields of the primary table were automatically copied to the view as proposals.

    1. Choose Table fields.

      All the tables contained in the view are listed in a dialog box.

    2. Select a table.

      The fields of the table are now displayed in a dialog box.

    3. Select the indicator of the required fields and choose Copy.
  5. On the Selection conditions tab page, you can (optionally) formulate restrictions for the data records to be displayed with the view. For more information, see Maintaining Selection Conditions for Views .

    The selection conditions define the data records that can be selected with the view.

  6. Choose  with the quick info text Save.

    The system asks you to assign the help view to a package. You can change this package later by choosing Goto → Object directory entry.

  7. Choose  with the quick info text Activate.
Result

The view is now activated. At activation, a log is written. It can be displayed with Utilities → Activation log. If errors or warnings occur when you activate the view, they are displayed directly in the activation log.

Additional Options

  • Create documentation:

    You can create information about using the view by choosing Goto → Documentation. This documentation is output when you print the view, for example.

  • Change data element of a view field:

    On the View Fields tab page, select column Mod (modification) for the appropriate view field. The Data element field is now ready for input. Enter the new data element there. You can enter a data element that refers to the same domain as the data element of the assigned table field here. Cancel the Mod flag if you want to use the data element of the assigned table field again.

  • Check functions:

    By choosing Utilities → Runtime object → Check you can determine whether the definition of the view in the ABAP Dictionary maintenance screen is identical to the definitions in the runtime object of the view. By choosing Utilities → Runtime object → Display you can display the runtime object of the view.

See also:

Help Views