P_SiteReferenceSite

DDL: P_SITEREFERENCESITE SQL: PSITERFRNCSITE Type: view BASIC

P_SiteReferenceSite is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (I_Site) and exposes 3 fields with key field Site. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Site I_Site from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_GlobalRetailSettings _GlobalRetailSettings I_Site.mandt = _GlobalRetailSettings.SAPClient
[0..1] I_SlsOrganizationDistrChnl _SlsOrganizationDistrChnl $projection.SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization and $projection.DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PSITERFRNCSITE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.representativeKey Site view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY Site Site Plant
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.

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_SiteReferenceSite.
-- 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: PSITERFRNCSITE

CREATE VIEW P_SiteReferenceSite AS
SELECT
  Site,
  SalesOrganization,
  DistributionChannel
FROM I_Site
LEFT OUTER JOIN I_GlobalRetailSettings AS _GlobalRetailSettings ON I_Site.mandt = _GlobalRetailSettings.SAPClient  -- association [1..1]
LEFT OUTER JOIN I_SlsOrganizationDistrChnl AS _SlsOrganizationDistrChnl ON SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization AND DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel  -- association [0..1]
;