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 IATA: City
KEY Country Country Venue: Ctry/Reg
KEY Region Region Venue Region
CityCodeName
_text _text

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view A_CityCode.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ACITYCODE

CREATE VIEW A_CityCode AS
SELECT
  CityCode,
  Country,
  Region,
  _text[1:Language=$session.system_language].CityCodeName AS CityCodeName
FROM I_CityCode
LEFT OUTER JOIN A_CityCodeText AS _text ON CityCode = _text.CityCode  -- association [0..*]
;