A_CityCode
City Code
A_CityCode is a Basic CDS View that provides data about "City Code" in SAP S/4HANA. It reads from 1 data source (I_CityCode) and exposes 5 fields with key fields CityCode, Country, Region. It has 1 association to related views. It is exposed through 1 OData service (API_CITYCODE).
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CityCode | I_CityCode | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_CityCodeText | _text | $projection.CityCode = _text.CityCode |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ACITYCODE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | City Code | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | CityCode | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| OData.entityType.name | CityCode_Type | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| VDM.viewType | #BASIC | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| API_CITYCODE | API_CITYCODE | V4 | C2 | C1 |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CityCode | CityCode | ||
| KEY | Country | Country | ||
| KEY | Region | Region | ||
| CityCodeName | ||||
| _text | _text |
@AbapCatalog.sqlViewName: 'ACITYCODE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'City Code'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.representativeKey: 'CityCode'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.sizeCategory: #S
@OData.entityType.name: 'CityCode_Type'
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_REMOTE_API
@VDM.viewType: #BASIC
define view A_CityCode as select from I_CityCode
association [0..*] to A_CityCodeText as _text
on $projection.CityCode = _text.CityCode
{
@ObjectModel.text.element: ['CityCodeName']
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
key CityCode,
key Country,
key Region,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Semantics.text: true
_text[1:Language=$session.system_language].CityCodeName,
_text
}
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