C_SoldToSlsOrgDistrChnlDivVH

DDL: C_SOLDTOSLSORGDISTRCHNLDIVVH Type: view CONSUMPTION Package: ODATA_SD_S4H_COMMON

Customer Sales Area

C_SoldToSlsOrgDistrChnlDivVH is a Consumption CDS View that provides data about "Customer Sales Area" in SAP S/4HANA. It reads from 1 data source (I_CustomerSalesArea) and exposes 18 fields with key fields Customer, SalesOrganization, DistributionChannel, Division. It has 4 associations to related views. Part of development package ODATA_SD_S4H_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_CustomerSalesArea CustomerSalesArea from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_SalesArea _SalesArea $projection.SalesOrganization_H = _SalesArea.SalesOrganization and $projection.DistributionChannel_H = _SalesArea.ReferenceDistributionChannel and $projection.Division_H = _SalesArea.ReferenceDivision
[0..*] I_SalesOrganizationText _SalesOrganizationText $projection.SalesOrganization = _SalesOrganizationText.SalesOrganization
[0..*] I_DistributionChannelText _DistributionChannelText $projection.DistributionChannel = _DistributionChannelText.DistributionChannel
[0..*] I_DivisionText _DivisionText $projection.Division = _DivisionText.Division

Annotations (17)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CSPBYSLSORGDCDIV view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AccessControl.personalData.blockingIndicator IsBusinessPurposeCompleted view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.dataCategory #VALUE_HELP view
Search.searchable true view
Consumption.ranked true view
EndUserText.label Customer Sales Area view
UI.headerInfo.typeName Sold-to by Sales Area view
UI.headerInfo.typeNamePlural Sold-to by Sales Area view
Metadata.ignorePropagatedAnnotations true view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY Customer I_CustomerSalesArea Customer
KEY SalesOrganization _SalesArea SalesOrganization
KEY DistributionChannel _SalesArea DistributionChannel
KEY Division _SalesArea Division
SalesOrganization_H I_CustomerSalesArea SalesOrganization
DistributionChannel_H I_CustomerSalesArea DistributionChannel
Division_H I_CustomerSalesArea Division
CustomerName Name
OrganizationBPName1
OrganizationBPName2
AddressSearchTerm1
AddressSearchTerm2
_SalesOrganizationText _SalesOrganizationText
_DistributionChannelText _DistributionChannelText
_DivisionText _DivisionText
AuthorizationGroup AuthorizationGroup
IsBusinessPurposeCompleted IsBusinessPurposeCompleted
_Customer _Customer
@ClientHandling.algorithm : #SESSION_VARIABLE

@VDM.viewType: #CONSUMPTION

@AbapCatalog: {
  sqlViewName: 'CSPBYSLSORGDCDIV',
  compiler.compareFilter: true
}

@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking:#REQUIRED,
  personalData.blockingIndicator: 'IsBusinessPurposeCompleted'
}

@ObjectModel:{
  usageType: {
    serviceQuality: #C,
    sizeCategory: #XXL,
    dataClass: #MASTER 
  },
  dataCategory: #VALUE_HELP
}

@Search.searchable: true

@Consumption:{
  ranked: true,
  dbHints: [ 'USE_HEX_PLAN' ]
}

@EndUserText.label: 'Customer Sales Area'

@UI.headerInfo:{
  typeName:       'Sold-to by Sales Area',
  typeNamePlural: 'Sold-to by Sales Area'
}

@Metadata.ignorePropagatedAnnotations: true

