In OData (Open Data Protocol), an entity is a representation of a data record that typically maps to a row in a database table.
Key Concepts:
-
Entity = Object or Record
-
For example, a
Customer
,Order
, orProduct
can each be entities.
-
-
Entity Type
-
Defines the structure of an entity: its properties (fields) and key (unique identifier).
-
Steps
- Expand the Data Model
- Right-click Entity Types → Select Create.
- Enter:
- Entity Name: SalesOrder
- ABAP Structure: VBAK (optional but helpful)
- Mark Key Field (e.g., VBELN)
Press Enter and confirm field generation.
Repeat this to create another Entity Type SalesItem (based on structure VBAP).