I_RFM_CustomerSalesArea

DDL: I_RFM_CUSTOMERSALESAREA SQL: IRFMCSTMRSLSAREA Type: view BASIC

Customer Sales Area

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

Data Sources (1)

SourceAliasJoin Type
knvv knvv from

Associations (9)

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_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_CustomerPaymentTerms _CustomerPaymentTerms $projection.CustomerPaymentTerms = _CustomerPaymentTerms.CustomerPaymentTerms

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IRFMCSTMRSLSAREA view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AccessControl.personalData.blockingIndicator IsBusinessPurposeCompleted view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Customer Sales Area view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.representativeKey Division view
VDM.viewType #BASIC view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY Customer kunnr Stock customer
KEY SalesOrganization vkorg SD Sales Org.
KEY DistributionChannel vtweg RefDistCh-Cust/Mat.
KEY Division spart Source supplier
SalesDistrict bzirk Sales District
CustomerPaymentTerms zterm Terms of Payment
IncotermsClassification inco1 Incoterms
IncotermsLocation1 inco2_l Inco. Location1
ShippingCondition vsbed Shipping Conditions
SalesOffice vkbur Sales Office
DeliveryPriority lprio Delivery Prior.
CreditControlArea kkber Cred.Contr.Area
CustomerGroup kdgrp Customer group
CustomerPriceGroup konda CustPrice Group
AdditionalCustomerGroup1 kvgr1 Customer Grp 1
AdditionalCustomerGroup2 kvgr2 Customer Grp 2
AdditionalCustomerGroup3 kvgr3 Customer Grp 3
AdditionalCustomerGroup4 kvgr4 Customer Grp 4
AdditionalCustomerGroup5 kvgr5 Customer Grp 5
RetailAdditionalCustomerGrp6 fsh_kvgr6 Customer Grp 6
RetailAdditionalCustomerGrp7 fsh_kvgr7 Customer Grp 7
RetailAdditionalCustomerGrp8 fsh_kvgr8 Customer Grp 8
RetailAdditionalCustomerGrp9 fsh_kvgr9 Customer Grp 9
RetailAdditionalCustomerGrp10 fsh_kvgr10 Customer Grp 10
AuthorizationGroup begru AuthorizGroup
CustomerAccountGroup _Customer CustomerAccountGroup Account group
IsBusinessPurposeCompleted cvp_xblck_v Purpose Completed
_Customer _Customer
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_SalesOffice _SalesOffice
_DeliveryPriority _DeliveryPriority
_ShippingCondition _ShippingCondition
_IncotermsClassification _IncotermsClassification
_CustomerPaymentTerms _CustomerPaymentTerms

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_RFM_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: IRFMCSTMRSLSAREA

CREATE VIEW I_RFM_CustomerSalesArea AS
SELECT
  kunnr AS Customer,
  vkorg AS SalesOrganization,
  vtweg AS DistributionChannel,
  spart AS Division,
  bzirk AS SalesDistrict,
  zterm AS CustomerPaymentTerms,
  inco1 AS IncotermsClassification,
  inco2_l AS IncotermsLocation1,
  vsbed AS ShippingCondition,
  vkbur AS SalesOffice,
  lprio AS DeliveryPriority,
  kkber AS CreditControlArea,
  kdgrp AS CustomerGroup,
  konda AS CustomerPriceGroup,
  kvgr1 AS AdditionalCustomerGroup1,
  kvgr2 AS AdditionalCustomerGroup2,
  kvgr3 AS AdditionalCustomerGroup3,
  kvgr4 AS AdditionalCustomerGroup4,
  kvgr5 AS AdditionalCustomerGroup5,
  fsh_kvgr6 AS RetailAdditionalCustomerGrp6,
  fsh_kvgr7 AS RetailAdditionalCustomerGrp7,
  fsh_kvgr8 AS RetailAdditionalCustomerGrp8,
  fsh_kvgr9 AS RetailAdditionalCustomerGrp9,
  fsh_kvgr10 AS RetailAdditionalCustomerGrp10,
  begru AS AuthorizationGroup,
  _Customer.CustomerAccountGroup AS CustomerAccountGroup,
  cvp_xblck_v AS IsBusinessPurposeCompleted
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_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_CustomerPaymentTerms AS _CustomerPaymentTerms ON CustomerPaymentTerms = _CustomerPaymentTerms.CustomerPaymentTerms  -- association [0..1]
;