Ansicht
Dokumentation

ABENCDS_ASSOCIATION_V2 - CDS ASSOCIATION V2

ABENCDS_ASSOCIATION_V2 - CDS ASSOCIATION V2

Addresses (Business Address Services)   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

- CDS View Entity, SELECT, Associations

Example

The CDS view entity DEMO_SALES_CDS_SO_I_VE shown below returns information about sales order items. It defines three associations:

  • A to-parent association _SalesOrder: A sales order item must always belong to a sales order, so there is an existential dependency.
  • A composition _ScheduleLine: each sales order item can have one or more schedule lines, so the CDS view entity that contains information about schedule lines is defined as composition child.
  • A simple association _Material: this association can be used to enrich a sales order item with information about the material.

In the SELECT list, _SalesOrder and _ScheduleLine are exposed. They can be accessed externally, but the current view does not use any data from them and no join is generated. From the association _Material, the field material is included in the view. This means that this association is instantiated as join. Since it is not published, it cannot be used in other CDS view entities or in .

IMAGE @@ABDOC_ASSOC_EXPL.png@@579@@456@@



For further details, see the following sections:






rdisp/max_wprun_time - Maximum work process run time   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2397 Date: 20240419 Time: 100523     sap01-206 ( 35 ms )