I_CustomerSalesArea
Customer Sales Area
I_CustomerSalesArea (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
CustomerSalesArea · Database & Data Management
I_CustomerSalesArea is a Basic CDS View (Dimension) that provides data about "Customer Sales Area" in SAP S/4HANA. It reads from 1 data source (knvv) and exposes 87 fields with key fields Customer, SalesOrganization, DistributionChannel, Division. It has 21 associations to related views. Part of development package VDM_MD_COMMON.
SAP Help Documentation
| Category | CDS Views for Business Partner |
|---|---|
| Data Category | Dimension |
| Status | Released |
| Data Extraction Type | Full (physical deletions are possible in source tables) Delta: changeDataCapture |
This CDS view retrieves Customer Sales Area data. This is a basic view.
Structure
Object types This view relates to the following SAP object types: Customer Main CDS parameters and filters Measures and attributes Some important measures and attributes are: Customer Sales Organization Distribution Channel Division
SAP Business Warehouse (SAP BW) Extraction
Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. In case you are interested in the details of the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Application Help SAP Library BI Content . For more information on extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Database & Data Management |
| Application Component | LO-MD-BP-2CL |
| Capabilities | Data Source for Data Extraction,Data Source in SQL Select,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities,Analytical Dimension |
| Extensible (Key User) | Yes |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Database and Data Management for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view retrieves Customer Sales Area data. This is a basic view.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| knvv | knvv | from |
Associations (21)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
| [0..1] | I_DeliveryPriority | _DeliveryPriority | $projection.DeliveryPriority = _DeliveryPriority.DeliveryPriority |
| [0..1] | I_ShippingCondition | _ShippingCondition | $projection.ShippingCondition = _ShippingCondition.ShippingCondition |
| [0..1] | I_IncotermsClassification | _IncotermsClassification | $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification |
| [0..1] | I_Plant | _SupplyingPlant | $projection.SupplyingPlant = _SupplyingPlant.Plant |
| [0..1] | I_DeliveryBlockReason | _DeliveryIsBlockedForCustomer | $projection.DeliveryIsBlockedForCustomer = _DeliveryIsBlockedForCustomer.DeliveryBlockReason |
| [0..1] | I_BillingBlockReason | _BillingIsBlockedForCustomer | $projection.BillingIsBlockedForCustomer = _BillingIsBlockedForCustomer.BillingBlockReason |
| [0..1] | I_CustomerPaymentTerms | _CustomerPaymentTerms | $projection.CustomerPaymentTerms = _CustomerPaymentTerms.CustomerPaymentTerms |
| [0..1] | I_CustomerAccountAssgmtGroup | _CustomerAccountAssgmtGroup | $projection.CustomerAccountAssignmentGroup = _CustomerAccountAssgmtGroup.CustomerAccountAssignmentGroup |
| [0..1] | I_FactoryCalendar | _FactoryCalendar | $projection.InvoiceListSchedule = _FactoryCalendar.FactoryCalendar |
| [0..1] | I_ExchangeRateType | _ExchangeRateType | $projection.ExchangeRateType = _ExchangeRateType.ExchangeRateType |
| [0..1] | I_CustProdProposalProcedure | _CustProdProposalProcedure | $projection.CustProdProposalProcedure = _CustProdProposalProcedure.CustProdProposalProcedure |
| [0..1] | E_BPSALESAREA_D | _SalesAreaExt | $projection.SalesOrganization = _SalesAreaExt.SalesOrganization and $projection.DistributionChannel = _SalesAreaExt.DistributionChannel and $projection.Division = _SalesAreaExt.Division and $projection.Customer = _SalesAreaExt.Customer |
| [0..1] | I_CustomerPaytGuarProced | _PaytGuarProcedVH | $projection.PaymentGuaranteeProcedure = _PaytGuarProcedVH.CustomerPaytGuarProced |
| [1..*] | I_CustSlsAreaAddrDepdntInfo | _SalesAreaAddr | $projection.SalesOrganization = _SalesAreaAddr.SalesOrganization and $projection.DistributionChannel = _SalesAreaAddr.DistributionChannel and $projection.Division = _SalesAreaAddr.Division and $projection.Customer = _SalesAreaAddr.Customer |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMDCUSTSLSAREA | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AccessControl.personalData.blockingIndicator | IsBusinessPurposeCompleted | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataExtraction.delta.changeDataCapture.automatic | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Customer Sales Area | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.sapObjectNodeType.name | CustomerSalesArea | view | |
| ObjectModel.representativeKey | Division | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #BASIC | view |
Fields (87)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | kunnr | Customer Number | |
| KEY | SalesOrganization | vkorg | Sales Organization | |
| KEY | DistributionChannel | vtweg | Distribution Channel | |
| KEY | Division | spart | Source supplier | |
| CustomerABCClassification | klabc | Customer classification (ABC analysis) | ||
| SalesOffice | vkbur | Sales Office | ||
| SalesGroup | vkgrp | Sales Group | ||
| OrderIsBlockedForCustomer | aufsd | Customer order block (sales area) | ||
| Currency | waers | Transaction Currency | ||
| CustomerPriceGroup | konda | Customer Price Group | ||
| PriceListType | pltyp | Price List Type | ||
| DeliveryPriority | lprio | Delivery Priority | ||
| ShippingCondition | vsbed | Shipping Conditions | ||
| IncotermsClassification | inco1 | Incoterms (Part 1) | ||
| SupplyingPlant | vwerk | Delivering Plant (Own or External) | ||
| CompleteDeliveryIsDefined | autlf | Complete Delivery Defined for Each Sales Order | ||
| DeliveryIsBlockedForCustomer | lifsd | Customer delivery block (sales area) | ||
| BillingIsBlockedForCustomer | faksd | Billing block for customer (sales and distribution) | ||
| CustomerPaymentTerms | zterm | Key for Terms of Payment | ||
| CustomerAccountAssignmentGroup | ktgrd | Account Assignment Group for Customer | ||
| AccountByCustomer | eikto | Shipper's (Our) Account Number at the Customer or Vendor | ||
| CustomerGroup | kdgrp | Customer group | ||
| CustomerPricingProcedure | kalks | Customer Classification for Pricing Procedure Determination | ||
| OrderCombinationIsAllowed | kzazu | Order Combination Indicator | ||
| PartialDeliveryIsAllowed | kztlf | Partial Delivery at Item Level | ||
| InvoiceDate | perfk | Invoice Dates (Calendar Identification) | ||
| PaymentTerms | zterm | Key for Terms of Payment | ||
| IncotermsTransferLocation | inco2 | Incoterms (Part 2) | ||
| ItemOrderProbabilityInPercent | awahr | Order Probability of the Item | ||
| IncotermsLocation2 | inco3_l | Incoterms Location 2 | ||
| RecordCreatedDate | erdat | Record Creation Date | ||
| AuthorizationGroup | begru | Authorization Group | ||
| SalesDistrict | bzirk | Sales District | ||
| IncotermsVersion | incov | Incoterms Version | ||
| IncotermsLocation1 | inco2_l | Incoterms Location 1 | ||
| DeletionIndicator | loevm | Deletion flag for customer (sales level) | ||
| IsBusinessPurposeCompleted | cvp_xblck_v | Business Purpose Completed Flag | ||
| SalesItemProposal | vsort | Item proposal | ||
| CustProdProposalProcedure | pvksm | Customer procedure for product proposal | ||
| ProofOfDeliveryTime | ||||
| ProofOfDeliveryTimeValue | Timeframe for Confirmation of POD | |||
| MaxNmbrOfPartialDelivery | antlf | Maximum Number of Partial Deliveries Allowed Per Item | ||
| UnderdelivTolrtdLmtRatioInPct | untto | Underdelivery Tolerance | ||
| OverdelivTolrtdLmtRatioInPct | uebto | Overdelivery Tolerance | ||
| IsActiveEntity | Draft - Indicator - Is active document | |||
| AdditionalCustomerGroup1 | kvgr1 | Customer Group 1 | ||
| AdditionalCustomerGroup2 | kvgr2 | Customer Group 2 | ||
| AdditionalCustomerGroup3 | kvgr3 | Customer Group 3 | ||
| AdditionalCustomerGroup4 | kvgr4 | Customer Group 4 | ||
| AdditionalCustomerGroup5 | kvgr5 | Customer Group 5 | ||
| InvoiceListSchedule | perrl | Invoice List Schedule (calendar identification) | ||
| ExchangeRateType | kurst | Fix.rate type (EMU) | ||
| PaymentGuaranteeProcedure | kabss | Customer payment guarantee procedure | ||
| SuplrIsRlvtForSettlmtMgmt | agrel | Indicator: Relevant for Settlement Management | ||
| CustIsRlvtForSettlmtMgmt | agrel | Indicator: Relevant for Settlement Management | ||
| ProductUnitGroup | megru | Unit of Measure Group | ||
| SlsDocIsRlvtForProofOfDeliv | podkz | Relevant for POD processing | ||
| SlsUnlmtdOvrdelivIsAllwd | uebtk | Unlimited Overdelivery Allowed | ||
| CreditControlArea | kkber | Credit Control Area | ||
| CustomerIsRebateRelevant | bokre | Indicator: Customer Is Rebate-Relevant | ||
| InspSbstHasNoTimeOrQuantity | prfre | Relevant for price determination ID | ||
| ManualInvoiceMaintIsRelevant | mrnkz | Manual Invoice Maintenance | ||
| IncotermsSupChnLoc1AddlUUID | Incoterm Location 1 | |||
| IncotermsSupChnLoc2AddlUUID | Incoterm Location 2 | |||
| IncotermsSupChnDvtgLocAddlUUID | Dev. Destination | |||
| SalesBlockForCustomer | cassd | Sales Block for Customer (Sales Area) | ||
| CustomerStatisticsGroup | versg | Customer Statistics Group | ||
| _Customer | _Customer | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _SalesOffice | _SalesOffice | |||
| _SalesGroup | _SalesGroup | |||
| _Currency | _Currency | |||
| _DeliveryPriority | _DeliveryPriority | |||
| _ShippingCondition | _ShippingCondition | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _DeliveryIsBlockedForCustomer | _DeliveryIsBlockedForCustomer | |||
| _BillingIsBlockedForCustomer | _BillingIsBlockedForCustomer | |||
| _CustomerPaymentTerms | _CustomerPaymentTerms | |||
| _CustomerAccountAssgmtGroup | _CustomerAccountAssgmtGroup | |||
| _CustProdProposalProcedure | _CustProdProposalProcedure | |||
| _FactoryCalendar | _FactoryCalendar | |||
| _ExchangeRateType | _ExchangeRateType | |||
| _PaytGuarProcedVH | _PaytGuarProcedVH | |||
| _SalesAreaAddr | _SalesAreaAddr |
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 I_CustomerSalesArea.
-- 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: IMDCUSTSLSAREA
CREATE VIEW I_CustomerSalesArea AS
SELECT
kunnr AS Customer,
vkorg AS SalesOrganization,
vtweg AS DistributionChannel,
spart AS Division,
klabc AS CustomerABCClassification,
vkbur AS SalesOffice,
vkgrp AS SalesGroup,
aufsd AS OrderIsBlockedForCustomer,
waers AS Currency,
konda AS CustomerPriceGroup,
pltyp AS PriceListType,
lprio AS DeliveryPriority,
vsbed AS ShippingCondition,
inco1 AS IncotermsClassification,
vwerk AS SupplyingPlant,
autlf AS CompleteDeliveryIsDefined,
lifsd AS DeliveryIsBlockedForCustomer,
faksd AS BillingIsBlockedForCustomer,
zterm AS CustomerPaymentTerms,
ktgrd AS CustomerAccountAssignmentGroup,
eikto AS AccountByCustomer,
kdgrp AS CustomerGroup,
kalks AS CustomerPricingProcedure,
kzazu AS OrderCombinationIsAllowed,
kztlf AS PartialDeliveryIsAllowed,
perfk AS InvoiceDate,
zterm AS PaymentTerms,
inco2 AS IncotermsTransferLocation,
awahr AS ItemOrderProbabilityInPercent,
inco3_l AS IncotermsLocation2,
erdat AS RecordCreatedDate,
begru AS AuthorizationGroup,
bzirk AS SalesDistrict,
incov AS IncotermsVersion,
inco2_l AS IncotermsLocation1,
loevm AS DeletionIndicator,
cvp_xblck_v AS IsBusinessPurposeCompleted,
vsort AS SalesItemProposal,
pvksm AS CustProdProposalProcedure,
cast( left( cast( div(podtg, 240000) as abap.char(13) ), 6 ) as abap.tims ) AS ProofOfDeliveryTime,
cast( division(podtg, 240000, 2 ) as cust_pod ) AS ProofOfDeliveryTimeValue,
antlf AS MaxNmbrOfPartialDelivery,
untto AS UnderdelivTolrtdLmtRatioInPct,
uebto AS OverdelivTolrtdLmtRatioInPct,
cast( 'X' as sdraft_is_active preserving type ) AS IsActiveEntity,
kvgr1 AS AdditionalCustomerGroup1,
kvgr2 AS AdditionalCustomerGroup2,
kvgr3 AS AdditionalCustomerGroup3,
kvgr4 AS AdditionalCustomerGroup4,
kvgr5 AS AdditionalCustomerGroup5,
perrl AS InvoiceListSchedule,
kurst AS ExchangeRateType,
kabss AS PaymentGuaranteeProcedure,
agrel AS SuplrIsRlvtForSettlmtMgmt,
agrel AS CustIsRlvtForSettlmtMgmt,
megru AS ProductUnitGroup,
podkz AS SlsDocIsRlvtForProofOfDeliv,
uebtk AS SlsUnlmtdOvrdelivIsAllwd,
kkber AS CreditControlArea,
bokre AS CustomerIsRebateRelevant,
prfre AS InspSbstHasNoTimeOrQuantity,
mrnkz AS ManualInvoiceMaintIsRelevant,
cast( inco2_key as /sapapo/location_uuid) AS IncotermsSupChnLoc1AddlUUID,
cast( inco3_key as /sapapo/location_uuid) AS IncotermsSupChnLoc2AddlUUID,
cast( inco4_key as /sapapo/location_uuid) AS IncotermsSupChnDvtgLocAddlUUID,
cassd AS SalesBlockForCustomer,
versg AS CustomerStatisticsGroup
FROM knvv
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_Currency AS _Currency ON Currency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_DeliveryPriority AS _DeliveryPriority ON DeliveryPriority = _DeliveryPriority.DeliveryPriority -- association [0..1]
LEFT OUTER JOIN I_ShippingCondition AS _ShippingCondition ON ShippingCondition = _ShippingCondition.ShippingCondition -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassification AS _IncotermsClassification ON IncotermsClassification = _IncotermsClassification.IncotermsClassification -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_DeliveryBlockReason AS _DeliveryIsBlockedForCustomer ON DeliveryIsBlockedForCustomer = _DeliveryIsBlockedForCustomer.DeliveryBlockReason -- association [0..1]
LEFT OUTER JOIN I_BillingBlockReason AS _BillingIsBlockedForCustomer ON BillingIsBlockedForCustomer = _BillingIsBlockedForCustomer.BillingBlockReason -- association [0..1]
LEFT OUTER JOIN I_CustomerPaymentTerms AS _CustomerPaymentTerms ON CustomerPaymentTerms = _CustomerPaymentTerms.CustomerPaymentTerms -- association [0..1]
LEFT OUTER JOIN I_CustomerAccountAssgmtGroup AS _CustomerAccountAssgmtGroup ON CustomerAccountAssignmentGroup = _CustomerAccountAssgmtGroup.CustomerAccountAssignmentGroup -- association [0..1]
LEFT OUTER JOIN I_FactoryCalendar AS _FactoryCalendar ON InvoiceListSchedule = _FactoryCalendar.FactoryCalendar -- association [0..1]
LEFT OUTER JOIN I_ExchangeRateType AS _ExchangeRateType ON ExchangeRateType = _ExchangeRateType.ExchangeRateType -- association [0..1]
LEFT OUTER JOIN I_CustProdProposalProcedure AS _CustProdProposalProcedure ON CustProdProposalProcedure = _CustProdProposalProcedure.CustProdProposalProcedure -- association [0..1]
LEFT OUTER JOIN E_BPSALESAREA_D AS _SalesAreaExt ON SalesOrganization = _SalesAreaExt.SalesOrganization AND DistributionChannel = _SalesAreaExt.DistributionChannel AND Division = _SalesAreaExt.Division AND Customer = _SalesAreaExt.Customer -- association [0..1]
LEFT OUTER JOIN I_CustomerPaytGuarProced AS _PaytGuarProcedVH ON PaymentGuaranteeProcedure = _PaytGuarProcedVH.CustomerPaytGuarProced -- association [0..1]
LEFT OUTER JOIN I_CustSlsAreaAddrDepdntInfo AS _SalesAreaAddr ON SalesOrganization = _SalesAreaAddr.SalesOrganization AND DistributionChannel = _SalesAreaAddr.DistributionChannel AND Division = _SalesAreaAddr.Division AND Customer = _SalesAreaAddr.Customer -- association [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