A_CityCodeText

DDL: A_CITYCODETEXT SQL: ACITYCODETEXT Type: view BASIC

City Code - Text

A_CityCodeText is a Basic CDS View that provides data about "City Code - Text" in SAP S/4HANA. It reads from 1 data source (I_CityCodeText) and exposes 6 fields with key fields Language, Region, Country, CityCode. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_CityCodeText I_CityCodeText from

Associations (1)

CardinalityTargetAliasCondition
[1..1] A_CityCode _CityCode $projection.CityCode = _CityCode.CityCode and $projection.Region = _CityCode.Region and $projection.Country = _CityCode.Country

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ACITYCODETEXT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label City Code - Text view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.dataCategory #TEXT view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #BASIC view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Language Language Report Text Language
KEY Region Region Venue Region
KEY Country Country Venue: Ctry/Reg
KEY CityCode CityCode IATA: City
CityCodeName CityCodeName City Code
_CityCode _CityCode

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_CityCodeText.
-- 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: ACITYCODETEXT

CREATE VIEW A_CityCodeText AS
SELECT
  Language,
  Region,
  Country,
  CityCode,
  CityCodeName
FROM I_CityCodeText
LEFT OUTER JOIN A_CityCode AS _CityCode ON CityCode = _CityCode.CityCode AND Region = _CityCode.Region AND Country = _CityCode.Country  -- association [1..1]
;