I_CustomerSalesArea

DDL: I_CUSTOMERSALESAREA SQL: IMDCUSTSLSAREA Type: view BASIC Package: VDM_MD_COMMON

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

CategoryCDS Views for Business Partner
Data CategoryDimension
StatusReleased
Data Extraction TypeFull (physical deletions are possible in source tables) Delta: changeDataCapture
Purpose
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 .

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-BP-2CL
CapabilitiesData 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
PackageDatabase 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

Data Sources (1)

SourceAliasJoin Type
knvv knvv from

Associations (21)

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

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;