Model View

Model View is a data model function that allows read access to local and remote database tables and views.

Key Features

Header

In the header, you can choose any of the following connection types:
  • If you select the connection type “Logical”, only the field Connection Name is available for selection.

  • If you select the default connection type “Physical” the following Model View sources are available for selection:
    • Data Dictionary Table: The table is managed externally and is referenced within the Model View function to make it available in the environment. You need to enter the table name. Field information is synchronized into the environment fields.

    • Data Dictionary View: The view is managed externally and is referenced within the Model View function to make it available in the environment. You need to enter the view name. Field information is synchronized into the environment fields.

    • HANA Table: The table is managed externally and it is referenced within the Model View function to make it available in the environment. You need to enter the authoring schema and table name. Field information is synchronized into the environment fields.

    • HANA View: The view is managed externally and is referenced within the Model View function to make it available in the environment.You need to enter the authoring schema and view name. Field information is synchronized into the environment fields.

    • SDA: The table or view is managed externally in a remote system and is referenced within the Model View function to make it available in the environment. You need to enter the remote source name, remote database, remote schema and remote table name. Field information is synchronized into the environment fields.

    • CDS View: The view is defined for existing database tables and any other views or CDS views in the ABAP Dictionary using the statement DEFINE VIEW in the CDS DDL in ABAP Core Data Services (CDS). This is done in the CDS source code of a CDS data definition in the ABAP Development Tools.

Fields

The fields of the table or view are listed on the Fields tab. You can also exclude fields from read access.

Parameters

If the referenced table or view has parameters, they are listed on this tab. For each parameter, you need to assign either a constant value or an environment parameter.

Further Details

If a DDIC table overview that is used as source for a model view has a client field (field with DDIC data type CLNT), the system selects data differently, depending on whether or not you have selected the Exclude option. If you do not select the Exclude option, the system filters source data, and selects only data for the current system client. If you select the Exclude option, the system selects all data from the source object, and does not filter by client.

Procedure: Using the Data Dictionary Table as Model View Source

Follow the steps below to create a Model View function in the environment:
  1. In edit mode, choose the Add button.

    The Function window will appear.

  2. Fill in the required fields:
    • Function
    • Description
    • Function Type = “Model View”
  3. Fill in any optional fields as necessary:
    • Event Handling
    • Processing Type
    • Partitioning
  4. Choose Ok to save your changes.

  5. In edit mode, fill in the following function details:
    • Model View Source = “Data Dictionary Table”
    • Connection Type: Choose either “Physical” or “Logical”.
    • Table Name
  6. On the Fields tab, choose Synchronize.

    The fields of the Data Dictionary (DDIC) table are listed.

  7. Activate the function.

Related Information

For more information about common aspects of SAP Profitability and Performance Management functions, see Concepts for Key Users.