C_Customer360_Salesarea

DDL: C_CUSTOMER360_SALESAREA SQL: CCUST360SAREA Type: view CONSUMPTION

Customer360 Sales Area

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

Data Sources (1)

SourceAliasJoin Type
I_CustomerSalesArea SalesArea from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_CustomerGroup _CustomerGroup $projection.CustomerGroup = _CustomerGroup.CustomerGroup
[0..1] I_CustomerPriceGroup _CustomerPriceGroup $projection.CustomerPriceGroup = _CustomerPriceGroup.CustomerPriceGroup
[0..1] I_PriceListType _PriceListType $projection.PriceListType = _PriceListType.PriceListType
[0..1] C_Customer360_F2187 _Customer360 $projection.Customer = _Customer360.Customer

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CCUST360SAREA view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Customer360 Sales Area view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
UI.headerInfo.typeName Sales Area view
UI.headerInfo.typeNamePlural Sales Areas view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value SalesArea view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY Customer Customer Sold-to Party
KEY SalesOrganization SalesOrganization Sales Organization
KEY DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
KEY Division Division Internal Division ID
DivisionName1astxt_vtrberasSalesArea
CustomerName
AuthorizationGroup I_CustomerSalesArea AuthorizationGroup AuthorizGroup
CustomerAccountGroup
CustomerGroup CustomerGroup Customer Group
CustomerPriceGroup I_CustomerSalesArea CustomerPriceGroup CustPrice Group
PriceListType PriceListType Price List Tp.
DeliveryPriority DeliveryPriority Delivery Priority
ShippingCondition ShippingCondition Shipping Conditions
OrderCombinationIsAllowed OrderCombinationIsAllowed Order Combinat.
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Location 1
IncotermsLocation2 IncotermsLocation2 Location 2
CustomerPaymentTerms CustomerPaymentTerms Terms of Payment
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_CustomerGroup _CustomerGroup
_CustomerPriceGroup _CustomerPriceGroup
_PriceListType _PriceListType
_DeliveryPriority _DeliveryPriority
_ShippingCondition _ShippingCondition
_CustomerPaymentTerms _CustomerPaymentTerms
_Customer360 _Customer360

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_Customer360_Salesarea.
-- 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: CCUST360SAREA

CREATE VIEW C_Customer360_Salesarea AS
SELECT
  Customer,
  SalesOrganization,
  DistributionChannel,
  Division,
  cast(concat_with_space( concat( concat( SalesArea._SalesOrganization._Text[1: Language=$session.system_language].SalesOrganizationName, concat_with_space(',',SalesArea._DistributionChannel._Text[1: Language=$session.system_language].DistributionChannelName,1) ), ',' ), SalesArea._Division._Text[1: Language=$session.system_language].DivisionName ,1) as txt_vtrber) as SalesArea AS DivisionName1astxt_vtrberasSalesArea,
  SalesArea._Customer.CustomerName AS CustomerName,
  SalesArea.AuthorizationGroup AS AuthorizationGroup,
  SalesArea._Customer.CustomerAccountGroup AS CustomerAccountGroup,
  CustomerGroup,
  SalesArea.CustomerPriceGroup AS CustomerPriceGroup,
  PriceListType,
  DeliveryPriority,
  ShippingCondition,
  OrderCombinationIsAllowed,
  IncotermsClassification,
  IncotermsTransferLocation,
  IncotermsLocation2,
  CustomerPaymentTerms
FROM I_CustomerSalesArea AS SalesArea
LEFT OUTER JOIN I_CustomerGroup AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup  -- association [0..1]
LEFT OUTER JOIN I_CustomerPriceGroup AS _CustomerPriceGroup ON CustomerPriceGroup = _CustomerPriceGroup.CustomerPriceGroup  -- association [0..1]
LEFT OUTER JOIN I_PriceListType AS _PriceListType ON PriceListType = _PriceListType.PriceListType  -- association [0..1]
LEFT OUTER JOIN C_Customer360_F2187 AS _Customer360 ON Customer = _Customer360.Customer  -- association [0..1]
;