I_RESalesReportingTerm

DDL: I_RESALESREPORTINGTERM SQL: IRETMSALESRPTG Type: view BASIC Package: VDM_RE_SR

Real Estate Sales Reporting Term

I_RESalesReportingTerm is a Basic CDS View (Dimension) that provides data about "Real Estate Sales Reporting Term" in SAP S/4HANA. It reads from 1 data source (visrtmrp) and exposes 38 fields with key fields InternalRealEstateNumber, RETermType, RETermNumber, ValidityStartDate, RESalesRhythmType. It has 9 associations to related views. Part of development package VDM_RE_SR.

Data Sources (1)

SourceAliasJoin Type
visrtmrp _SalesReportingTerm from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_REKeyAssgmt _REKeyAssgmt $projection.InternalRealEstateNumber = _REKeyAssgmt.InternalRealEstateNumber
[1..1] I_RETerm _RETerm $projection.InternalRealEstateNumber = _RETerm.InternalRealEstateNumber and $projection.RETermType = _RETerm.RETermType and $projection.RETermNumber = _RETerm.RETermNumber
[1..1] I_RETermType _RETermType $projection.RETermType = _RETermType.RETermType and $projection.RealEstateObjectType = _RETermType.RealEstateObjectType
[0..*] I_RESalesReportingFrqcyAssgmt _RESalesRptgFrqcyAssgmt $projection.InternalRealEstateNumber = _RESalesRptgFrqcyAssgmt.InternalRealEstateNumber and $projection.RETermNumber = _RESalesRptgFrqcyAssgmt.RESalesReportingTermNumber and $projection.ValidityStartDate = _RESalesRptgFrqcyAssgmt.ValidityStartDate
[0..1] I_RESalesType _RESalesType $projection.RESalesType = _RESalesType.RESalesType
[0..1] I_RESalesReportType _RESalesReportType $projection.RESalesReportType = _RESalesReportType.RESalesReportType
[0..1] I_REMeasurementType _REMeasurementType $projection.REMeasurementType = _REMeasurementType.REMeasurementType
[0..1] I_MeasuringPoint _MeasuringPoint $projection.MeasuringPoint = _MeasuringPoint.MeasuringPoint
[0..1] I_RERgnlLocKeyHeatingValDays _RERgnlLocKeyHeatingDays $projection.RERgnlLocKeyHeatingValDays = _RERgnlLocKeyHeatingDays.RERgnlLocKeyHeatingValDays

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IRETMSALESRPTG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.representativeKey RETermNumber view
VDM.viewType #BASIC view
EndUserText.label Real Estate Sales Reporting Term view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY InternalRealEstateNumber intreno Source Object
KEY RETermType termtype Term Type
KEY RETermNumber termno Term Number
KEY ValidityStartDate validfrom Vers.Valid From
KEY RESalesRhythmType _RESalesRptgFrqcyAssgmt RESalesRhythmType
ValidityEndDate Vers.Valid To
RealEstateObjectType _RETerm RealEstateObjectType Object Type
REStatusObject _REKeyAssgmt REStatusObject Val. Obj. No.
RETermName _RETerm RETermName Name of Term
RESalesType salestype Sales Type
RESalesReportType salesreporttype Gross/Net
REIsStatisticalRule is_statistical Statist. Only
RESalesReportingIsUsingMsmt use_measpoint Using Meter
REMeasurementType meas MeasType
REStatusObjectMeasurement measpoint_objnr Object Number
MeasuringPoint measpoint Measuring Point
RERgnlLocKeyHeatingValDays loc_key RL Key
REFrequencyStartDate _RESalesRptgFrqcyAssgmt REFrequencyStartDate Frequency Start
RENumberOfFrequencyUnits _RESalesRptgFrqcyAssgmt RENumberOfFrequencyUnits Frequency
REFrequencyUnit _RESalesRptgFrqcyAssgmt REFrequencyUnit Frequency Unit
REFixedPeriod _RESalesRptgFrqcyAssgmt REFixedPeriod Fixed Periods
RESalesReportingTolerance _RESalesRptgFrqcyAssgmt RESalesReportingTolerance
RESalesReportingToleranceUnit _RESalesRptgFrqcyAssgmt RESalesReportingToleranceUnit
RESalesRptgToleranceCalendar _RESalesRptgFrqcyAssgmt RESalesRptgToleranceCalendar
REFrequencyExcludedStartDate _RESalesRptgFrqcyAssgmt REFrequencyExcludedStartDate
REFrequencyExcludedEndDate _RESalesRptgFrqcyAssgmt REFrequencyExcludedEndDate
_RESalesRptgFrqcyAssgmt _RESalesRptgFrqcyAssgmt
_RESalesRhythmType _RESalesRptgFrqcyAssgmt _RESalesRhythmType
_REFixedPeriod _RESalesRptgFrqcyAssgmt _REFixedPeriod
_REKeyAssgmt _REKeyAssgmt
_RETermType _RETermType
_RETerm _RETerm
_REObjectType _RETerm _REObjectType
_RESalesType _RESalesType
_RESalesReportType _RESalesReportType
_REMeasurementType _REMeasurementType
_MeasuringPoint _MeasuringPoint
_RERgnlLocKeyHeatingDays _RERgnlLocKeyHeatingDays

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_RESalesReportingTerm.
-- 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: IRETMSALESRPTG

