Database Independent Code-To Data
Database Independent Code-To Data
Syntax enhancements:
Escaping of host variables
Comma-separated select list
Note:
Very important for you to know that you don't need to
change your whole report now to the new SQL
statement.
The old style will stay intact so you will still be able to use
it.
Literal Values
• Can now be used in the SELECT list
• Allow for a generic implementation of an
existence check
Arithmetic Expressions
INSERT
Insert record from internal table
Syntax:
INSERT <DB TABLE> FROM TABLE <INTERNAL TABLE>.
UPDATE
Update record from internal table
Syntax:
UPDATE <DB TABLE> FROM TABLE <INTERNAL TABLE>.
MODIFY
Update record from internal table
Syntax:
MODIFY <DB TABLE> FROM TABLE <INTERNAL TABLE>.
DELETE
Update record from internal table
Syntax:
DELETE <DB TABLE> FROM TABLE <INTERNAL TABLE>.
Advantages
Semantically rich data models, i.e. CDS builds on
the well-known entity relationship model and is
declarative in nature, very close to conceptual
thinking.
Advantages
Efficiency, i.e. CDS offers a variety of highly efficient
built-in functions — such as SQL operators,
aggregations, and expressions — for creating
views.
Extensibility, i.e. Customers can extend SAP-
defined CDS views with fields that can be
automatically added to the CDS view.
Data Preview
Consumption via
Open SQL
Data Preview (context menu in ADT)
SAP List Viewer
SAP NetWeaver Gateway (OData Model)
View-on-View
View can have other views as data basis
No restriction on the number of layers