SAP CDS ABSENT TO PARENT ASSOC



Get Example source ABAP code based on a different SAP table
  


• ASSOCIATION TO PARENT ABAP_CDS_DEFINE_ABSENT

ABAP_CDS_DDL - DEFINE ABSTRACT ENTITY, to-parentassociation

ABAP_SYNTAX
... ASSOCIATION TO PARENT target $[ON $projection. cds_cond$] ...

What does it do?
Defines a CDS to-parent association in the element list of an CDS abstract entity.
The CDS to-parent association associates the current CDS entity, as a association source, with the association target target specified in the definition of the CDS to-parent association.
CDS to-parent associations are specialized CDS associations and the same rules apply as described in topic CDS DDL - CDS View Entity, ASSOCIATION TO PARENT. There is only one exception to the rules described in topic CDS DDL - CDS View Entity, ASSOCIATION TO PARENT: If the association target of a to-parent association is another CDS abstract entity, then the ON condition is not mandatory and can be left out.

ABAP_EXAMPLE_VX5
The following DDL source code shows a CDS abstract entity that defines a CDS to-parent association to another CDS abstract entity:
DDLS DEMO_CDS_ABSTRACT_CHILD
ABAP_EXAMPLE_END