I_REApportionmentRule

DDL: I_REAPPORTIONMENTRULE SQL: IREAPPRTRULE Type: view_entity BASIC Package: VDM_RE_CS

Real Estate Apportionment Rule

I_REApportionmentRule is a Basic CDS View (Dimension) that provides data about "Real Estate Apportionment Rule" in SAP S/4HANA. It reads from 1 data source (vicsapportrule) and exposes 12 fields with key field REApportionmentRuleUUID. It has 5 associations to related views. Part of development package VDM_RE_CS.

Data Sources (1)

SourceAliasJoin Type
vicsapportrule _REApportionmentRule from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_REServiceGroup _REServiceGroup $projection.REServiceGroupUUID = _REServiceGroup.REServiceGroupUUID
[1..1] I_REKeyAssgmt _REKeyAssgmt $projection.InternalRealEstateNumber = _REKeyAssgmt.InternalRealEstateNumber
[1..1] I_RETermType _RETermType $projection.RETermType = _RETermType.RETermType and _RETermType.RealEstateObjectType = 'J6'
[1..1] I_RETerm _RETerm $projection.InternalRealEstateNumber = _RETerm.InternalRealEstateNumber and $projection.RETermType = _RETerm.RETermType and $projection.RETermNumber = _RETerm.RETermNumber
[0..*] I_REApportionmentRule2Detail _REApportionmentRuleDetail $projection.REApportionmentRuleUUID = _REApportionmentRuleDetail.REApportionmentRuleUUID

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
EndUserText.label Real Estate Apportionment Rule view
ObjectModel.representativeKey REApportionmentRuleUUID view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #BASIC view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY REApportionmentRuleUUID apportionmentruleguid Apport. Rule GUID
REServiceGroupUUID objectuuid UUID GO
InternalRealEstateNumber _REServiceGroup InternalRealEstateNumber RE Key
RETermType termtype Term Type
RETermNumber termno Term Number
ValidityStartDate Vers.Valid From
ValidityEndDate Vers.Valid To
REVacancyPercent vacancy_percent Vacancy
_REKeyAssgmt _REKeyAssgmt
_RETermType _RETermType
_RETerm _RETerm
_REApportionmentRuleDetail _REApportionmentRuleDetail

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_REApportionmentRule.
-- 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: IREAPPRTRULE

CREATE VIEW I_REApportionmentRule AS
SELECT
  apportionmentruleguid AS REApportionmentRuleUUID,
  objectuuid AS REServiceGroupUUID,
  _REServiceGroup.InternalRealEstateNumber AS InternalRealEstateNumber,
  termtype AS RETermType,
  termno AS RETermNumber,
  cast(validfrom as rebdvdmvalidfrom preserving type) AS ValidityStartDate,
  cast(validto as rebdvdmvalidto preserving type) AS ValidityEndDate,
  vacancy_percent AS REVacancyPercent
FROM vicsapportrule AS _REApportionmentRule
LEFT OUTER JOIN I_REServiceGroup AS _REServiceGroup ON REServiceGroupUUID = _REServiceGroup.REServiceGroupUUID  -- association [1..1]
LEFT OUTER JOIN I_REKeyAssgmt AS _REKeyAssgmt ON InternalRealEstateNumber = _REKeyAssgmt.InternalRealEstateNumber  -- association [1..1]
LEFT OUTER JOIN I_RETermType AS _RETermType ON RETermType = _RETermType.RETermType AND _RETermType.RealEstateObjectType = 'J6'  -- association [1..1]
LEFT OUTER JOIN I_RETerm AS _RETerm ON InternalRealEstateNumber = _RETerm.InternalRealEstateNumber AND RETermType = _RETerm.RETermType AND RETermNumber = _RETerm.RETermNumber  -- association [1..1]
LEFT OUTER JOIN I_REApportionmentRule2Detail AS _REApportionmentRuleDetail ON REApportionmentRuleUUID = _REApportionmentRuleDetail.REApportionmentRuleUUID  -- association [0..*]
;