I_SubstNameFallbackLanguage
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)
| Source | Alias | Join Type |
|---|---|---|
| I_Substance | I_Substance | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Substance | _Substance | $projection.SubstanceUUID = _Substance.SubstanceUUID |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA