This document explains you about creating an entity type by importing DDIC
structure.
Prerequisites
You must have created a project that comply with OData V4 (the project may or may
not be empty).
Context
Follow below steps to create an Entity Type by importing DDIC structure:
Procedure
- In the tree view, in context menu of Data Model select
DDIC Structure. Wizard step 1 of
3 opens.
- In <Name> enter a name for the entity type or complex type.
- Select Entity Type or Complex Type
as per your requirement.
- In <ABAP Structure> enter the structure that you want to
import.
- Select Create Default Entity Set if you want to create
an entity set by default.
It is recommended to always select this option in case of complex type as
ABAP Structure can have Tables in it and for these Tables, Entity Types are
created. To create Entity Sets for these Entity Types, this option must be
selected.
- Select Next.
- In Wizard step 2 of 3, under Data Source
Parameter select the properties that you want to import.
- Select Next
-
Wizard step 3 of 3 appears. The properties you selected
in previous wizard displays here. Select at least one property as Key Property
in <Is Key>. You can edit the name of the property in
<Property Name>.
At this point the Property Name is not validated with respect to the parent
Entity or Complex Type Name. It is validated at the time of consistency
check.
- Select Finish.
Results
DDIC structure imported successfully.