Description
In CDS 10 the cds.fiori.calc_elements compat flag is removed. Projects that had set it to false to suppress calculated-element exposure in OData metadata will now always expose calculated elements. The flag has no effect when set and should be removed. OData $metadata documents may change shape for services that use calculated elements, which can affect Fiori Elements UIs or third-party consumers.
How to Check
- [ ] Search for
cds.fiori.calc_elementsinpackage.json,.cdsrc.json, and environment-specific config files. - [ ] If the flag is set to
false, identify all entities with calculated elements in the service projection and verify that the resulting OData metadata is acceptable to consuming UIs and clients.
Migration Steps
Remove the flag from CDS configuration:
diff// package.json or .cdsrc.json "cds": { "fiori": { - "calc_elements": false } }Regenerate and inspect the OData
$metadatafor affected services to confirm the shape is correct.Update any Fiori Elements annotations or client-side code that relied on calculated elements being absent from metadata.