SAP CDS PATH EXPR APV



Get Example source ABAP code based on a different SAP table
  


• . ABAP_CDS_ANALYTICAL

ABAP_CDS_DDL - path_expr, Analytical Query

ABAP_SYNTAX
... $[source.$]_assoc1$[parameters $]$[filter$] ...

What does it do?
A path expression in the CDS DDL is a sequence of CDS associations separated by periods (.) whose names are specified using assoc1, assoc2, and so on.
In analytical projection views, path expressions are only supported in the following scenarios:
Language dependencies implemented using the keyword ABAP Addition .
Temporal dependencies implemented in the following format: [to one:date_from <= $parameter.key_date date_to >= $parameter.key_date] ABAP_NOTE key_date can be a parameter , a session variable, or a literal. It must be typed with DATS or DATN. It must be annotated with @Semantics.businessDate .



Latest notes:

Fields included via path expressions can be texts, display attributes, or texts belonging to display attributes. In an analytical cube view, such fields can be text or foreign key associations. In an analytical dimension view, these fields can be text associations.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
The following CDS analytical projection view DEMO_ANALYTICAL_QUERY defines an analytical query. It is based on the cube view DEMO_CDS_CUBE_VIEW. It contains a path expression to a localized text element CurrencyDescription.
DDLS DEMO_ANALYTICAL_QUERY
ABAP_EXAMPLE_END