on 2025 Mar 12 12:14 PM
In ABAP Platform 2022 I'm reading in the keyword documentation about a CDS Hierarchy. In the chapter about the statement DEFINE HIERARCHY the option DIRECTORY is explained with an example. This is the CDS Hierarchy DEMO_CDS_PARENT_CHILD_DIR. The source is the CDS View Entity DEMO_CDS_PARENT_CHILD_SRC_DIR. Here the following hierarchy association is defined:
association [1..*] to DEMO_CDS_PARENT_CHILD_SRC_DIR as _pcr on
$projection.parent = _pcr.id and
$projection.dir_entry = _pcr.id
My question is about the second part of the ON condition: $projection.dir_entry = _pcr.id.
What is it doing?
It is not showing up in the hierarchy attribute NODE_ID.
When I delete it, the result is the same. When I remove the DIRECTORY option in the definition I get another result where the condition seems to be taken into account.
Request clarification before answering.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.