Show TOC

Data Model Definition via Declarative MethodLocate this document in the navigation structure

In SAP 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:

NoteThe following image contains links to more information.
In SAP 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. Entity Types Entity Sets Associations Association Sets Function Imports Complex Types
You can create and define any of the data model elements mentioned in the diagram 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.
  • Right-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.

After defining your model, generate runtime artifacts. For more information, see Generating Runtime Objects