OData Modeller
You can access the Manufacturing Data Objects (MDO) in SAP MII to create entity types and entity sets using the OData Modeller
. The OData modeller uses OData protocol Version 2.0.
The OData modeller helps you to:
Model entity type and entity sets
Define navigation properties for an entity set
Perform operations on these entity sets that are compliant with the OData Version 2.0. The service document for the OData service can be obtained using http://<server>:<port>/XMII/MIIODataV2
.
Here's how you can create an entity and the navigation property for an entity set:
From the SAP MII main menu screen, choose .
The OData Modeller
screen appears. A list of available entities is displayed.
To create a new entity, choose Create
. Enter the entity name and select MDO to access.
The properties of the entity are displayed. Properties that are keys is indicated. You can also see properties whose value can be empty. Save the entity type or entity set.
To create the navigation property for the entity, choose .
Select the target entity from the available entities.
To create the property mapping, select the target entity. A list of key properties is displayed. Map to the relevant property from the target entity.
Multiplicity
is maintained to enable the $metadata
operation on the entity sets. By default, multiplicity is set to Many.
Relationship type
: In an Association
type of relationship, when an entity is deleted the corresponding records in the target entity are deleted. In a Composition
type of relationship, when an entity is deleted the target entity is also deleted.
Save the navigation property.
You can now perform operations compliant with OData Version 2.0 on the entity sets.