I_CityCodeText
City Code Text
I_CityCodeText is a Basic CDS View that provides data about "City Code Text" in SAP S/4HANA. It reads from 1 data source (t005h) and exposes 9 fields with key fields Region, Country, CityCode, Language. It has 4 associations to related views. Part of development package VDM_MD_BP_BASE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t005h | t005h | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CityCode | _CityCode | $projection.Country = _CityCode.Country and $projection.Region = _CityCode.Region and $projection.CityCode = _CityCode.CityCode |
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
| [1..1] | I_Region | _Region | $projection.Region = _Region.Region and $projection.Country = _Region.Country |
| [1..1] | I_Country | _Country | $projection.Country = _Country.Country |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.dataCategory | #TEXT | view | |
| ObjectModel.representativeKey | CityCode | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| AbapCatalog.sqlViewName | ICITYCODETEXT | view | |
| EndUserText.label | City Code Text | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Region | regio | ||
| KEY | Country | land1 | ||
| KEY | CityCode | cityc | ||
| KEY | Language | spras | ||
| CityCodeName | bezei | City Code Name | ||
| _CityCode | _CityCode | |||
| _Language | _Language | |||
| _Region | _Region | |||
| _Country | _Country |
@ClientHandling.algorithm: #SESSION_VARIABLE //Inserted by VDM CDS Suite Plugin
@ObjectModel.dataCategory: #TEXT
@ObjectModel.representativeKey: 'CityCode'
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #M
@AbapCatalog.sqlViewName: 'ICITYCODETEXT'
@EndUserText.label: 'City Code Text'
@Analytics.dataExtraction.enabled: true
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations:true
define view I_CityCodeText
as select from t005h
association [0..1] to I_CityCode as _CityCode on $projection.Country = _CityCode.Country
and $projection.Region = _CityCode.Region
and $projection.CityCode = _CityCode.CityCode
association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
association [1..1] to I_Region as _Region on $projection.Region = _Region.Region
and $projection.Country = _Region.Country
association [1..1] to I_Country as _Country on $projection.Country = _Country.Country
{
@ObjectModel.foreignKey.association: '_Region'
key regio as Region,
@ObjectModel.foreignKey.association: '_Country'
key land1 as Country,
@ObjectModel.foreignKey.association: '_CityCode'
key cityc as CityCode,
@Semantics.language
@ObjectModel.foreignKey.association: '_Language'
key spras as Language,
@EndUserText.label: 'City Code Name'
@Semantics.text
bezei as CityCodeName,
_CityCode,
_Language,
_Region,
_Country
}
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