define view C_SoldToSlsOrgDistrChnlDivVH
  as select from I_CustomerSalesArea as CustomerSalesArea

  association [0..*] to I_SalesArea               as _SalesArea               on  $projection.SalesOrganization_H   = _SalesArea.SalesOrganization
                                                                              and $projection.DistributionChannel_H = _SalesArea.ReferenceDistributionChannel
                                                                              and $projection.Division_H            = _SalesArea.ReferenceDivision

  association [0..*] to I_SalesOrganizationText   as _SalesOrganizationText   on  $projection.SalesOrganization = _SalesOrganizationText.SalesOrganization
  association [0..*] to I_DistributionChannelText as _DistributionChannelText on  $projection.DistributionChannel = _DistributionChannelText.DistributionChannel
  association [0..*] to I_DivisionText            as _DivisionText            on  $projection.Division = _DivisionText.Division
{

      @Search: {
       defaultSearchElement: true,
       ranking: #HIGH,
       fuzzinessThreshold: 0.9
      }
      @ObjectModel.text.element:  [ 'CustomerName' ]
      @UI: {
       lineItem:[{ position: 10, importance: #HIGH }],
       selectionField:[{ position: 10 }] }
  key CustomerSalesArea.Customer,

      @ObjectModel.text.association: '_SalesOrganizationText'
      @Search: {
        defaultSearchElement: true,
        ranking: #LOW }
      @UI: {
       lineItem:[{ position: 30, importance: #HIGH }],
       selectionField:[{ position: 30 }],
       textArrangement: #TEXT_FIRST }
      @Consumption.valueHelpDefault.binding.usage:#FILTER_AND_RESULT
  key _SalesArea.SalesOrganization,

      @ObjectModel.text.association: '_DistributionChannelText'
      @Search: {
        defaultSearchElement: true,
        ranking: #LOW }
      @UI: {
       lineItem:[{ position: 40, importance: #HIGH }],
       selectionField:[{ position: 40 }],
       textArrangement: #TEXT_FIRST }
      @Consumption.valueHelpDefault.binding.usage:#FILTER_AND_RESULT
  key _SalesArea.DistributionChannel,

      @ObjectModel.text.association: '_DivisionText'
      @Search: {
        defaultSearchElement: true,
        ranking: #LOW }
      @UI: {
       lineItem:[{ position: 50, importance: #HIGH }],
       selectionField:[{ position: 50 }],
       textArrangement: #TEXT_FIRST }
      @Consumption.valueHelpDefault.binding.usage:#FILTER_AND_RESULT
  key _SalesArea.Division,

      @Consumption.hidden: true
      CustomerSalesArea.SalesOrganization   as SalesOrganization_H,

      @Consumption.hidden: true
      CustomerSalesArea.DistributionChannel as DistributionChannel_H,

      @Consumption.hidden: true
      CustomerSalesArea.Division            as Division_H,

      @UI:{
        lineItem:[{ position: 20, importance: #HIGH }],
        selectionField:[{ position: 20 }]
      }
      @Semantics.text: true
      @EndUserText.label : 'Name'
      CustomerSalesArea._Customer.CustomerName,

      @UI.hidden: true
      @Search: {
       defaultSearchElement: true,
       ranking: #LOW,
       fuzzinessThreshold: 0.8 }
      CustomerSalesArea._Customer.OrganizationBPName1,
     
      @UI.hidden: true
      @Search: {
       defaultSearchElement: true,
       ranking: #LOW,
       fuzzinessThreshold: 0.8 }
      CustomerSalesArea._Customer.OrganizationBPName2,
      
      @UI.lineItem: [{ position:60, importance:#LOW }]
      @Search: {
       defaultSearchElement: true,
       ranking: #LOW,
       fuzzinessThreshold: 0.8 }
      CustomerSalesArea._Customer._AddressDefaultRepresentation.AddressSearchTerm1,
      
      @UI.lineItem: [{ position:70, importance:#LOW }]
      @Search: {
       defaultSearchElement: true,
       ranking: #LOW,
       fuzzinessThreshold: 0.8 }
      CustomerSalesArea._Customer._AddressDefaultRepresentation.AddressSearchTerm2,

      @Consumption.filter.hidden: true
      _SalesOrganizationText,
      @Consumption.filter.hidden: true
      _DistributionChannelText,
      @Consumption.filter.hidden: true
      _DivisionText,

      //Needed for DCL

      @Consumption.hidden: true
      AuthorizationGroup,
      @Consumption.hidden: true
      @Semantics.booleanIndicator :true
      IsBusinessPurposeCompleted,
      @Consumption.hidden: true
      _Customer

}
where
  CustomerSalesArea.DeletionIndicator is initial