SAP CDS PROJ VIEW PATH EXPR



Get Example source ABAP code based on a different SAP table
  


• . ABAP_CDS_TRANS_QUERY

ABAP_CDS_DDL - path_expr, Transactional 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. The rules for path expressions in CDS projection views are similar to path expressions in CDS view entities, see topic CDS DDL - CDS View Entity, path_expr with the following differences:
The filter of a path expression of a CDS projection view cannot define a join type. It can only define a cardinality and a filter condition as described in topic CDS DDL - CDS Projection View, filter.
The result set of the CDS projection view must be the same as the result set of the projected entity. Therefore, the target cardinality of each traversed association must be one. This can be achieved by using a filter condition .
The keyword LOCALIZED can be used to display text elements in the user's logon language. All previous association paths must be filtered to one.
It is possible to pass parameters in association paths. This works in the same way as parameter passing in CDS view entities, see topic CDS DDL - CDS View Entity, path_expr.