A_CustomerSalesArea

DDL: A_CUSTOMERSALESAREA SQL: ACUSTSALESAREA Type: view BASIC Package: ODATA_MASTER_DATA_BP

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. Part of development package ODATA_MASTER_DATA_BP.

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
KEY SalesOrganization SalesOrganization
KEY DistributionChannel DistributionChannel
KEY Division Division
AccountByCustomer AccountByCustomer
AuthorizationGroup AuthorizationGroup
BillingIsBlockedForCustomer BillingIsBlockedForCustomer
CompleteDeliveryIsDefined CompleteDeliveryIsDefined
CreditControlArea CreditControlArea
Currency Currency
CustIsRlvtForSettlmtMgmt CustIsRlvtForSettlmtMgmt
CustomerABCClassification CustomerABCClassification
CustomerAccountAssignmentGroup CustomerAccountAssignmentGroup
CustomerGroup CustomerGroup
CustomerIsRebateRelevant CustomerIsRebateRelevant
CustomerPaymentTerms CustomerPaymentTerms
CustomerPriceGroup CustomerPriceGroup
CustomerPricingProcedure CustomerPricingProcedure
CustomerStatisticsGroup CustomerStatisticsGroup
CustProdProposalProcedure CustProdProposalProcedure
DeliveryIsBlockedForCustomer DeliveryIsBlockedForCustomer
DeliveryPriority DeliveryPriority
IncotermsClassification IncotermsClassification
IncotermsLocation2 IncotermsLocation2
IncotermsVersion IncotermsVersion
IncotermsLocation1 IncotermsLocation1
IncotermsSupChnLoc1AddlUUID IncotermsSupChnLoc1AddlUUID
IncotermsSupChnLoc2AddlUUID IncotermsSupChnLoc2AddlUUID
IncotermsSupChnDvtgLocAddlUUID IncotermsSupChnDvtgLocAddlUUID
DeletionIndicator DeletionIndicator
IncotermsTransferLocation IncotermsTransferLocation
InspSbstHasNoTimeOrQuantity InspSbstHasNoTimeOrQuantity
InvoiceDate InvoiceDate
ItemOrderProbabilityInPercent ItemOrderProbabilityInPercent
ManualInvoiceMaintIsRelevant ManualInvoiceMaintIsRelevant
MaxNmbrOfPartialDelivery MaxNmbrOfPartialDelivery
OrderCombinationIsAllowed OrderCombinationIsAllowed
OrderIsBlockedForCustomer OrderIsBlockedForCustomer
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct
PartialDeliveryIsAllowed PartialDeliveryIsAllowed
PriceListType PriceListType
ProductUnitGroup ProductUnitGroup
ProofOfDeliveryTimeValue ProofOfDeliveryTimeValue
SalesGroup SalesGroup
SalesItemProposal SalesItemProposal
SalesOffice SalesOffice
ShippingCondition ShippingCondition
SlsDocIsRlvtForProofOfDeliv SlsDocIsRlvtForProofOfDeliv
SlsUnlmtdOvrdelivIsAllwd SlsUnlmtdOvrdelivIsAllwd
SupplyingPlant SupplyingPlant
SalesDistrict SalesDistrict
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct
InvoiceListSchedule InvoiceListSchedule
ExchangeRateType ExchangeRateType
IsBusinessPurposeCompleted IsBusinessPurposeCompleted
AdditionalCustomerGroup1 AdditionalCustomerGroup1
AdditionalCustomerGroup2 AdditionalCustomerGroup2
AdditionalCustomerGroup3 AdditionalCustomerGroup3
AdditionalCustomerGroup4 AdditionalCustomerGroup4
AdditionalCustomerGroup5 AdditionalCustomerGroup5
PaymentGuaranteeProcedure PaymentGuaranteeProcedure
CustomerAccountGroup _Customer CustomerAccountGroup
_Customer _Customer
_SalesAreaTax _SalesAreaTax
_PartnerFunction _PartnerFunction
_SalesAreaText _SalesAreaText
_SlsAreaAddrDepdntInfo _SlsAreaAddrDepdntInfo
@AbapCatalog.sqlViewName: 'ACUSTSALESAREA'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck:#MANDATORY
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations:true
@EndUserText.label: 'Sales Area'
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type:#PUBLIC_REMOTE_API
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.createEnabled:true
@ObjectModel.updateEnabled:true
@Consumption.dbHints: [ 'USE_HEX_PLAN' ]
//@ObjectModel.deleteEnabled:true


