C_Customer360SalesArea

DDL: C_CUSTOMER360SALESAREA Type: view_entity CONSUMPTION

Customer 360 Sales Area

C_Customer360SalesArea is a Consumption CDS View that provides data about "Customer 360 Sales Area" in SAP S/4HANA. It reads from 1 data source (I_CustomerSalesArea) and exposes 58 fields with key fields Customer, SalesOrganization, DistributionChannel, Division. It has 19 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustomerSalesArea SalesArea from

Associations (19)

CardinalityTargetAliasCondition
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_SalesOrganization _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization
[0..1] I_DistributionChannel _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel
[0..1] I_Division _Division $projection.Division = _Division.Division
[0..1] I_SalesOffice _SalesOffice $projection.SalesOffice = _SalesOffice.SalesOffice
[0..1] I_SalesGroup _SalesGroup $projection.SalesGroup = _SalesGroup.SalesGroup
[0..*] I_SalesDistrictText _SalesDistrictText $projection.SalesDistrict = _SalesDistrictText.SalesDistrict
[0..1] I_BillingBlockReason _BillingBlockReasonValueHelp $projection.BillingIsBlockedForCustomer = _BillingBlockReasonValueHelp.BillingBlockReason
[0..*] I_BillingBlockReasonText _BillingBlockReasonText $projection.BillingIsBlockedForCustomer = _BillingBlockReasonText.BillingBlockReason
[0..1] I_DeliveryBlockReason _DelivBlkRsnValueHelp $projection.DeliveryIsBlocked = _DelivBlkRsnValueHelp.DeliveryBlockReason
[0..*] I_DeliveryBlockReasonText _DeliveryBlockReasonText $projection.DeliveryIsBlocked = _DeliveryBlockReasonText.DeliveryBlockReason
[0..*] I_IncotermsClassificationText _IncotermsClassificationText $projection.IncotermsClassification = _IncotermsClassificationText.IncotermsClassification
[0..1] I_CustomerPriceGroup _CustomerPriceGroupValueHelp $projection.CustomerPriceGroup = _CustomerPriceGroupValueHelp.CustomerPriceGroup
[0..*] I_CustomerPriceGroupText _CustomerPriceGroupText $projection.CustomerPriceGroup = _CustomerPriceGroupText.CustomerPriceGroup
[0..1] I_CustomerPaymentTerms _CustomerPaymentTerms $projection.CustomerPaymentTerms = _CustomerPaymentTerms.CustomerPaymentTerms
[0..*] I_CustomerGroupText _CustomerGroupText $projection.CustomerGroup = _CustomerGroupText.CustomerGroup
[0..1] I_DeliveryPriority _DeliveryPriority $projection.DeliveryPriority = _DeliveryPriority.DeliveryPriority
[0..*] I_ShippingConditionText _ShippingConditionText $projection.ShippingCondition = _ShippingConditionText.ShippingCondition
[1..*] C_Cust360BizPartnerAddress _Cust360BizPartnerAddress $projection.Customer = _Cust360BizPartnerAddress.Customer and $projection.SalesOrganization = _Cust360BizPartnerAddress.SalesOrganization and $projection.DistributionChannel = _Cust360BizPartnerAddress.DistributionChannel and $projection.Division = _Cust360BizPartnerAddress.Division

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Customer 360 Sales Area view
Metadata.allowExtensions true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #CONSUMPTION view
Search.searchable false view

Fields (58)

