I_CountyCode
County Code
I_CountyCode is a Basic CDS View (Dimension) that provides data about "County Code" in SAP S/4HANA. It reads from 1 data source (adrcounty) and exposes 6 fields with key fields Country, Region, County. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| adrcounty | adrcounty | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CountyCodeText | _Text | $projection.Country = _Text.Country and $projection.Region = _Text.Region and $projection.County = _Text.County |
| [1..1] | I_Region | _Region | $projection.Region = _Region.Region and $projection.Country = _Region.Country |
| [1..1] | I_Country | _Country | $projection.Country = _Country.Country |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICOUNTYCODE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | County Code | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | County | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Country | country | ||
| KEY | Region | region | ||
| KEY | County | county_code | ||
| _Text | _Text | |||
| _Region | _Region | |||
| _Country | _Country |
@AbapCatalog.sqlViewName: 'ICOUNTYCODE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Analytics : {dataCategory: #DIMENSION, dataExtraction.enabled : true}
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'County Code'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.representativeKey: 'County'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
define view I_CountyCode as select from adrcounty
association [0..*] to I_CountyCodeText as _Text on $projection.Country = _Text.Country
and $projection.Region = _Text.Region
and $projection.County = _Text.County
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: '_Country'
key country as Country,
@ObjectModel.foreignKey.association: '_Region'
key region as Region,
@ObjectModel.text.association: '_Text'
key county_code as County,
_Text,
_Region,
_Country
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ADRCOUNTY"
],
"ASSOCIATED":
[
"I_COUNTRY",
"I_COUNTYCODETEXT",
"I_REGION"
],
"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