P_PurchaseOrderSupplierAddress

DDL: P_PURCHASEORDERSUPPLIERADDRESS SQL: PPUORDSUPADD Type: view COMPOSITE

P_PurchaseOrderSupplierAddress is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrder) and exposes 4 fields with key field PurchaseOrder. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseOrder PurchaseOrder from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Address_2 _SupplierAddress $projection.SupplierAddressID = _SupplierAddress.AddressID and $projection.AddressPersonID = '' and $projection.AddressRepresentationCode = ''
[0..1] I_Customer _CustomerAddress PurchaseOrder.Customer = _CustomerAddress.Customer

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PPUORDSUPADD view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder I_PurchaseOrder PurchaseOrder Purchasing Document
AddressPersonID
AddressRepresentationCode
_SupplierAddress _SupplierAddress

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_PurchaseOrderSupplierAddress.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PPUORDSUPADD

CREATE VIEW P_PurchaseOrderSupplierAddress AS
SELECT
  PurchaseOrder.PurchaseOrder AS PurchaseOrder,
  '' AS AddressPersonID,
  '' AS AddressRepresentationCode
FROM I_PurchaseOrder AS PurchaseOrder
LEFT OUTER JOIN I_Address_2 AS _SupplierAddress ON SupplierAddressID = _SupplierAddress.AddressID AND AddressPersonID = '' AND AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _CustomerAddress ON PurchaseOrder.Customer = _CustomerAddress.Customer  -- association [0..1]
;