ABAP Keyword Documentation → ABAP − Reference → Processing External Data → ABAP Database Access → ABAP SQL → ABAP SQL - Operands and Expressions → ABAP SQL - SQL path expressions sql_path
ABAP SQL - Restrictions for Path Expressions
In principle, the same restrictions apply to path expressions in ABAP SQL and the CDS associations or CTE expressions used there as when using a corresponding join expression. For example, a path expression cannot be used together with the addition ORDER BY PRIMARY KEY. These restrictions are documented in the clauses in question. The following restrictions currently also apply:
- Requirements on the CDS entities or common table expressions
- The target data sources of the associations of a path expression cannot be database tables or database views with replacement objects.
- No literals with prefixed #domain or :domain can be used in the CDS associations of the path expression to check the fixed value in the value range of a domain.
- Due to implicit client handling, no
associations can be used whose ON condition accesses the client columns
of their source data source or target data source. This cannot be bypassed using the obsolete addition
CLIENT SPECIFIEDeither.
- Requirements on ABAP SQL
- If a value greater than 1 is defined for the cardinality of an association of a path expression
in the
FROMclause for max, an identical path expression must also be specified in theSELECTlist.
- If the addition
CORRESPONDINGor an inline declaration@DATA(...)is used in the INTO clause of aSELECTstatement, any columns of theSELECTlist specified using a path expression must have an alias namealiasdefined usingAS.
- A data source specified as a path expression
in the
FROMclause can be used in theSELECTstatement only by using an alias nametabaliasdefined usingASin front of the column selector~.
- The obsolete addition
CLIENT SPECIFIEDcannot be used together with path expressions containing CDS associations whose target data source is client-specific. In path expressions in the FROM clause, the source data sources of the associations cannot be client-specific either.
- The addition
USING CLIENTand the obsolete additionCLIENT SPECIFIEDcannot be combined with path expressions containing CDS associations or CTE associations that are published by common table expressions.
- If the alias name
tabaliasis specified statically usingASwhen theFROMclausesource_syntaxis specified dynamically, no path expressions can be used here.
- Path expressions cannot be used in the
ONcondition of a join expression.
- In
SELECTstatements, path expressions cannot currently be used together with the additionFOR ALL ENTRIES.
Other versions:
7.31 | 7.40 | 7.54