I_REOccupancyCube
Real Estate Occupancy - Cube
I_REOccupancyCube is a Composite CDS View (Cube) that provides data about "Real Estate Occupancy - Cube" in SAP S/4HANA. It reads from 1 data source (P_REOccupancyBaseCube) and exposes 49 fields with key fields REIntegObjectInternalNumber, REInternalNumberForOccupancy, REInternalNumberForUseEnable, REMeasurementType, ValidityEndDate. It has 4 associations to related views. Part of development package VDM_RE_IP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_REOccupancyBaseCube | _REIntegObjectOccCubeBase | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_REIntegObjectOccupancy | _REOccupancy | $projection.REInternalNumberForOccupancy = _REOccupancy.REIntegObjectInternalNumber and ( $projection.ValidityStartDate <= _REOccupancy.REOccupancyToDate and $projection.ValidityEndDate >= _REOccupancy.REOccupancyFromDate ) and _REOccupancy.REIntegObjectInternalNumber <> '' and $projection.CompanyCode = _REOccupancy.CompanyCode |
| [0..1] | I_REIntegrationObject | _REIntegObjectSpaceGroup | $projection.REInternalNumberForOccupancy = _REIntegObjectSpaceGroup.InternalRealEstateNumber and ( _REIntegObjectSpaceGroup.REIntegObjSpaceGroupType = 'IO01' or _REIntegObjectSpaceGroup.REIntegObjSpaceGroupType = 'EO01' or _REIntegObjectSpaceGroup.REIntegObjSpaceGroupType = 'IC01' ) |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_REIntegrationObjectRelation | _REIntegrationObjectRelation | $projection.REInternalNumberForOccupancy = _REIntegrationObjectRelation.InternalRealEstateNumber and $projection.REIntegObjectInternalNumber = _REIntegrationObjectRelation.InternalRealEstateNumberRltn and $projection.REMeasurementType = _REIntegrationObjectRelation.REMeasurementType and $projection.ValidityStartDate <= _REIntegrationObjectRelation.ValidityEndDate and $projection.ValidityEndDate >= _REIntegrationObjectRelation.ValidityStartDate |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IREOCCPCYCUBE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AbapCatalog.dataMaintenance | #DISPLAY_ONLY | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Real Estate Occupancy - Cube | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | REIntegObjectInternalNumber | P_REOccupancyBaseCube | REIntegObjectInternalNumber | RE Key |
| KEY | REInternalNumberForOccupancy | P_REOccupancyBaseCube | REInternalNumberForOccupancy | |
| KEY | REInternalNumberForUseEnable | P_REOccupancyBaseCube | REInternalNumberForUseEnable | |
| KEY | REMeasurementType | P_REOccupancyBaseCube | REMeasurementType | |
| KEY | ValidityEndDate | P_REOccupancyBaseCube | ValidityEndDate | ValidTo |
| ValidityStartDate | P_REOccupancyBaseCube | ValidityStartDate | Validity Start Date | |
| ValidityStartEndDateValue | ||||
| CompanyCode | Receiver Company Code | |||
| REIntegrationObjectNumber | ||||
| RealEstateExternalID | ||||
| REIntegrationObjectName | P_REOccupancyBaseCube | REIntegrationObjectName | ||
| REIntegObjectLongName | P_REOccupancyBaseCube | REIntegObjectLongName | ||
| REIntegrationObjectOccpcyName | _REIntegObjectSpaceGroup | REIntegrationObjectName | ||
| REInternalNumberForSite | P_REOccupancyBaseCube | REInternalNumberForSite | ||
| REInternalNumberForBuilding | P_REOccupancyBaseCube | REInternalNumberForBuilding | ||
| REInternalNumberForLand | P_REOccupancyBaseCube | REInternalNumberForLand | ||
| REInternalNumberForFloor | P_REOccupancyBaseCube | REInternalNumberForFloor | ||
| RealEstateExternalIDForOccpcy | P_REOccupancyBaseCube | RealEstateExternalIDForOccpcy | ||
| RealEstateExternalIDSite | P_REOccupancyBaseCube | RealEstateExternalIDSite | ||
| RealEstateExternalIDBldng | P_REOccupancyBaseCube | RealEstateExternalIDBldng | ||
| RealEstateExternalIDLand | P_REOccupancyBaseCube | RealEstateExternalIDLand | ||
| RealEstateExternalIDFloor | P_REOccupancyBaseCube | RealEstateExternalIDFloor | ||
| REIntegrationObjectNumberSite | P_REOccupancyBaseCube | REIntegrationObjectNumberSite | ||
| REIntegrationObjectNumberBldng | P_REOccupancyBaseCube | REIntegrationObjectNumberBldng | ||
| REIntegrationObjectNumberLand | P_REOccupancyBaseCube | REIntegrationObjectNumberLand | ||
| REIntegrationObjectNumberFloor | P_REOccupancyBaseCube | REIntegrationObjectNumberFloor | ||
| Country | P_REOccupancyBaseCube | Country | Venue: Ctry/Reg | |
| Region | P_REOccupancyBaseCube | Region | Venue Region | |
| REAuthorizationGroup | P_REOccupancyBaseCube | REAuthorizationGroup | Authoriz. Group | |
| REIntegrationObjectType | P_REOccupancyBaseCube | REIntegrationObjectType | ||
| REIntegObjectUsageClfn | P_REOccupancyBaseCube | REIntegObjectUsageClfn | ||
| REIntegObjectUsageType | P_REOccupancyBaseCube | REIntegObjectUsageType | ||
| REMeasurementUnit | P_REOccupancyBaseCube | REMeasurementUnit | ||
| RESpaceGrpEnableUseType | P_REOccupancyBaseCube | RESpaceGrpEnableUseType | ||
| REIntegObjSpaceGroupType | _REIntegObjectSpaceGroup | REIntegObjSpaceGroupType | ||
| RESpaceGroupUsageType | _REIntegObjectSpaceGroup | RESpaceGroupUsageType | ||
| REIntegrationObjectIsActive | P_REOccupancyBaseCube | REIntegrationObjectIsActive | ||
| REIntegrationObjectIsGrouped | P_REOccupancyBaseCube | REIntegrationObjectIsGrouped | ||
| RealEstateContract | _REOccupancy | RealEstateContract | Real Estate Contract | |
| REContractIsActive | _REOccupancy | REContractIsActive | ||
| REIsObjectRelationPartial | _REIntegrationObjectRelation | REIsObjectRelationPartial | ||
| REMeasurementTotalQuantity | ||||
| RENumberOfObjects | ||||
| _REIntegObjectTimeline | P_REOccupancyBaseCube | _REIntegObjectTimeline | ||
| _REIntegrationObject | P_REOccupancyBaseCube | _REIntegrationObject | ||
| _REOccupancy | _REOccupancy | |||
| _REIntegObjectSpaceGroup | _REIntegObjectSpaceGroup | |||
| _REMeasurementType | P_REOccupancyBaseCube | _REMeasurementType | ||
| _CompanyCode | _CompanyCode |
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_REOccupancyCube.
-- 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: IREOCCPCYCUBE
CREATE VIEW I_REOccupancyCube AS
SELECT
_REIntegObjectOccCubeBase.REIntegObjectInternalNumber AS REIntegObjectInternalNumber,
_REIntegObjectOccCubeBase.REInternalNumberForOccupancy AS REInternalNumberForOccupancy,
_REIntegObjectOccCubeBase.REInternalNumberForUseEnable AS REInternalNumberForUseEnable,
_REIntegObjectOccCubeBase.REMeasurementType AS REMeasurementType,
_REIntegObjectOccCubeBase.ValidityEndDate AS ValidityEndDate,
_REIntegObjectOccCubeBase.ValidityStartDate AS ValidityStartDate,
cast( concat(_REIntegObjectOccCubeBase.ValidityStartDate, _REIntegObjectOccCubeBase.ValidityEndDate ) as recadateperiod preserving type ) AS ValidityStartEndDateValue,
cast( CompanyCode as bukrs preserving type ) AS CompanyCode,
cast( _REIntegObjectOccCubeBase.REIntegrationObjectNumber as reipvdmionrspace preserving type ) AS REIntegrationObjectNumber,
cast( _REIntegObjectOccCubeBase.RealEstateExternalID as reipvdmextidspace preserving type ) AS RealEstateExternalID,
_REIntegObjectOccCubeBase.REIntegrationObjectName AS REIntegrationObjectName,
_REIntegObjectOccCubeBase.REIntegObjectLongName AS REIntegObjectLongName,
_REIntegObjectSpaceGroup.REIntegrationObjectName AS REIntegrationObjectOccpcyName,
_REIntegObjectOccCubeBase.REInternalNumberForSite AS REInternalNumberForSite,
_REIntegObjectOccCubeBase.REInternalNumberForBuilding AS REInternalNumberForBuilding,
_REIntegObjectOccCubeBase.REInternalNumberForLand AS REInternalNumberForLand,
_REIntegObjectOccCubeBase.REInternalNumberForFloor AS REInternalNumberForFloor,
_REIntegObjectOccCubeBase.RealEstateExternalIDForOccpcy AS RealEstateExternalIDForOccpcy,
_REIntegObjectOccCubeBase.RealEstateExternalIDSite AS RealEstateExternalIDSite,
_REIntegObjectOccCubeBase.RealEstateExternalIDBldng AS RealEstateExternalIDBldng,
_REIntegObjectOccCubeBase.RealEstateExternalIDLand AS RealEstateExternalIDLand,
_REIntegObjectOccCubeBase.RealEstateExternalIDFloor AS RealEstateExternalIDFloor,
_REIntegObjectOccCubeBase.REIntegrationObjectNumberSite AS REIntegrationObjectNumberSite,
_REIntegObjectOccCubeBase.REIntegrationObjectNumberBldng AS REIntegrationObjectNumberBldng,
_REIntegObjectOccCubeBase.REIntegrationObjectNumberLand AS REIntegrationObjectNumberLand,
_REIntegObjectOccCubeBase.REIntegrationObjectNumberFloor AS REIntegrationObjectNumberFloor,
_REIntegObjectOccCubeBase.Country AS Country,
_REIntegObjectOccCubeBase.Region AS Region,
_REIntegObjectOccCubeBase.REAuthorizationGroup AS REAuthorizationGroup,
_REIntegObjectOccCubeBase.REIntegrationObjectType AS REIntegrationObjectType,
_REIntegObjectOccCubeBase.REIntegObjectUsageClfn AS REIntegObjectUsageClfn,
_REIntegObjectOccCubeBase.REIntegObjectUsageType AS REIntegObjectUsageType,
_REIntegObjectOccCubeBase.REMeasurementUnit AS REMeasurementUnit,
_REIntegObjectOccCubeBase.RESpaceGrpEnableUseType AS RESpaceGrpEnableUseType,
_REIntegObjectSpaceGroup.REIntegObjSpaceGroupType AS REIntegObjSpaceGroupType,
_REIntegObjectSpaceGroup.RESpaceGroupUsageType AS RESpaceGroupUsageType,
_REIntegObjectOccCubeBase.REIntegrationObjectIsActive AS REIntegrationObjectIsActive,
_REIntegObjectOccCubeBase.REIntegrationObjectIsGrouped AS REIntegrationObjectIsGrouped,
_REOccupancy.RealEstateContract AS RealEstateContract,
_REOccupancy.REContractIsActive AS REContractIsActive,
_REIntegrationObjectRelation.REIsObjectRelationPartial AS REIsObjectRelationPartial,
sum( _REIntegObjectOccCubeBase.REMeasurementQuantity ) AS REMeasurementTotalQuantity,
sum( _REIntegObjectOccCubeBase.RENumberOfObjects ) AS RENumberOfObjects,
_REIntegObjectOccCubeBase._REIntegObjectTimeline AS _REIntegObjectTimeline,
_REIntegObjectOccCubeBase._REIntegrationObject AS _REIntegrationObject,
_REIntegObjectOccCubeBase._REMeasurementType AS _REMeasurementType
FROM P_REOccupancyBaseCube AS _REIntegObjectOccCubeBase
LEFT OUTER JOIN I_REIntegObjectOccupancy AS _REOccupancy ON REInternalNumberForOccupancy = _REOccupancy.REIntegObjectInternalNumber AND ( ValidityStartDate <= _REOccupancy.REOccupancyToDate AND ValidityEndDate >= _REOccupancy.REOccupancyFromDate ) AND _REOccupancy.REIntegObjectInternalNumber <> '' AND CompanyCode = _REOccupancy.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_REIntegrationObject AS _REIntegObjectSpaceGroup ON REInternalNumberForOccupancy = _REIntegObjectSpaceGroup.InternalRealEstateNumber AND ( _REIntegObjectSpaceGroup.REIntegObjSpaceGroupType = 'IO01' OR _REIntegObjectSpaceGroup.REIntegObjSpaceGroupType = 'EO01' OR _REIntegObjectSpaceGroup.REIntegObjSpaceGroupType = 'IC01' ) -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_REIntegrationObjectRelation AS _REIntegrationObjectRelation ON REInternalNumberForOccupancy = _REIntegrationObjectRelation.InternalRealEstateNumber AND REIntegObjectInternalNumber = _REIntegrationObjectRelation.InternalRealEstateNumberRltn AND REMeasurementType = _REIntegrationObjectRelation.REMeasurementType AND ValidityStartDate <= _REIntegrationObjectRelation.ValidityEndDate AND ValidityEndDate >= _REIntegrationObjectRelation.ValidityStartDate -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA