I_BPTownshipTextTmp

DDL: I_BPTOWNSHIPTEXTTMP SQL: IBPTWNSHPTXTTMP Type: view BASIC

Township code text

I_BPTownshipTextTmp 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 Language, Country, Region, CountyCode, BPTownshipCode. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
adrtownshipt adrtownshipt from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Language _Language $projection.Language = _Language.Language
[1..1] I_BPCountyValueHelpTmp _County $projection.Country = _County.Country and $projection.Region = _County.Region and $projection.CountyCode = _County.CountyCode
[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 IBPTWNSHPTXTTMP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Township code text view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.dataCategory #TEXT view
VDM.viewType #BASIC view
ObjectModel.representativeKey BPTownshipCode view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Language langu Primary lang.
KEY Country country Venue: Ctry/Reg
KEY Region region Venue Region
KEY CountyCode county_code County code
KEY BPTownshipCode township_code Township code
TownshipName township Township
_County _County
_Region _Region
_Country _Country
_Language _Language

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_BPTownshipTextTmp.
-- 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: IBPTWNSHPTXTTMP

CREATE VIEW I_BPTownshipTextTmp AS
SELECT
  langu AS Language,
  Country,
  Region,
  county_code AS CountyCode,
  township_code AS BPTownshipCode,
  township AS TownshipName
FROM adrtownshipt
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language  -- association [0..1]
LEFT OUTER JOIN I_BPCountyValueHelpTmp AS _County ON Country = _County.Country AND Region = _County.Region AND CountyCode = _County.CountyCode  -- 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]
;