I_MatlCompDscontnTypeText

DDL: I_MATLCOMPDSCONTNTYPETEXT Type: view_entity BASIC Package: VDM_PP_MRP

Material Discontinuation Type - Text

I_MatlCompDscontnTypeText is a Basic CDS View that provides data about "Material Discontinuation Type - Text" in SAP S/4HANA. It reads from 1 data source (dd07t) and exposes 6 fields with key fields MatlCompDiscontinuationType, Language. It has 2 associations to related views. Part of development package VDM_PP_MRP.

Data Sources (1)

SourceAliasJoin Type
dd07t t from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_MatlCompDiscontinuationType _MatlCompDiscontinuationType $projection.MatlCompDiscontinuationType = _MatlCompDiscontinuationType.MatlCompDiscontinuationType
[0..1] I_Language _Language $projection.Language = _Language.Language

Annotations (15)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.dataCategory #TEXT view
Analytics.dataExtraction.enabled true view
Analytics.technicalName IMATDISCTTYPETXT view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey MatlCompDiscontinuationType view
ObjectModel.modelingPattern #LANGUAGE_DEPENDENT_TEXT view
ObjectModel.sapObjectNodeType.name MaterialDiscontinuationTypeTxt view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #META view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Material Discontinuation Type - Text view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY MatlCompDiscontinuationType
KEY Language
DomainValue dd07t domvalue_l
MatlCompDscontnTypeName
_MatlCompDiscontinuationType _MatlCompDiscontinuationType
_Language _Language
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.dataCategory: #TEXT
@Analytics.dataExtraction.enabled: true
@Analytics.technicalName: 'IMATDISCTTYPETXT'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.representativeKey: 'MatlCompDiscontinuationType'
@ObjectModel.modelingPattern: #LANGUAGE_DEPENDENT_TEXT
@ObjectModel.supportedCapabilities: [#LANGUAGE_DEPENDENT_TEXT, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE, #SEARCHABLE_ENTITY, #EXTRACTION_DATA_SOURCE]
@ObjectModel.sapObjectNodeType.name: 'MaterialDiscontinuationTypeTxt'
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #L, dataClass: #META}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Material Discontinuation Type - Text'

/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK", "KEY_CHECK" ]  } */
define view entity I_MatlCompDscontnTypeText 
  as select from dd07t as t

  association [1..1] to I_MatlCompDiscontinuationType as _MatlCompDiscontinuationType on $projection.MatlCompDiscontinuationType = _MatlCompDiscontinuationType.MatlCompDiscontinuationType  
  association [0..1] to I_Language                    as _Language                    on $projection.Language = _Language.Language
{
      @ObjectModel.foreignKey.association: '_MatlCompDiscontinuationType'  
      @ObjectModel.text.element: ['MatlCompDscontnTypeName']
  key cast(substring(t.domvalue_l, 1, 1) as auslf preserving type) as MatlCompDiscontinuationType,
      @Semantics.language
      @ObjectModel.foreignKey.association: '_Language'
  key cast(t.ddlanguage as spras preserving type)                  as Language,
      @Analytics.hidden: true
      @Consumption.hidden: true
      t.domvalue_l                                                 as DomainValue,
      @Search: {defaultSearchElement: true, ranking: #LOW, fuzzinessThreshold: 0.8}
      @Semantics.text: true
      cast(t.ddtext as matlcompdscontntypename preserving type)    as MatlCompDscontnTypeName,

      // Associations

      @ObjectModel.association.type: [#TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT]
      _MatlCompDiscontinuationType,
      _Language
}
where t.domname  = 'AUSLF' 
  and t.as4local = 'A'
  and t.as4vers  = '0000';