I_EHSCountriesTextExclGroups
Country/Region names excluding groups
I_EHSCountriesTextExclGroups is a Basic CDS View that provides data about "Country/Region names excluding groups" in SAP S/4HANA. It reads from 2 data sources (I_CountryText, I_SAPClient) and exposes 15 fields with key fields Country, Language, Language. It has 3 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CountryText | I_CountryText | from |
| I_SAPClient | I_SAPClient | union |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
| [0..1] | I_Country | _Country | $projection.Country = _Country.Country |
| [0..*] | I_OTRText | _OTRText | _OTRText.Language = $session.system_language |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | EHSCNTRSTEXCLGR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Country/Region names excluding groups | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.dataCategory | #TEXT | view | |
| ObjectModel.representativeKey | Country | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.compositionRoot | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #ACTIVE | view | |
| AbapCatalog.buffering.type | #FULL | view | |
| AbapCatalog.buffering.numberOfKeyFields | 1 | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Country | Country | ||
| KEY | Language | Language | ||
| CountryName | CountryName | |||
| NationalityName | NationalityName | |||
| NationalityLongName | NationalityLongName | |||
| CountryShortName | CountryShortName | |||
| _Country | _Country | |||
| system_languagekeyasCountry | ||||
| KEY | Language | |||
| CountryName | ||||
| NationalityName | ||||
| NationalityLongName | ||||
| CountryShortName | ||||
| _Country | _Country | |||
| _Language | _Language |
@AbapCatalog.sqlViewName: 'EHSCNTRSTEXCLGR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Country/Region names excluding groups'
@VDM.viewType: #BASIC
@ObjectModel.dataCategory: #TEXT
@ObjectModel.representativeKey: 'Country'
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.compositionRoot:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #ACTIVE
@AbapCatalog.buffering.type: #FULL
@AbapCatalog.buffering.numberOfKeyFields: 1
@Metadata.ignorePropagatedAnnotations: true
define view I_EHSCountriesTextExclGroups
as select from I_CountryText
association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
association [0..1] to I_Country as _Country on $projection.Country = _Country.Country
{
@ObjectModel.foreignKey.association: '_Country'
key Country,
@ObjectModel.foreignKey.association: '_Language'
@Semantics.language
key Language,
@Semantics.text: true
CountryName,
NationalityName,
NationalityLongName,
CountryShortName,
_Country,
_Language
}
where
Country is not initial
and Country <> 'EU'
and Country <> 'NT'
and Country <> 'UN'
union select from I_SAPClient // this generates a dummy record for 'Worldwide'
association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
association [0..1] to I_Country as _Country on $projection.Country = _Country.Country
association [0..*] to I_OTRText as _OTRText on _OTRText.Language = $session.system_language
{
key '' as Country,
key $session.system_language as Language,
cast( _OTRText[1: OnlnTxtRpstryConceptID = '005056B252701ED3A7DC79FF5C64D2C3'].Text as abap.char(50) ) as CountryName, // OTR Text for "Worldwide"
'' as NationalityName,
'' as NationalityLongName,
'' as CountryShortName,
_Country,
_Language
}
where
sapclient = $session.client
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COUNTRYTEXT",
"I_OTRTEXT",
"I_SAPCLIENT"
],
"ASSOCIATED":
[
"I_COUNTRY",
"I_LANGUAGE"
],
"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