SAP CAP: Why EntityType and EntitySet Have the Same Name

Seeing the same name for EntityType and EntitySet in CAP-generated OData metadata is expected behavior. It does not, by itself, indicate a metadata error.

How CAP names them

CAP uses identical names for the entity type and its entity set. It does not support assigning separate names to the type definition and the corresponding EntityContainer entry.

The following annotations are not supported for changing these names in CAP:

@odata.entitySet.name
@odata.entityType.name

If an integration expects separate singular and plural names, account for CAP’s naming behavior in the consuming application. Adding these annotations will not provide the requested override.

SAP KBA 3688276 records this behavior as a design decision and states that separate names were not planned at the time of that KBA.

SAP Note

SAP Note 3688276

You May Also Like

Leave a Reply?