Show TOC

Defining a Data ModelLocate this document in the navigation structure

In SAP NetWeaver Gateway Service Builder, you can define a new data model within your project to suit your exact service requirements based on the data you want to expose at runtime.

Context

You can define a new data model by creating (and editing) individual data model elements and their properties. In the tree view of the Service Builder, you use the data model folder structure to create and edit the individual data model elements. The data model structure comprises the following subfolders for each of the element types:
  • Entity Types
  • Complex Types
  • Associations
  • Entity Sets
  • Association Sets
  • Function Imports
You can create and define any of the data model elements listed above directly in the Data Model folder of your project. When you create a new data model element, it is located in the relevant predefined subfolder within the Data Model folder. You can create new data model elements in one of the following ways:
  • Double-click the specific data model element in the data model folder and make the relevant entries.
  • ight-click the Data Model folder, select Create and then select the data model element you want to create.
  • Expand the Data Model folder, right-click the data model element you want to create and select Create.