R_TrdgDocCategoryText

DDL: R_TRDGDOCCATEGORYTEXT Type: view_entity BASIC

Trading Document Category - Text

R_TrdgDocCategoryText is a Basic CDS View that provides data about "Trading Document Category - Text" in SAP S/4HANA. It reads from 1 data source (dd07t) and exposes 6 fields with key fields Language, TrdgDocCategory. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
dd07t dd07t from

Associations (1)

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

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Trading Document Category - Text view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #TEXT view
ObjectModel.modelingPattern #LANGUAGE_DEPENDENT_TEXT view
ObjectModel.representativeKey TrdgDocCategory view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Language
KEY TrdgDocCategory
DomainValue dd07t domvalue_l
TrdgDocCategoryName dd07t ddtext
_TrdgDocCategory _TrdgDocCategory
_Language _Language
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Trading Document Category - Text'
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {
  dataCategory: #TEXT,
  modelingPattern: #LANGUAGE_DEPENDENT_TEXT,
  supportedCapabilities: [ #LANGUAGE_DEPENDENT_TEXT ],
  representativeKey: 'TrdgDocCategory',
  usageType: {
    serviceQuality: #A,
    dataClass: #META,
    sizeCategory: #S
  }
}
@Search.searchable: true

define view entity R_TrdgDocCategoryText
  as select from dd07t
  association        to parent R_TrdgDocCategory as _TrdgDocCategory on $projection.TrdgDocCategory = _TrdgDocCategory.TrdgDocCategory
  association [0..1] to I_Language               as _Language        on $projection.Language = _Language.Language
{
      @ObjectModel.foreignKey.association: '_Language'
      @Semantics.language: true
  key cast( dd07t.ddlanguage as spras preserving type ) as Language,
      @ObjectModel.foreignKey.association: '_TrdgDocCategory'
      @ObjectModel.text.element: ['TrdgDocCategoryName']
      @Search.ranking: #HIGH
      @Search.defaultSearchElement: false
  key cast( dd07t.domvalue_l as tccat )                 as TrdgDocCategory,
      @Consumption.hidden: true
      dd07t.domvalue_l                                  as DomainValue,
      
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #LOW
      @Search.defaultSearchElement: true
      @Semantics.text: true
      @Consumption.filter.hidden: true
      @UI.textArrangement: #TEXT_ONLY
      dd07t.ddtext                                      as TrdgDocCategoryName,

      //Associations

      _TrdgDocCategory,
      _Language
}
where
      domname       = 'TCCAT'
  and as4local      = 'A'
  and dd07t.as4vers = '0000';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DD07T"
],
"ASSOCIATED":
[
"I_LANGUAGE",
"R_TRDGDOCCATEGORY"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/