Quantcast
Channel: ABAP Development
Viewing all articles
Browse latest Browse all 948

Core Data Services (CDS) ABAP Feature Matrix

$
0
0

With SAP NW ABAP 7.4 SP5 the first instalment of Core Data Services (CDS) support in ABAP was delivered (see New Data Modeling Features in SAP NW ABAP 7.4 SP5). Since CDS is a relatively new technology, new features are constantly being added. Below is a short overview of which features were released with which SAP NW ABAP 7.4 support package. For details about the features you should check out the 7.40 ABAP Keyword Documentation.

 

Core Data Services (CDS) ABAP View Building

 

Featuresince SAP NW ABAP 7.4 SP5since SAP NW ABAP 7.4 SP8
SQL Joins
  • INNER JOIN
  • LEFT OUTER JOIN
  • RIGHT OUTER JOIN
SQL Set Operations
  • UNION
  • UNION ALL
SELECT Clauses
  • WHERE
  • GROUP BY
  • HAVING
  • AS
Aggregate Functions
  • AVG
  • MAX
  • MIN
  • SUM
  • COUNT( DISTINCT )
  • COUNT( * )
Literals
  • In SELECT list, e.g.: 'literal' AS fieldName
  • As RHS value
Arithmetic Operators
  • +
  • -
  • *
  • / (Float-based division)
Numeric Functions
  • CEIL
  • MOD
  • ABS
  • DIV (Integer-based division)
  • DIVISION (Decimal-based division)
  • FLOOR
  • ROUND
String Functions
  • SUBSTRING
  • LPAD
  • CONCAT
  • REPLACE
Other Functions
  • CAST to built-in DDIC types, e.g.: abap.fltp
  • COALESCE
  • CURRENCY_CONVERSION
  • UNIT_CONVERSION
  • DECIMAL_SHIFT
Conditional (CASE) Expressions
  • "Simple" CASE (behaves like switch statement)
  • Nested CASE statements
  • "Searched" CASE (behaves like if ... else if)
Conditional Expressions
  • Boolean Operators
    • NOT, AND, OR
  • Comparison Operators
    • BETWEEN, =, <>, <, >, <=, >=, LIKE
    • IS [NOT] NULL**

 

**Only in WHERE conditions

Extensibility

$EXTENSION.* (support for database table extensions)

EXTEND VIEW**

 

** Added elements cannot be input parameters, path expressions or aggregate expressions

(Unmanaged) Associations
  • Path expressions in
    • SELECT list
    • FROM clause
    • WHERE clause
    • HAVING clause
  • Filter conditions in path expressions, e.g.: products._texts[ langu = 'EN' ] as english_name

"Core" Annotations

  • End-user Texts
  • (Implicit) Client Handling
  • SAP Buffering
  • Reference Fields for amounts/quantities
  • Data Aging
  • Compiler (compare filter conditions of path expressions to reduce number of JOINs)
Other
  • KEY elements
  • Input parameters

Viewing all articles
Browse latest Browse all 948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>