cancel
Showing results for 
Search instead for 
Did you mean: 

What are the advantages of CDS views and assosiation in HANA

0 Kudos

Hi there,

I am new to SAP ABAP, and i wanted to know that, what is the advantage of using CDS views in HANA. Also i found that the syntax of assosiation, quite complex. what is the advantage of using assosiation.

Thanks in advance 🙂

Accepted Solutions (0)

Answers (2)

Answers (2)

menpa
Employee
Employee

The advantage is simple. It has more functionality then the standard views.

For example:

Views defined in a CDS document can make use of the following SQL features:

  • CDS Type definition
  • Expressions and functions (for example, “a + b as theSum”)
  • Aggregates, “GROUP BY”, and “HAVING” clauses
  • Associations (including filters and prefixes)
  • ORDER BY, CASE, UNION, JOIN, and TOP
  • With Parameters
  • Select Distinct
  • Spatial Data (for example, “ST_Distance”)

I also recommend to check the follwoing helps.

0 Kudos

Hello,

Isn't this something that is available in ABAP 7.52?

I'd go a bit deeper by asking what's the advantage of CDS VS Native SQL (ADBC) or other features of ABAP 7.52 (allowing aggregation and much more)

Thanks! 🙂