C_CustomerSalesAreaOP
Consumption Factsheet - Sales view Facet
C_CustomerSalesAreaOP is a Consumption CDS View that provides data about "Consumption Factsheet - Sales view Facet" in SAP S/4HANA. It reads from 1 data source (I_CustomerSalesArea) and exposes 22 fields with key fields Customer, SalesOrganization, DistributionChannel, Division. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CustomerSalesArea | Sales | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SalesOrganization | _SalesOrganizationValueHelp | $projection.SalesOrganization = _SalesOrganizationValueHelp.SalesOrganization |
| [0..1] | I_DistributionChannel | _DistrChnlValueHelp | $projection.DistributionChannel = _DistrChnlValueHelp.DistributionChannel |
| [0..1] | I_Division | _DivisionValueHelp | $projection.Division = _DivisionValueHelp.Division |
| [0..1] | I_SalesGroup | _SalesGroupValueHelp | $projection.SalesGroup = _SalesGroupValueHelp.SalesGroup |
| [0..1] | I_SalesOffice | _SalesOfficeValueHelp | $projection.SalesOffice = _SalesOfficeValueHelp.SalesOffice |
| [0..1] | I_CustomerGroup | _CustomerGroupValueHelp | $projection.CustomerGroup = _CustomerGroupValueHelp.CustomerGroup |
| [0..1] | I_DeliveryBlockReason | _DelivBlkRsnValueHelp | $projection.DeliveryIsBlockedForCustomer = _DelivBlkRsnValueHelp.DeliveryBlockReason |
| [0..1] | I_BillingBlockReason | _BillingBlockReasonValueHelp | $projection.BillingIsBlockedForCustomer = _BillingBlockReasonValueHelp.BillingBlockReason |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CUSTSALESAREAOP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Consumption Factsheet - Sales view Facet | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 |
| CustomerABCClassification | I_CustomerSalesArea | CustomerABCClassification | ABC class | |
| AuthorizationGroup | I_CustomerSalesArea | AuthorizationGroup | AuthorizGroup | |
| SalesOffice | I_CustomerSalesArea | SalesOffice | Sales Office | |
| SalesGroup | I_CustomerSalesArea | SalesGroup | Sales Group | |
| OrderIsBlockedForCustomer | I_CustomerSalesArea | OrderIsBlockedForCustomer | Order block | |
| DeliveryIsBlockedForCustomer | I_CustomerSalesArea | DeliveryIsBlockedForCustomer | Delivery block | |
| BillingIsBlockedForCustomer | I_CustomerSalesArea | BillingIsBlockedForCustomer | Billing block | |
| CustomerGroup | I_CustomerSalesArea | CustomerGroup | Customer Group | |
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | Purpose Completed | ||
| _SalesOrganizationValueHelp | _SalesOrganizationValueHelp | |||
| _DistrChnlValueHelp | _DistrChnlValueHelp | |||
| _DivisionValueHelp | _DivisionValueHelp | |||
| _SalesGroupValueHelp | _SalesGroupValueHelp | |||
| _SalesOfficeValueHelp | _SalesOfficeValueHelp | |||
| _CustomerGroupValueHelp | _CustomerGroupValueHelp | |||
| _DelivBlkRsnValueHelp | _DelivBlkRsnValueHelp | |||
| _BillingBlockReasonValueHelp | _BillingBlockReasonValueHelp | |||
| _Customer | _Customer |
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_CustomerSalesAreaOP.
-- 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: CUSTSALESAREAOP
CREATE VIEW C_CustomerSalesAreaOP AS
SELECT
Sales.Customer AS Customer,
Sales.SalesOrganization AS SalesOrganization,
Sales.DistributionChannel AS DistributionChannel,
Sales.Division AS Division,
Sales.CustomerABCClassification AS CustomerABCClassification,
Sales.AuthorizationGroup AS AuthorizationGroup,
Sales.SalesOffice AS SalesOffice,
Sales.SalesGroup AS SalesGroup,
Sales.OrderIsBlockedForCustomer AS OrderIsBlockedForCustomer,
Sales.DeliveryIsBlockedForCustomer AS DeliveryIsBlockedForCustomer,
Sales.BillingIsBlockedForCustomer AS BillingIsBlockedForCustomer,
Sales.CustomerGroup AS CustomerGroup,
IsBusinessPurposeCompleted
FROM I_CustomerSalesArea AS Sales
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganizationValueHelp ON SalesOrganization = _SalesOrganizationValueHelp.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistrChnlValueHelp ON DistributionChannel = _DistrChnlValueHelp.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_Division AS _DivisionValueHelp ON Division = _DivisionValueHelp.Division -- association [0..1]
LEFT OUTER JOIN I_SalesGroup AS _SalesGroupValueHelp ON SalesGroup = _SalesGroupValueHelp.SalesGroup -- association [0..1]
LEFT OUTER JOIN I_SalesOffice AS _SalesOfficeValueHelp ON SalesOffice = _SalesOfficeValueHelp.SalesOffice -- association [0..1]
LEFT OUTER JOIN I_CustomerGroup AS _CustomerGroupValueHelp ON CustomerGroup = _CustomerGroupValueHelp.CustomerGroup -- association [0..1]
LEFT OUTER JOIN I_DeliveryBlockReason AS _DelivBlkRsnValueHelp ON DeliveryIsBlockedForCustomer = _DelivBlkRsnValueHelp.DeliveryBlockReason -- association [0..1]
LEFT OUTER JOIN I_BillingBlockReason AS _BillingBlockReasonValueHelp ON BillingIsBlockedForCustomer = _BillingBlockReasonValueHelp.BillingBlockReason -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA