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. Part of development package EHFND_BO_LOC_IMPL.
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 (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSLocationUUID | EHSLocationUUID | ||
| EHSLocationNameendasEHSLocationName | ||||
| EHSLocationNameFreeSrch |
@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 distinct from I_EHSLocationRoot
{
key EHSLocationUUID,
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,
_EHSLocNameCurrentRevision[ 1:Language = $session.system_language ].EHSLocationName as EHSLocationNameFreeSrch
}
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