CREATE VIEW I_RESalesReportingTerm AS
SELECT
  intreno AS InternalRealEstateNumber,
  termtype AS RETermType,
  termno AS RETermNumber,
  validfrom AS ValidityStartDate,
  _RESalesRptgFrqcyAssgmt.RESalesRhythmType AS RESalesRhythmType,
  cast(validto as rebdvdmvalidto) AS ValidityEndDate,
  _RETerm.RealEstateObjectType AS RealEstateObjectType,
  _REKeyAssgmt.REStatusObject AS REStatusObject,
  _RETerm.RETermName AS RETermName,
  salestype AS RESalesType,
  salesreporttype AS RESalesReportType,
  is_statistical AS REIsStatisticalRule,
  use_measpoint AS RESalesReportingIsUsingMsmt,
  meas AS REMeasurementType,
  measpoint_objnr AS REStatusObjectMeasurement,
  measpoint AS MeasuringPoint,
  loc_key AS RERgnlLocKeyHeatingValDays,
  _RESalesRptgFrqcyAssgmt.REFrequencyStartDate AS REFrequencyStartDate,
  _RESalesRptgFrqcyAssgmt.RENumberOfFrequencyUnits AS RENumberOfFrequencyUnits,
  _RESalesRptgFrqcyAssgmt.REFrequencyUnit AS REFrequencyUnit,
  _RESalesRptgFrqcyAssgmt.REFixedPeriod AS REFixedPeriod,
  _RESalesRptgFrqcyAssgmt.RESalesReportingTolerance AS RESalesReportingTolerance,
  _RESalesRptgFrqcyAssgmt.RESalesReportingToleranceUnit AS RESalesReportingToleranceUnit,
  _RESalesRptgFrqcyAssgmt.RESalesRptgToleranceCalendar AS RESalesRptgToleranceCalendar,
  _RESalesRptgFrqcyAssgmt.REFrequencyExcludedStartDate AS REFrequencyExcludedStartDate,
  _RESalesRptgFrqcyAssgmt.REFrequencyExcludedEndDate AS REFrequencyExcludedEndDate,
  _RESalesRptgFrqcyAssgmt._RESalesRhythmType AS _RESalesRhythmType,
  _RESalesRptgFrqcyAssgmt._REFixedPeriod AS _REFixedPeriod,
  _RETerm._REObjectType AS _REObjectType
FROM visrtmrp AS _SalesReportingTerm
LEFT OUTER JOIN I_REKeyAssgmt AS _REKeyAssgmt ON InternalRealEstateNumber = _REKeyAssgmt.InternalRealEstateNumber  -- 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_RETermType AS _RETermType ON RETermType = _RETermType.RETermType AND RealEstateObjectType = _RETermType.RealEstateObjectType  -- association [1..1]
LEFT OUTER JOIN I_RESalesReportingFrqcyAssgmt AS _RESalesRptgFrqcyAssgmt ON InternalRealEstateNumber = _RESalesRptgFrqcyAssgmt.InternalRealEstateNumber AND RETermNumber = _RESalesRptgFrqcyAssgmt.RESalesReportingTermNumber AND ValidityStartDate = _RESalesRptgFrqcyAssgmt.ValidityStartDate  -- association [0..*]
LEFT OUTER JOIN I_RESalesType AS _RESalesType ON RESalesType = _RESalesType.RESalesType  -- association [0..1]
LEFT OUTER JOIN I_RESalesReportType AS _RESalesReportType ON RESalesReportType = _RESalesReportType.RESalesReportType  -- association [0..1]
LEFT OUTER JOIN I_REMeasurementType AS _REMeasurementType ON REMeasurementType = _REMeasurementType.REMeasurementType  -- association [0..1]
LEFT OUTER JOIN I_MeasuringPoint AS _MeasuringPoint ON MeasuringPoint = _MeasuringPoint.MeasuringPoint  -- association [0..1]
LEFT OUTER JOIN I_RERgnlLocKeyHeatingValDays AS _RERgnlLocKeyHeatingDays ON RERgnlLocKeyHeatingValDays = _RERgnlLocKeyHeatingDays.RERgnlLocKeyHeatingValDays  -- association [0..1]
;