KeyFieldSource TableSource FieldDescription
KEY Customer I_CustomerSalesArea Customer Sold-to Party
KEY SalesOrganization I_CustomerSalesArea SalesOrganization Sales Organization
KEY DistributionChannel I_CustomerSalesArea DistributionChannel RefDistCh-Cust/Mat.
KEY Division I_CustomerSalesArea Division Internal Division ID
CustomerName _Customer CustomerName Name of Customer
SalesOrganizationName
DistributionChannelName
DivisionName
CustomerGroup I_CustomerSalesArea CustomerGroup Customer Group
CustomerGroupName
SalesGroup I_CustomerSalesArea SalesGroup Sales Group
SalesGroupName
SalesOffice I_CustomerSalesArea SalesOffice Sales Office
SalesOfficeName
SalesDistrict SalesDistrict Sales District
SalesDistrictName
DeliveryPriority I_CustomerSalesArea DeliveryPriority Delivery Prior.
DeliveryPriorityDesc
PriceListType I_CustomerSalesArea PriceListType Price List Tp.
IncotermsClassification I_CustomerSalesArea IncotermsClassification Incoterms
IncotermsClassificationName
ItemOrderProbabilityInPercent ItemOrderProbabilityInPercent Order Probab.
SalesItemProposal SalesItemProposal Item proposal
OrderCombinationIsAllowed OrderCombinationIsAllowed Order Combinat.
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
CustomerPaymentTerms CustomerPaymentTerms Pyt Terms
CustomerPaymentTermsName
ShippingCondition ShippingCondition Shipping Conditions
ShippingConditionName
OrderIsBlockedForCustomer I_CustomerSalesArea OrderIsBlockedForCustomer Order Block
CustomerPriceGroup CustomerPriceGroup CustPrice Group
CustomerPriceGroupName
DeliveryIsBlocked DeliveryIsBlockedForCustomer Delivery Block
DeliveryBlockReasonText
BillingIsBlockedForCustomer I_CustomerSalesArea BillingIsBlockedForCustomer Billing Block
BillingBlockReasonDescription
CustomerABCClassification I_CustomerSalesArea CustomerABCClassification ABC class
AuthorizationGroup I_CustomerSalesArea AuthorizationGroup AuthorizGroup
IsBusinessPurposeCompleted I_CustomerSalesArea IsBusinessPurposeCompleted Purpose Completed
_Customer _Customer
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_SalesOffice _SalesOffice
_SalesGroup _SalesGroup
_BillingBlockReasonValueHelp _BillingBlockReasonValueHelp
_BillingBlockReasonText _BillingBlockReasonText
_DeliveryBlockReasonText _DeliveryBlockReasonText
_DelivBlkRsnValueHelp _DelivBlkRsnValueHelp
_SalesDistrictText _SalesDistrictText
_IncotermsClassificationText _IncotermsClassificationText
_CustomerPaymentTerms _CustomerPaymentTerms
_DeliveryPriority _DeliveryPriority
_CustomerPriceGroupValueHelp _CustomerPriceGroupValueHelp
_Cust360BizPartnerAddress _Cust360BizPartnerAddress
_CustomerPriceGroupText _CustomerPriceGroupText
_ShippingConditionText _ShippingConditionText

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 C_Customer360SalesArea.
-- 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.

