I_LocationType_2

DDL: I_LOCATIONTYPE_2 Type: view_entity BASIC Package: VDM_LOCATION

Location Types

I_LocationType_2 is a Basic CDS View (Dimension) that provides data about "Location Types" in SAP S/4HANA. It reads from 1 data source (dd07l) and exposes 3 fields with key field LocationType. It has 1 association to related views. Part of development package VDM_LOCATION.

Data Sources (1)

SourceAliasJoin Type
dd07l dd07l from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_LocationTypeText_2 _Text

Annotations (17)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Location Types view
Analytics.dataCategory #DIMENSION view
ObjectModel.sapObjectNodeType.name LocationType view
Analytics.internalName #LOCAL view
Consumption.ranked true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey LocationType view
ObjectModel.resultSet.sizeCategory #XS view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY LocationType
DomainValue dd07l domvalue_l
_Text _Text
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Location Types'
@Analytics.dataCategory: #DIMENSION
//optional

//@Analytics.dataExtraction.enabled: true

@ObjectModel.sapObjectNodeType.name: 'LocationType'
@Analytics.internalName: #LOCAL
@Consumption.ranked: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.dataCategory: #VALUE_HELP
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.representativeKey: 'LocationType'
@ObjectModel.resultSet.sizeCategory: #XS
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION,
                                     #CDS_MODELING_ASSOCIATION_TARGET,
                                     #CDS_MODELING_DATA_SOURCE,
//optional

//                                     #EXTRACTION_DATA_SOURCE,

                                     #SEARCHABLE_ENTITY,
                                     #SQL_DATA_SOURCE,
                                     #VALUE_HELP_PROVIDER]
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass: #META
@ObjectModel.usageType.sizeCategory: #S
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC

define root view entity I_LocationType_2
  as select from dd07l
  composition [0..*] of I_LocationTypeText_2 as _Text
{
      @ObjectModel.text.association: '_Text'
  key cast(domvalue_l as /sapapo/c_loctype) as LocationType,

       @Analytics.hidden: true
      @Consumption.hidden: true
      @Search.defaultSearchElement: true
      @Search.ranking: #HIGH
      dd07l.domvalue_l                      as DomainValue,

      /* Associations */
      _Text
}
where
       domname                     = '/SAPAPO/C_LOCTYPE'
  and  as4local                    = 'A'
  and(
       substring(domvalue_l, 1, 4) = '1003' /* Shipping Point */
    or substring(domvalue_l, 1, 4) = '1021' /* Business Partner */
    or substring(domvalue_l, 1, 4) = '1100' /* Port */
    or substring(domvalue_l, 1, 4) = '1110' /* Airport */
    or substring(domvalue_l, 1, 4) = '1120' /* Railway Station */
    or substring(domvalue_l, 1, 4) = '1190' /* Rail Junction */
    or substring(domvalue_l, 1, 4) = '1200' /* Loading Point */
  );