define view A_CustomerSalesArea as select from I_CustomerSalesArea

  association [0..1] to E_BPSALESAREA_D as _SalesExtension on  $projection.Customer = _SalesExtension.Customer
                                                           and $projection.SalesOrganization = _SalesExtension.SalesOrganization
                                                           and $projection.DistributionChannel = _SalesExtension.DistributionChannel
                                                           and $projection.Division = _SalesExtension.Division

  association [1..1] to A_Customer as _Customer on $projection.Customer = _Customer.Customer
 
  association [0..*] to A_CustomerSalesAreaTax as _SalesAreaTax on  $projection.Customer = _SalesAreaTax.Customer 
                                                                and $projection.SalesOrganization = _SalesAreaTax.SalesOrganization 
                                                                and $projection.DistributionChannel = _SalesAreaTax.DistributionChannel
                                                                and $projection.Division = _SalesAreaTax.Division 
                                                               
  association [0..*] to A_CustSalesPartnerFunc as _PartnerFunction on  $projection.Customer = _PartnerFunction.Customer  
                                                                   and $projection.SalesOrganization = _PartnerFunction.SalesOrganization 
                                                                   and $projection.DistributionChannel = _PartnerFunction.DistributionChannel
                                                                   and $projection.Division = _PartnerFunction.Division 
  
  association [0..*] to A_CustomerSalesAreaText as _SalesAreaText on  $projection.Customer = _SalesAreaText.Customer  
                                                                  and $projection.SalesOrganization = _SalesAreaText.SalesOrganization 
                                                                  and $projection.DistributionChannel = _SalesAreaText.DistributionChannel
                                                                  and $projection.Division = _SalesAreaText.Division 
                                                               
  association [0..*] to A_CustSlsAreaAddrDepdntInfo as _SlsAreaAddrDepdntInfo on  $projection.Customer = _SlsAreaAddrDepdntInfo.Customer   
                                                                              and $projection.SalesOrganization = _SlsAreaAddrDepdntInfo.SalesOrganization 
                                                                              and $projection.DistributionChannel = _SlsAreaAddrDepdntInfo.DistributionChannel
                                                                              and $projection.Division = _SlsAreaAddrDepdntInfo.Division   
                                                                                                                                                                  
{
  key Customer,
  key SalesOrganization,
  key DistributionChannel, 
  key Division, 
      AccountByCustomer, 
      AuthorizationGroup, 
      BillingIsBlockedForCustomer, 
      CompleteDeliveryIsDefined, 
      CreditControlArea,
      Currency, 
      CustIsRlvtForSettlmtMgmt,
      CustomerABCClassification, 
      CustomerAccountAssignmentGroup, 
      CustomerGroup, 
      CustomerIsRebateRelevant,
      CustomerPaymentTerms, 
      CustomerPriceGroup, 
      CustomerPricingProcedure, 
      CustomerStatisticsGroup,
      CustProdProposalProcedure,
      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,
      @Consumption.hidden: true
      IsBusinessPurposeCompleted,
      AdditionalCustomerGroup1,
      AdditionalCustomerGroup2,
      AdditionalCustomerGroup3,
      AdditionalCustomerGroup4,
      AdditionalCustomerGroup5,
      PaymentGuaranteeProcedure,    
      _Customer.CustomerAccountGroup,
      _Customer,
      _SalesAreaTax,
      _PartnerFunction,
      _SalesAreaText,
      _SlsAreaAddrDepdntInfo
}