SAP CDS PROJ VIEW ASSOC ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS_DDL - CDS Projection View, Expose Associations
This example demonstrates how to read fields via exposed associations in a CDS projection view.
CDS projection view
DDLS DEMO_SALES_PV_SO_I

ABAP_SOURCE_CODE
DEMO CL_DEMO_PROJ_VIEW_READ_ASSOC

ABAP_DESCRIPTION
The CDS projection view DEMO_SALES_PV_SO_I is based on the CDS view DEMO_SALES_CDS_SO_I and exposes a subset of its fields. It also redirects the to-parent association to a new target and exposes one of the parent entity's fields, namely, <(>BuyerID<)>. The SELECT statement reads all the fields, orders them and filters them.