Show TOC

 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:

  1. Model entity type and entity sets

  2. Define navigation properties for an entity set

  3. 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/MIIODataV2Information published on non-SAP site.

Activities

Here's how you can create an entity and the navigation property for an entity set:

  1. From the SAP MII main menu screen, choose Start of the navigation path Content Development Next navigation step OData Modeller End of the navigation path.

    The OData Modeller screen appears. A list of available entities is displayed.

  2. 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.

  3. To create the navigation property for the entity, choose Start of the navigation path Navigation Next navigation step Add Target Entity End of the navigation path.

    Select the target entity from the available entities.

  4. 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.

  5. Multiplicity is maintained to enable the $metadata operation on the entity sets. By default, multiplicity is set to Many.

  6. 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.

  7. Save the navigation property.

  8. You can now perform operations compliant with OData Version 2.0 on the entity sets.