A_CityCode

DDL: A_CITYCODE SQL: ACITYCODE Type: view BASIC

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.

Data Sources (1)

SourceAliasJoin Type
I_CityCode I_CityCode from

Associations (1)

CardinalityTargetAliasCondition
[0..*] A_CityCodeText _text $projection.CityCode = _text.CityCode

Annotations (15)

NameValueLevelField
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

Fields (5)

KeyFieldSource TableSource FieldDescription
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
 }
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"A_CITYCODETEXT",
"I_CITYCODE"
],
"ASSOCIATED":
[
"A_CITYCODETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/