BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

How to use reserved words as property names in your OData service?

Setting a CDS view alias to a reserved OData word, such as Number, fails compilation with 'NUMBER is a reserved word'. The fix for a RAP-based OData service is the @odata.property.name annotation: it lets the underlying CDS view keep a compiler-safe name (NumberInStock) while the $metadata EntityType still exposes the field as Number, shown against a products view and its generated EDMX.

Where it sits

Explains
Metadata publishingMetadata publishingcapabilityDescribing a service to something other than a human — service metadata for clients, and machine-readable descriptions for registries and discovery.
Source
reachable

Who is behind it

Andre_Fischerauthor

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
3,785

For metadata-publishing

on the edge
Applies in
authored
abap

More on this10

Group by
Piece, what it offersStill applies
Also explainingMetadata publishing10
September 15th: What's New on developers.sap.com
SAP Community, Thomas Jung
nothing recorded
How to rename an OData V4 service?
SAP Community, Andre Fischer
nothing recorded
SAP ORD Made Simple: What It Does and Why It’s Crucial in your SAP Landscape + Purpose and Value
SAP Community, Yogananda
nothing recorded
Where ORD Is Used in SAP Datasphere, SAP Business Data Cloud & SAP Databricks
SAP Community, Yogananda
nothing recorded
CAP, CDS, CDL, CSN and jq - finding associations
SAP Community, DJ AdamsThe reasoning
nothing recorded
Importing an external data model using CDS Graphical Modeler for Visual Studio Code
SAP Community, Xiao-fei_Song
nothing recorded
Importing external edmx files to your CAP project using the CDS Graphical Modeler
SAP Community, Xiao-fei_Song
nothing recorded
SAP Cloud Platform Backend service: Tutorial [12]: CDS : local: build
SAP Community, CarlosRoggan
nothing recorded
Develop a full stack Business application with SAP Cloud Application Programming Model
SAP Community, former_member584731
nothing recorded
Introducing the Cloud Application Programming Model (CAP)
SAP Community, Daniel7
nothing recorded

Details

Graph5 edges
POINTS OUT →
explainsMetadata publishingcapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communityabap-cloud-tag
discovered viaSAP Communityabap-development-tag
discovered viaSAP Communityabap-rap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • Entered the atlasDiscovered via SAP Community · abap-cloud-tag, SAP Community · abap-development-tag, SAP Community · abap-rap-tag.
For your agent
Ref
content:how-to-use-reserved-words-as-property-names-in-your-odata-service
JSON
/content/how-to-use-reserved-words-as-property-names-in-your-odata-service.json
MCP
Connecting an agent