P_REIntegObjectOccpcyCalc4

DDL: P_REINTEGOBJECTOCCPCYCALC4 SQL: PREINTOBJOCCCAL4 Type: view COMPOSITE

P_REIntegObjectOccpcyCalc4 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_REIntegObjectOccpcyCalc9, I_REIntegrationObject) and exposes 7 fields.

Data Sources (2)

SourceAliasJoin Type
P_REIntegObjectOccpcyCalc9 _REIntegObjectOccpcyCalc inner
I_REIntegrationObject _REIntegrationObject from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PREINTOBJOCCCAL4 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view

Fields (7)

KeyFieldSource TableSource FieldDescription
REIntegObjectInternalNumber I_REIntegrationObject InternalRealEstateNumber RE Key
REIntegObjectStatusObject I_REIntegrationObject REStatusObject Val. Obj. No.
REIntegObjectValidityStartDate I_REIntegrationObject ValidityStartDate Validity Start Date
REMinOccupancyFromDate
REMaxOccupancyToDate
REIntegObjectValidityEndDate I_REIntegrationObject ValidityEndDate ValidTo
IsVacant

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 P_REIntegObjectOccpcyCalc4.
-- 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: PREINTOBJOCCCAL4

CREATE VIEW P_REIntegObjectOccpcyCalc4 AS
SELECT
  _REIntegrationObject.InternalRealEstateNumber AS REIntegObjectInternalNumber,
  _REIntegrationObject.REStatusObject AS REIntegObjectStatusObject,
  _REIntegrationObject.ValidityStartDate AS REIntegObjectValidityStartDate,
  ' ' AS REMinOccupancyFromDate,
  dats_add_days( REMaxOccupancyToDate,1,'UNCHANGED' ) AS REMaxOccupancyToDate,
  _REIntegrationObject.ValidityEndDate AS REIntegObjectValidityEndDate,
  'X' AS IsVacant
FROM I_REIntegrationObject AS _REIntegrationObject
INNER JOIN P_REIntegObjectOccpcyCalc9 AS _REIntegObjectOccpcyCalc ON /* join condition not captured in parsed metadata */
;