Creating a Projection View

Enter the name of the view in the initial screen of the ABAP Dictionary, select object class Views and choose Create. A dialog box appears in which you must choose the type of the view. Select the type Projection view.

The maintenance screen for projection views appears. You will see an input field for the base table of the projection view and an input area for view fields.

  1. Enter a short explanatory text in the field Short text.
  2. In the Base table field, enter the name of a table.
  3. Select the fields of the base table which you want to include in the view.
  4. You can enter the field names directly. If you do not know the field names, you can also copy them from the tables. To do this, position the cursor on a table and choose TabFields. The fields of the table are now displayed in a dialog box. You can copy fields from here by marking the first column and choosing Copy.

  5. Save your entries. You are requested to assign the view a development class. You can change this development class later with Extras ® Object directory entry.
  6. Activate the view with View ® Activate. A log is written during activation. You can display this with Utilities ® Activation log. Errors or warnings occurring during the activation of the view are displayed directly in the activation log.
  7. Create the documentation for the view with Goto ® Documentation. This documentation is output for example when you print the view with View ® Print.

Optional Settings

You can make the following optional settings:

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 F4 help key for the Data element field, you can display all the data elements which 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 again.

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 for the view.

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

With Extras ® Runtime object ® Check you can determine whether the definition of the view in the ABAP Dictionary maintenance is identical to the specifications in the runtime object of the view. With Extras ® Runtime object ® Display you can display the runtime object of the view.

If a foreign key which was automatically included in the view definition 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