I_EHSLocNameFallbackLanguage
Location name with a fallback language
I_EHSLocNameFallbackLanguage is a Composite CDS View that provides data about "Location name with a fallback language" in SAP S/4HANA. It reads from 1 data source (I_EHSLocationRoot) and exposes 2 fields with key field EHSLocationUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocationRoot | I_EHSLocationRoot | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Location name with a fallback language | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationUUID | EHSLocationUUID | ||
| EHSLocationNameendasEHSLocationName |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Location name with a fallback language'
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #L,
dataClass: #MASTER
}
@VDM.viewType: #COMPOSITE
define view entity I_EHSLocNameFallbackLanguage
as select from I_EHSLocationRoot
{
key EHSLocationUUID,
min( distinct case
// Try to return a name in the user's system language.
when _EHSLocNameCurrentRevision[ 1:Language = $session.system_language ].EHSLocationName is not null
then _EHSLocNameCurrentRevision[ 1:Language = $session.system_language ].EHSLocationName
// If it doesn't exist, try to return one in English.
when _EHSLocNameCurrentRevision[ 1:Language = 'E' ].EHSLocationName is not null
then _EHSLocNameCurrentRevision[ 1:Language = 'E' ].EHSLocationName
// And if neither of them exist, return the first found in any other language.
else _EHSLocNameCurrentRevision[ 1:Language is not null ].EHSLocationName
end ) as EHSLocationName
}
group by
EHSLocationUUID
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