Sep 13, 2026 · Ravi Soni · 4 min read
CDS views are the best AI context layer you already own
Before you build a vector database, look at the semantic layer SAP already gives you.
CDSS/4HANARAG
Teams reaching for RAG on SAP data usually start by exporting tables. That throws away the most valuable thing SAP has: the semantics.
A well-annotated CDS view carries labels, units, currencies, associations and authorisation. Expose it through OData and an agent can ask precise questions — "open sales orders for customer X with credit block Y" — without ever learning table names.
Practical guidance
- Build consumption views for the agent, not raw interface views
- Use
@ObjectModel.textand@Semanticsannotations — the model reads them - Return small pages; the agent should filter, not paginate
- Log every query the agent runs; you'll learn what it actually needs