I_DCBBaseLocationFilter

DDL: I_DCBBASELOCATIONFILTER SQL: IDCBBASLOCFIL Type: view COMPOSITE

Base Location filter

I_DCBBaseLocationFilter is a Composite CDS View that provides data about "Base Location filter" in SAP S/4HANA. It reads from 6 data sources and exposes 10 fields with key field DealInternalCompany.

Data Sources (6)

SourceAliasJoin Type
/dmbe/i_Companycode _CompanyCode inner
/dmbe/c_Active_Location _Location from
/dmbe/c_Active_Location _Location union
I_OilPartnerRoles _PartnerRoles inner
/dmbe/i_Plant _Plant inner
I_ValuationArea _ValuationArea inner

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IDCBBASLOCFIL view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
Search.searchable true view
EndUserText.label Base Location filter view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (10)

KeyFieldSource TableSource FieldDescription
locationIDasTSWLocationID
TSWLocationName /dmbe/c_Active_Location locationName
AddressSearchTerm1 /dmbe/c_Active_Location searchTerm1
AddressSearchTerm2 /dmbe/c_Active_Location searchTerm2
locationIDasTSWLocationID
KEY DealInternalCompany /dmbe/i_Companycode CompanyCode
TSWLocationName /dmbe/c_Active_Location locationName
AddressSearchTerm1 /dmbe/c_Active_Location searchTerm1
AddressSearchTerm2 /dmbe/c_Active_Location searchTerm2
TSWLocationType /dmbe/c_Active_Location locationType
@AbapCatalog.sqlViewName: 'IDCBBASLOCFIL'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@Search.searchable: true
@EndUserText.label: 'Base Location filter'

@ObjectModel.usageType: {
  serviceQuality: #C,
  sizeCategory: #L,
  dataClass: #MIXED
}

define view I_DCBBaseLocationFilter
  as select distinct from /dmbe/c_Active_Location as _Location
{
      @Search.defaultSearchElement: false -- Hardcoded fields cannot be "searchable"
  key 'R'                                     as DealTransactionType, -- Intra-strategy locations
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #HIGH
  key _Location.locationID                    as TSWLocationID,
      @Search.defaultSearchElement: false -- Hardcoded fields cannot be "searchable"
  key cast( '    ' as bukrs preserving type ) as DealInternalCompany,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #HIGH
      _Location.locationName                  as TSWLocationName,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      _Location.searchTerm1                   as AddressSearchTerm1,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      _Location.searchTerm2                   as AddressSearchTerm2,
      @Search.defaultSearchElement: true
      _Location.locationType                  as TSWLocationType

}
union select from /dmbe/c_Active_Location as _Location
  inner join      I_OilPartnerRoles       as _PartnerRoles  on _PartnerRoles.LocationId = _Location.locationID
  inner join      /dmbe/i_Plant           as _Plant         on _PartnerRoles.Plant = _Plant.plant
  inner join      I_ValuationArea         as _ValuationArea on _ValuationArea.ValuationArea = _Plant.valuationArea
  inner join      /dmbe/i_Companycode     as _CompanyCode   on _CompanyCode.CompanyCode = _ValuationArea.CompanyCode

{

      @Search.defaultSearchElement: false -- Hardcoded fields cannot be "searchable"
  key 'H'                      as DealTransactionType, -- Inter-strategy locations
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #HIGH
  key _Location.locationID     as TSWLocationID,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #HIGH
  key _CompanyCode.CompanyCode as DealInternalCompany,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #HIGH
      _Location.locationName   as TSWLocationName,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      _Location.searchTerm1    as AddressSearchTerm1,
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      _Location.searchTerm2    as AddressSearchTerm2,
      @Search.defaultSearchElement: true
      _Location.locationType   as TSWLocationType

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"/DMBE/C_ACTIVE_LOCATION",
"/DMBE/I_COMPANYCODE",
"/DMBE/I_PLANT",
"I_OILPARTNERROLES",
"I_VALUATIONAREA"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/