This document describes creating complex types in the project complying with OData
V4.
NoteThe following image contains links to more information.
Context
Use complex types to define structured properties for entity types or other complex
types without exposing complex types themselves as an independent OData entity.
Because complex types consist of a collection of properties without a unique key,
they can only exist as properties of a containing entity or, outside an entity, as a
temporary value. Complex types comprise:
Prerequisites
You should have already created an OData V4 project.
Procedure
To create a complex type in your Service Builder project, proceed as follows:
- Right click the Data Model folder, and click . The Create Complex Type dialog box opens.
- Enter a name in Complex Type Name column and click . The complex type displays in the mass maintenance view. Do the
following in the mass maintenance view:
- In ABAP Structure column, enter an
appropriate ABAP structure name or use the input help to search for
an existing structure in the repository.
- Internal Name is generated by the system based on the Complex Type
name. This field is editable and you can change the Internal Name
anytime.
- To create another Complex Type click
- Click
After creating complex types, define properties for the complex type
created.