I_BPCityValueHelpTmp
City Code
I_BPCityValueHelpTmp is a Basic CDS View that provides data about "City Code" in SAP S/4HANA. It reads from 1 data source (adrcity) and exposes 8 fields with key fields Country, BusinessPartnerCityCode. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| adrcity | adrcity | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Country | _Country | $projection.Country = _Country.Country |
| [0..1] | I_BPCityTextTmp | _Text | $projection.Country = _Text.Country and $projection.BusinessPartnerCityCode = _Text.BusinessPartnerCityCode and _Text.Language = $session.system_language |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IBPCITYVHTMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | City Code | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | BusinessPartnerCityCode | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_PostalCity | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Country | country | ||
| KEY | BusinessPartnerCityCode | city_code | ||
| CountyCode | county_code | |||
| TownshipCode | township_code | |||
| Region | region | |||
| CityName | _Text | CityName | ||
| _Country | _Country | |||
| _Text | _Text |
@AbapCatalog.sqlViewName: 'IBPCITYVHTMP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'City Code'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'BusinessPartnerCityCode'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.dataCategory: #VALUE_HELP
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'I_PostalCity'
@Search.searchable: true
@Consumption.ranked: true
define view I_BPCityValueHelpTmp
as select from adrcity
association [0..1] to I_Country as _Country on $projection.Country = _Country.Country
association [0..1] to I_BPCityTextTmp as _Text on $projection.Country = _Text.Country
and $projection.BusinessPartnerCityCode = _Text.BusinessPartnerCityCode
and _Text.Language = $session.system_language
{
@ObjectModel.foreignKey.association: '_Country'
key country as Country,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
@ObjectModel.text.element: 'CityName'
key city_code as BusinessPartnerCityCode,
county_code as CountyCode,
township_code as TownshipCode,
region as Region,
@UI.lineItem.position: 1
_Text.CityName as CityName,
_Country,
_Text
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BPCITYTEXTTMP",
"ADRCITY"
],
"ASSOCIATED":
[
"I_BPCITYTEXTTMP",
"I_COUNTRY"
],
"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