Creating Projection Views 

Procedure

  1. Select the object class View in the initial screen of the ABAP Dictionary, enter the view name and choose Create.
  2. A dialog box appears in which you must select the view type.

  3. Select the type Projection view and choose Create.
  4. The maintenance screen for projection views appears. This screen shows an input field for the base table of the projection view and an input area for view fields.

  5. Enter an explanatory short text in the field Short text.
  6. Enter a table name in the field Base table.
  7. Select the fields of the base table that you want to include in the view.
  8. To do this, position the cursor on the table and choose TabFields. The fields of the table are now displayed in a dialog box. You can copy fields from here by marking them in the first column and choosing Copy.

  9. Save your entries.
  10. You are asked to assign the view a development class. You can change this development class later with Extras ® Object directory entry.

  11. Activate the view with View ® Activate.

A log is written during activation. You can display it with Utilities ® Activation log. If errors or warnings occurring when the view was activated, they are displayed directly in the activation log.

Other Options

Creating Documentation

You can create information about using the view with Goto ® Documentation. This documentation is output for example when you print the view.

Changing the Data Element of a View

Select the Mod column (modify) for the view field and choose Enter. The Data element field is now ready for input. Enter the new data element there. This data element must refer to the same domain as the original data element. With the input help (F4 help) for the Data element field, you can display all the data elements that refer to the domain of the field.

If you want to assign the original data element again, you only have to reset the Mod flag and choose Enter.

Changing the Maintenance Status

The maintenance status determines how you can access the view data from ABAP programs (read only, read and change). Choose Extras ® Maintenance status. A dialog box appears in which you can select the maintenance status of the view.

Displaying View Data

With Utilities ® Display data you can determine which data can be selected with the view.

Check Functions

With Extras ® 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. With Extras ® Runtime object ® Display you can display the runtime object of the view.

Displaying the Foreign Keys of a View Field

If a foreign key that was automatically copied to the view definition during activation is defined for the field of the base table, you can display it. To do so, position the cursor on the view field and choose Extras ® Foreign keys.

See also:

Projection Views