I_SubstNameFallbackLanguage

DDL: I_SUBSTNAMEFALLBACKLANGUAGE Type: view_entity COMPOSITE

Substance name with a fallback language

I_SubstNameFallbackLanguage is a Composite CDS View that provides data about "Substance name with a fallback language" in SAP S/4HANA. It reads from 1 data source (I_Substance) and exposes 2 fields with key field SubstanceUUID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_Substance I_Substance from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Substance _Substance $projection.SubstanceUUID = _Substance.SubstanceUUID

Annotations (6)

NameValueLevelField
EndUserText.label Substance name with a fallback language view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #COMPOSITE view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY SubstanceUUID SubstanceUUID
_Substance _Substance
@EndUserText.label: 'Substance name with a fallback language'
@AccessControl.authorizationCheck: #MANDATORY
@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #M,
  dataClass: #MASTER
}
@VDM.viewType: #COMPOSITE
define view entity I_SubstNameFallbackLanguage
  as select from I_Substance
  association [1..1] to I_Substance as _Substance on $projection.SubstanceUUID = _Substance.SubstanceUUID
{
  key SubstanceUUID,
      cast (
        case
          when _SubstanceText[1:Language = $session.system_language].SubstanceUUID is not null
             then _SubstanceText[1:Language = $session.system_language].SubstanceName
          when _SubstanceText[1:Language = $session.system_language].SubstanceUUID is null and _ListedSubstance.ListedSubstanceDefaultName is not null
            then _ListedSubstance.ListedSubstanceDefaultName
          when _SubstanceText[1:Language = $session.system_language].SubstanceUUID is null and _ListedSubstance.ListedSubstanceDefaultName is null
            then SubstanceInternalName
        end as ehfnd_sub_substance_name_ltd ) as SubstanceName,

      _Substance
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SUBSTACTIVEDRAFTLSTDSUBST",
"I_SUBSTANCE",
"I_SUBSTANCETEXT"
],
"ASSOCIATED":
[
"I_SUBSTANCE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/