A_CustomerSalesArea

DDL: A_CUSTOMERSALESAREA SQL: ACUSTSALESAREA Type: view BASIC

Sales Area

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

Data Sources (1)

SourceAliasJoin Type
I_CustomerSalesArea I_CustomerSalesArea from

Associations (6)

CardinalityTargetAliasCondition
[0..1] E_BPSALESAREA_D _SalesExtension $projection.Customer = _SalesExtension.Customer and $projection.SalesOrganization = _SalesExtension.SalesOrganization and $projection.DistributionChannel = _SalesExtension.DistributionChannel and $projection.Division = _SalesExtension.Division
[1..1] A_Customer _Customer $projection.Customer = _Customer.Customer
[0..*] A_CustomerSalesAreaTax _SalesAreaTax $projection.Customer = _SalesAreaTax.Customer and $projection.SalesOrganization = _SalesAreaTax.SalesOrganization and $projection.DistributionChannel = _SalesAreaTax.DistributionChannel and $projection.Division = _SalesAreaTax.Division
[0..*] A_CustSalesPartnerFunc _PartnerFunction $projection.Customer = _PartnerFunction.Customer and $projection.SalesOrganization = _PartnerFunction.SalesOrganization and $projection.DistributionChannel = _PartnerFunction.DistributionChannel and $projection.Division = _PartnerFunction.Division
[0..*] A_CustomerSalesAreaText _SalesAreaText $projection.Customer = _SalesAreaText.Customer and $projection.SalesOrganization = _SalesAreaText.SalesOrganization and $projection.DistributionChannel = _SalesAreaText.DistributionChannel and $projection.Division = _SalesAreaText.Division
[0..*] A_CustSlsAreaAddrDepdntInfo _SlsAreaAddrDepdntInfo $projection.Customer = _SlsAreaAddrDepdntInfo.Customer and $projection.SalesOrganization = _SlsAreaAddrDepdntInfo.SalesOrganization and $projection.DistributionChannel = _SlsAreaAddrDepdntInfo.DistributionChannel and $projection.Division = _SlsAreaAddrDepdntInfo.Division

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ACUSTSALESAREA view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Sales Area view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view

Fields (67)

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
AccountByCustomer AccountByCustomer Acct at cust.
AuthorizationGroup AuthorizationGroup AuthorizGroup
BillingIsBlockedForCustomer BillingIsBlockedForCustomer Billing block
CompleteDeliveryIsDefined CompleteDeliveryIsDefined Complete Dlv.
CreditControlArea CreditControlArea Credit Control Area
Currency Currency Valuation Crcy
CustIsRlvtForSettlmtMgmt CustIsRlvtForSettlmtMgmt Settlem. Mgmt.
CustomerABCClassification CustomerABCClassification ABC class
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup AccAssmtGrpCust
CustomerGroup CustomerGroup Customer Group
CustomerIsRebateRelevant CustomerIsRebateRelevant Rebate
CustomerPaymentTerms CustomerPaymentTerms Pyt Terms
CustomerPriceGroup CustomerPriceGroup CustPrice Group
CustomerPricingProcedure CustomerPricingProcedure CustPrcgProc.
CustProdProposalProcedure CustProdProposalProcedure PP cust. proc.
CustomerStatisticsGroup CustomerStatisticsGroup Matl stats grp
DeliveryIsBlockedForCustomer DeliveryIsBlockedForCustomer Delivery block
DeliveryPriority DeliveryPriority Delivery Prior.
IncotermsClassification IncotermsClassification Incoterms
IncotermsLocation2 IncotermsLocation2 Inco. Location2
IncotermsVersion IncotermsVersion Inco. Version
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsSupChnLoc1AddlUUID IncotermsSupChnLoc1AddlUUID Location UUID
IncotermsSupChnLoc2AddlUUID IncotermsSupChnLoc2AddlUUID Location UUID
IncotermsSupChnDvtgLocAddlUUID IncotermsSupChnDvtgLocAddlUUID Location UUID
DeletionIndicator DeletionIndicator Deletion Ind.
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
InspSbstHasNoTimeOrQuantity InspSbstHasNoTimeOrQuantity Price determin.
InvoiceDate InvoiceDate Run On
ItemOrderProbabilityInPercent ItemOrderProbabilityInPercent Order Probab.
ManualInvoiceMaintIsRelevant ManualInvoiceMaintIsRelevant Man.Inv.Maint.
MaxNmbrOfPartialDelivery MaxNmbrOfPartialDelivery Max.Part.Deliv.
OrderCombinationIsAllowed OrderCombinationIsAllowed Order Combinat.
OrderIsBlockedForCustomer OrderIsBlockedForCustomer Order block
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
PartialDeliveryIsAllowed PartialDeliveryIsAllowed Partial Deliv.
PriceListType PriceListType Price List Tp.
ProductUnitGroup ProductUnitGroup UoM Group
ProofOfDeliveryTimeValue ProofOfDeliveryTimeValue POD timeframe
SalesGroup SalesGroup Sales Group
SalesItemProposal SalesItemProposal Item proposal
SalesOffice SalesOffice Sales Office
ShippingCondition ShippingCondition Shipping Conditions
SlsDocIsRlvtForProofOfDeliv SlsDocIsRlvtForProofOfDeliv POD-relevant
SlsUnlmtdOvrdelivIsAllwd SlsUnlmtdOvrdelivIsAllwd Unlimited Tol.
SupplyingPlant SupplyingPlant Supplying Plant
SalesDistrict SalesDistrict Sales District
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
InvoiceListSchedule InvoiceListSchedule Inv.List Sched.
ExchangeRateType ExchangeRateType Exch. Rate Type
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
AdditionalCustomerGroup1 AdditionalCustomerGroup1 Customer Grp 1
AdditionalCustomerGroup2 AdditionalCustomerGroup2 Customer Grp 2
AdditionalCustomerGroup3 AdditionalCustomerGroup3 Customer Grp 3
AdditionalCustomerGroup4 AdditionalCustomerGroup4 Customer Grp 4
AdditionalCustomerGroup5 AdditionalCustomerGroup5 Customer Grp 5
PaymentGuaranteeProcedure PaymentGuaranteeProcedure Paym.guar.proc.
CustomerAccountGroup _Customer CustomerAccountGroup Account group
_Customer _Customer
_SalesAreaTax _SalesAreaTax
_PartnerFunction _PartnerFunction
_SalesAreaText _SalesAreaText
_SlsAreaAddrDepdntInfo _SlsAreaAddrDepdntInfo

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 A_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: ACUSTSALESAREA