CREATE VIEW C_Customer360SalesArea AS
SELECT
  SalesArea.Customer AS Customer,
  SalesArea.SalesOrganization AS SalesOrganization,
  SalesArea.DistributionChannel AS DistributionChannel,
  SalesArea.Division AS Division,
  _Customer.CustomerName AS CustomerName,
  _SalesOrganization._Text[1:Language=$session.system_language].SalesOrganizationName AS SalesOrganizationName,
  _DistributionChannel._Text[1:Language=$session.system_language].DistributionChannelName AS DistributionChannelName,
  _Division._Text[1:Language=$session.system_language].DivisionName AS DivisionName,
  SalesArea.CustomerGroup AS CustomerGroup,
  _CustomerGroupText[1:Language=$session.system_language].CustomerGroupName AS CustomerGroupName,
  SalesArea.SalesGroup AS SalesGroup,
  _SalesGroup._Text[1:Language=$session.system_language].SalesGroupName AS SalesGroupName,
  SalesArea.SalesOffice AS SalesOffice,
  _SalesOffice._Text[1:Language=$session.system_language].SalesOfficeName AS SalesOfficeName,
  SalesDistrict,
  _SalesDistrictText[1:Language=$session.system_language].SalesDistrictName AS SalesDistrictName,
  SalesArea.DeliveryPriority AS DeliveryPriority,
  _DeliveryPriority._Text[1:Language=$session.system_language].DeliveryPriorityDesc AS DeliveryPriorityDesc,
  SalesArea.PriceListType AS PriceListType,
  SalesArea.IncotermsClassification AS IncotermsClassification,
  _IncotermsClassificationText[1:Language=$session.system_language].IncotermsClassificationName AS IncotermsClassificationName,
  ItemOrderProbabilityInPercent,
  SalesItemProposal,
  OrderCombinationIsAllowed,
  IncotermsLocation1,
  IncotermsLocation2,
  CustomerPaymentTerms,
  _CustomerPaymentTerms._Text[1:Language=$session.system_language].CustomerPaymentTermsName AS CustomerPaymentTermsName,
  ShippingCondition,
  _ShippingConditionText[1:Language = $session.system_language].ShippingConditionName AS ShippingConditionName,
  SalesArea.OrderIsBlockedForCustomer AS OrderIsBlockedForCustomer,
  CustomerPriceGroup,
  _CustomerPriceGroupText[1:Language = $session.system_language].CustomerPriceGroupName AS CustomerPriceGroupName,
  DeliveryIsBlockedForCustomer AS DeliveryIsBlocked,
  _DeliveryBlockReasonText[1:Language=$session.system_language].DeliveryBlockReasonText AS DeliveryBlockReasonText,
  SalesArea.BillingIsBlockedForCustomer AS BillingIsBlockedForCustomer,
  _BillingBlockReasonText[1:Language=$session.system_language].BillingBlockReasonDescription AS BillingBlockReasonDescription,
  SalesArea.CustomerABCClassification AS CustomerABCClassification,
  SalesArea.AuthorizationGroup AS AuthorizationGroup,
  SalesArea.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_CustomerSalesArea AS SalesArea
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division  -- association [0..1]
LEFT OUTER JOIN I_SalesOffice AS _SalesOffice ON SalesOffice = _SalesOffice.SalesOffice  -- association [0..1]
LEFT OUTER JOIN I_SalesGroup AS _SalesGroup ON SalesGroup = _SalesGroup.SalesGroup  -- association [0..1]
LEFT OUTER JOIN I_SalesDistrictText AS _SalesDistrictText ON SalesDistrict = _SalesDistrictText.SalesDistrict  -- association [0..*]
LEFT OUTER JOIN I_BillingBlockReason AS _BillingBlockReasonValueHelp ON BillingIsBlockedForCustomer = _BillingBlockReasonValueHelp.BillingBlockReason  -- association [0..1]
LEFT OUTER JOIN I_BillingBlockReasonText AS _BillingBlockReasonText ON BillingIsBlockedForCustomer = _BillingBlockReasonText.BillingBlockReason  -- association [0..*]
LEFT OUTER JOIN I_DeliveryBlockReason AS _DelivBlkRsnValueHelp ON DeliveryIsBlocked = _DelivBlkRsnValueHelp.DeliveryBlockReason  -- association [0..1]
LEFT OUTER JOIN I_DeliveryBlockReasonText AS _DeliveryBlockReasonText ON DeliveryIsBlocked = _DeliveryBlockReasonText.DeliveryBlockReason  -- association [0..*]
LEFT OUTER JOIN I_IncotermsClassificationText AS _IncotermsClassificationText ON IncotermsClassification = _IncotermsClassificationText.IncotermsClassification  -- association [0..*]
LEFT OUTER JOIN I_CustomerPriceGroup AS _CustomerPriceGroupValueHelp ON CustomerPriceGroup = _CustomerPriceGroupValueHelp.CustomerPriceGroup  -- association [0..1]
LEFT OUTER JOIN I_CustomerPriceGroupText AS _CustomerPriceGroupText ON CustomerPriceGroup = _CustomerPriceGroupText.CustomerPriceGroup  -- association [0..*]
LEFT OUTER JOIN I_CustomerPaymentTerms AS _CustomerPaymentTerms ON CustomerPaymentTerms = _CustomerPaymentTerms.CustomerPaymentTerms  -- association [0..1]
LEFT OUTER JOIN I_CustomerGroupText AS _CustomerGroupText ON CustomerGroup = _CustomerGroupText.CustomerGroup  -- association [0..*]
LEFT OUTER JOIN I_DeliveryPriority AS _DeliveryPriority ON DeliveryPriority = _DeliveryPriority.DeliveryPriority  -- association [0..1]
LEFT OUTER JOIN I_ShippingConditionText AS _ShippingConditionText ON ShippingCondition = _ShippingConditionText.ShippingCondition  -- association [0..*]
LEFT OUTER JOIN C_Cust360BizPartnerAddress AS _Cust360BizPartnerAddress ON Customer = _Cust360BizPartnerAddress.Customer AND SalesOrganization = _Cust360BizPartnerAddress.SalesOrganization AND DistributionChannel = _Cust360BizPartnerAddress.DistributionChannel AND Division = _Cust360BizPartnerAddress.Division  -- association [1..*]
;