P_SrvcBPComSalesArea

DDL: P_SRVCBPCOMSALESAREA SQL: PBPCOMSALESAREA Type: view CONSUMPTION

Common Sales Area for Customer

P_SrvcBPComSalesArea is a Consumption CDS View that provides data about "Common Sales Area for Customer" in SAP S/4HANA. It has 1 association to related views.

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_BusinessPartnerPartFunc _BusinessPartnerPartFunc _BusinessPartnerPartFunc.SalesOrganization = _SrvcBPComDistrChnl.SalesOrganization and _BusinessPartnerPartFunc.DistributionChannel = _SrvcBPComDistrChnl.ReferenceDistributionChannel and _BusinessPartnerPartFunc.Division = _SrvcBPComDistrChnl.ReferenceDivision

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PBPCOMSALESAREA view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Common Sales Area for Customer view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
AccessControl.personalData.blocking #REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner _BusinessPartnerPartFunc BusinessPartner Issuing Authority
KEY PartnerFunction _BusinessPartnerPartFunc PartnerFunction Partner Functn
KEY SalesOrganization _SrvcBPComDistrChnl SalesOrganization Sales Organization
KEY DistributionChannel _SrvcBPComDistrChnl DistributionChannel RefDistCh-Cust/Mat.
KEY Division _SrvcBPComDistrChnl Division Internal Division ID
BusinessPartnerIsBlocked
Customer _BusinessPartnerPartFunc Customer Sold-to Party
ReferenceDistributionChannel _SrvcBPComDistrChnl ReferenceDistributionChannel
ReferenceDivision _SrvcBPComDistrChnl ReferenceDivision
AuthorizationGroup
_BusinessPartnerPartFunc _BusinessPartnerPartFunc

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_SrvcBPComSalesArea.
-- 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: PBPCOMSALESAREA

CREATE VIEW P_SrvcBPComSalesArea AS
SELECT
  _BusinessPartnerPartFunc.BusinessPartner AS BusinessPartner,
  _BusinessPartnerPartFunc.PartnerFunction AS PartnerFunction,
  _SrvcBPComDistrChnl.SalesOrganization AS SalesOrganization,
  _SrvcBPComDistrChnl.DistributionChannel AS DistributionChannel,
  _SrvcBPComDistrChnl.Division AS Division,
  _BusinessPartnerPartFunc._CustomerToBusinessPartner._BusinessPartner.BusinessPartnerIsBlocked AS BusinessPartnerIsBlocked,
  _BusinessPartnerPartFunc.Customer AS Customer,
  _SrvcBPComDistrChnl.ReferenceDistributionChannel AS ReferenceDistributionChannel,
  _SrvcBPComDistrChnl.ReferenceDivision AS ReferenceDivision,
  _BusinessPartnerPartFunc._CustomerToBusinessPartner.AuthorizationGroup AS AuthorizationGroup
LEFT OUTER JOIN I_BusinessPartnerPartFunc AS _BusinessPartnerPartFunc ON _BusinessPartnerPartFunc.SalesOrganization = _SrvcBPComDistrChnl.SalesOrganization AND _BusinessPartnerPartFunc.DistributionChannel = _SrvcBPComDistrChnl.ReferenceDistributionChannel AND _BusinessPartnerPartFunc.Division = _SrvcBPComDistrChnl.ReferenceDivision  -- association [1..*]
;