Model Table
Model Table is a data model function that allows you to define and access local and remote database tables.
Key Features
Header
-
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 Table sources are available for selection:
-
Environment: The data model is managed in the Environment. You can use the Transport Data option to decide if the data in the model table is transported together with the environment through the system landscape or not.
-
Data Dictionary: The data model is managed externally and it is referenced within the Model Table function to make it available in the environment. For this, you need to enter the table name. Field information is synchronized into the environment fields.
-
HANA: The data model is managed externally and it is referenced within the Model Table 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.
-
SDA: The data model is managed externally in a remote system and it is referenced within the Model Table 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.
-
Fields
If the Model Table source is Environment, you can enter the fields of the model table as a list in the Fields tab.
If the Model Table source is Data Dictionary, SAP HANA or SDA, the system automatically reads the selected table and makes field proposals in the Sync Model Fields dialog when you choose Synchronize. The field state denotes whether the fields are already available or new fields are added to the environment. You have the option to change the field name and description of the new fields which should be unique. You can also exclude certain fields from read access. If you want the changes to be reset to the initial state of the field, choose Reset Proposal.
Further Details
If a DDIC table that is used as the source for a model table 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 Exclude, the system filters source data, and selects only data for the current system client. If you select Exclude, the system selects all data from the source object, and does not filter by client.
If a model table that uses a DDIC table as a source is used as the target for a writer function, the system always poulates the client field with the value of the current client, irrespective of whether or not you have selected the Exclude option for the client field.
Procedure: Using the Environment as Model Table Source
-
In edit mode, choose the Add button.
The Function window appears.
-
Fill in the required fields:
- Function
- Description
- Function Type = “Model Table”
- Fill in optional fields as necessary:
- Event Handling
- Logging
- Processing Type
- Partitioning
-
Choose Ok and save your changes.
-
In edit mode, fill in the following function details:
- Connection Type: Choose either “Physical” or “Logical”.
- Model Table Source = “Environment”
- Transport Data
-
On the Fields tab, add the fields needed for the table:
-
Choose Add.
The Add Fields window appears.
-
Select all the fields needed for the table from the list.
-
Choose Ok.
-
The fields are now available in the Fields tab.
-
-
Activate the function.
-
In edit mode on function details, choose Maintain Data
The Data Editor appears.
This allows you to load the data in the model table. To maintain the data follow the steps below:-
Choose Edit.
-
Input all the data and save.
-
Related Information
For more information about common aspects of SAP Profitability and Performance Management functions, see Concepts for Key Users.