I_TownshipCodeText

DDL: I_TOWNSHIPCODETEXT SQL: ITOWNSHIPTEXT Type: view BASIC Package: VDM_MD_BP_BASE

Township Code Text

I_TownshipCodeText is a Basic CDS View that provides data about "Township Code Text" in SAP S/4HANA. It reads from 1 data source (adrtownshipt) and exposes 10 fields with key fields Country, Region, County, Township, Language. It has 5 associations to related views. Part of development package VDM_MD_BP_BASE.

Data Sources (1)

SourceAliasJoin Type
adrtownshipt adrtownshipt from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_Language _Language $projection.Language = _Language.Language
[1..1] I_TownshipCode _Township $projection.Country = _Township.Country and $projection.Region = _Township.Region and $projection.County = _Township.County and $projection.Township = _Township.Township
[1..1] I_CountyCode _County $projection.Country = _County.Country and $projection.Region = _County.Region and $projection.County = _County.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 (12)

NameValueLevelField
AbapCatalog.sqlViewName ITOWNSHIPTEXT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Township Code Text view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.dataCategory #TEXT view
VDM.viewType #BASIC view
ObjectModel.representativeKey Township view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #CUSTOMIZING view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Country country Venue: Ctry/Reg
KEY Region region Venue Region
KEY County county_code County code
KEY Township township_code Township code
KEY Language langu Primary lang.
TownshipName township Township
_Township _Township
_County _County
_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_TownshipCodeText.
-- 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: ITOWNSHIPTEXT

CREATE VIEW I_TownshipCodeText AS
SELECT
  Country,
  Region,
  county_code AS County,
  township_code AS Township,
  langu AS Language,
  township AS TownshipName
FROM adrtownshipt
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language  -- association [0..1]
LEFT OUTER JOIN I_TownshipCode AS _Township ON Country = _Township.Country AND Region = _Township.Region AND County = _Township.County AND Township = _Township.Township  -- association [1..1]
LEFT OUTER JOIN I_CountyCode AS _County ON Country = _County.Country AND Region = _County.Region AND County = _County.County  -- association [1..1]
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]
;