CDS Knowledge Base · Query Builder

Pick CDS view(s) — join more than one if you need to — then compose SELECT / WHERE / GROUP BY / HAVING / ORDER BY against their real field names.

⚠️ This only generates reference syntax from field names in this data repo. It does not connect to, validate against, or run anything on a real SAP system — check the output before using it.

Start with a view

open on GitHub ↗

Select

Tick fields to include. Pick an aggregate to wrap a field (e.g. SUM), or leave "—" for a plain column. Nothing ticked = SELECT *. Fields show as alias.Field once more than one view is joined.

Where

Group By

Fields not ticked here that ARE ticked above with an aggregate are fine; a plain (non-aggregated) SELECT field should usually also be ticked here.

Having

Filters applied after GROUP BY — typically on an aggregate, e.g. COUNT(*) > 1.

Order By

Generated query

Copied!