I_CountyCode

DDL: I_COUNTYCODE SQL: ICOUNTYCODE Type: view BASIC

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)

SourceAliasJoin Type
adrcounty adrcounty from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY Country country Venue: Ctry/Reg
KEY Region region Venue Region
KEY County county_code County code
_Text _Text
_Region _Region
_Country _Country

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 I_CountyCode.
-- 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: ICOUNTYCODE

CREATE VIEW I_CountyCode AS
SELECT
  Country,
  Region,
  county_code AS County
FROM adrcounty
LEFT OUTER JOIN I_CountyCodeText AS _Text ON Country = _Text.Country AND Region = _Text.Region AND County = _Text.County  -- association [0..*]
LEFT OUTER JOIN I_Region AS _Region ON Region = _Region.Region AND Country = _Region.Country  -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country  -- association [1..1]
;