CREATE VIEW A_CustomerSalesArea AS
SELECT
  Customer,
  SalesOrganization,
  DistributionChannel,
  Division,
  AccountByCustomer,
  AuthorizationGroup,
  BillingIsBlockedForCustomer,
  CompleteDeliveryIsDefined,
  CreditControlArea,
  Currency,
  CustIsRlvtForSettlmtMgmt,
  CustomerABCClassification,
  CustomerAccountAssignmentGroup,
  CustomerGroup,
  CustomerIsRebateRelevant,
  CustomerPaymentTerms,
  CustomerPriceGroup,
  CustomerPricingProcedure,
  CustProdProposalProcedure,
  CustomerStatisticsGroup,
  DeliveryIsBlockedForCustomer,
  DeliveryPriority,
  IncotermsClassification,
  IncotermsLocation2,
  IncotermsVersion,
  IncotermsLocation1,
  IncotermsSupChnLoc1AddlUUID,
  IncotermsSupChnLoc2AddlUUID,
  IncotermsSupChnDvtgLocAddlUUID,
  DeletionIndicator,
  IncotermsTransferLocation,
  InspSbstHasNoTimeOrQuantity,
  InvoiceDate,
  ItemOrderProbabilityInPercent,
  ManualInvoiceMaintIsRelevant,
  MaxNmbrOfPartialDelivery,
  OrderCombinationIsAllowed,
  OrderIsBlockedForCustomer,
  OverdelivTolrtdLmtRatioInPct,
  PartialDeliveryIsAllowed,
  PriceListType,
  ProductUnitGroup,
  ProofOfDeliveryTimeValue,
  SalesGroup,
  SalesItemProposal,
  SalesOffice,
  ShippingCondition,
  SlsDocIsRlvtForProofOfDeliv,
  SlsUnlmtdOvrdelivIsAllwd,
  SupplyingPlant,
  SalesDistrict,
  UnderdelivTolrtdLmtRatioInPct,
  InvoiceListSchedule,
  ExchangeRateType,
  IsBusinessPurposeCompleted,
  AdditionalCustomerGroup1,
  AdditionalCustomerGroup2,
  AdditionalCustomerGroup3,
  AdditionalCustomerGroup4,
  AdditionalCustomerGroup5,
  PaymentGuaranteeProcedure,
  _Customer.CustomerAccountGroup AS CustomerAccountGroup
FROM I_CustomerSalesArea
LEFT OUTER JOIN E_BPSALESAREA_D AS _SalesExtension ON Customer = _SalesExtension.Customer AND SalesOrganization = _SalesExtension.SalesOrganization AND DistributionChannel = _SalesExtension.DistributionChannel AND Division = _SalesExtension.Division  -- association [0..1]
LEFT OUTER JOIN A_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN A_CustomerSalesAreaTax AS _SalesAreaTax ON Customer = _SalesAreaTax.Customer AND SalesOrganization = _SalesAreaTax.SalesOrganization AND DistributionChannel = _SalesAreaTax.DistributionChannel AND Division = _SalesAreaTax.Division  -- association [0..*]
LEFT OUTER JOIN A_CustSalesPartnerFunc AS _PartnerFunction ON Customer = _PartnerFunction.Customer AND SalesOrganization = _PartnerFunction.SalesOrganization AND DistributionChannel = _PartnerFunction.DistributionChannel AND Division = _PartnerFunction.Division  -- association [0..*]
LEFT OUTER JOIN A_CustomerSalesAreaText AS _SalesAreaText ON Customer = _SalesAreaText.Customer AND SalesOrganization = _SalesAreaText.SalesOrganization AND DistributionChannel = _SalesAreaText.DistributionChannel AND Division = _SalesAreaText.Division  -- association [0..*]
LEFT OUTER JOIN A_CustSlsAreaAddrDepdntInfo AS _SlsAreaAddrDepdntInfo ON Customer = _SlsAreaAddrDepdntInfo.Customer AND SalesOrganization = _SlsAreaAddrDepdntInfo.SalesOrganization AND DistributionChannel = _SlsAreaAddrDepdntInfo.DistributionChannel AND Division = _SlsAreaAddrDepdntInfo.Division  -- association [0..*]
;