P_REValuationRule
P_REValuationRule is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (vicerule) and exposes 33 fields with key fields InternalRealEstateNumber, REValuationRuleUUID. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| vicerule | _ValuationRule | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_RETermType | _RETermType | _RETermType.RealEstateObjectType = 'IS' and $projection.RETermType = _RETermType.RETermType |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PVALRULE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InternalRealEstateNumber | vicerule | intreno | Source Object |
| KEY | REValuationRuleUUID | vicerule | ruleguid | Val. Rule |
| RETermNumber | vicerule | termno | Term Number | |
| RETermType | vicerule | termtype | Term Type | |
| ValidityStartDate | ||||
| ValidityEndDate | ||||
| REStatusObject | vicerule | objnr | Val. Obj. No. | |
| ObjectValidFrom | ||||
| REValuationRule | vicerule | cerule | Valuation Rule | |
| REConsiderationStartDate | ||||
| RECashFlowPostingFromDate | ||||
| REStatusObjectAsset | ||||
| REValuationClassification | vicerule | cesltype | Classification | |
| REInterestRate | vicerule | interestrate | Percentage Rate | |
| REFrequencyTerm | vicerule | termnorh | Frequency Term | |
| REDistributionRule | vicerule | distrule | Distrib. Form. | |
| REDistributionRuleParam1 | vicerule | distrulepara1 | Dist.Form.Param | |
| REDistributionRuleParam2 | vicerule | distrulepara2 | Dist.Form.Param | |
| REProbableEndDate | ||||
| REAssetRightOfUseEndDate | ||||
| REValuationRuleStatus | ||||
| REValuationStatus | ||||
| REValuationStatusReason | ||||
| REValuationBehavior | vicerule | processbehavior | Val. Behavior | |
| RETaxType | vicerule | taxtype | Tax Type | |
| TaxGroup | vicerule | taxgroup | Tax Group | |
| REAccountingObject | ||||
| REInfoText | vicerule | note | TradeRequest Comment | |
| REValuationFactorNumerator | vicerule | scopenum | Numer. Factor | |
| REValuationFactorDenominator | vicerule | scopedenom | Den. Factor | |
| REValuationCurrency | ||||
| REValuationQuestionnaireUUID | vicerule | queryguid | Questionnaire | |
| _RETermType | _RETermType |
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_REValuationRule.
-- 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: PVALRULE
CREATE VIEW P_REValuationRule AS
SELECT
_ValuationRule.intreno AS InternalRealEstateNumber,
_ValuationRule.ruleguid AS REValuationRuleUUID,
_ValuationRule.termno AS RETermNumber,
_ValuationRule.termtype AS RETermType,
cast( _ValuationRule.validfrom as rebdvdmvalidfrom preserving type ) AS ValidityStartDate,
cast( _ValuationRule.validto as rebdvdmvalidto preserving type ) AS ValidityEndDate,
_ValuationRule.objnr AS REStatusObject,
cast(_ValuationRule.objvalidfrom as rebdvdmrelvalidfrom preserving type ) AS ObjectValidFrom,
_ValuationRule.cerule AS REValuationRule,
cast(_ValuationRule.consbeg as recevdmconsbeg preserving type ) AS REConsiderationStartDate,
cast(_ValuationRule.postbeg as recevdmpostbeg preserving type ) AS RECashFlowPostingFromDate,
cast(_ValuationRule.assetobjnr as recevdmasobjnr preserving type ) AS REStatusObjectAsset,
_ValuationRule.cesltype AS REValuationClassification,
_ValuationRule.interestrate AS REInterestRate,
_ValuationRule.termnorh AS REFrequencyTerm,
_ValuationRule.distrule AS REDistributionRule,
_ValuationRule.distrulepara1 AS REDistributionRuleParam1,
_ValuationRule.distrulepara2 AS REDistributionRuleParam2,
cast( _ValuationRule.probableend as recevdmprobableend preserving type ) AS REProbableEndDate,
cast( _ValuationRule.usefullifeend as recevdmusefullifeend preserving type ) AS REAssetRightOfUseEndDate,
cast( _ValuationRule.statusrule as recevdmstatusrule preserving type ) AS REValuationRuleStatus,
cast( _ValuationRule.statuseval as recevdmstatusevaluation preserving type ) AS REValuationStatus,
cast( _ValuationRule.statusreason as recevdmstatusreason preserving type ) AS REValuationStatusReason,
_ValuationRule.processbehavior AS REValuationBehavior,
_ValuationRule.taxtype AS RETaxType,
_ValuationRule.taxgroup AS TaxGroup,
cast(_ValuationRule.acctobjnr as recevdmacctobjnr preserving type ) AS REAccountingObject,
_ValuationRule.note AS REInfoText,
_ValuationRule.scopenum AS REValuationFactorNumerator,
_ValuationRule.scopedenom AS REValuationFactorDenominator,
cast(_ValuationRule.rulecurr as recevdmrulecurr preserving type ) AS REValuationCurrency,
_ValuationRule.queryguid AS REValuationQuestionnaireUUID
FROM vicerule AS _ValuationRule
LEFT OUTER JOIN I_RETermType AS _RETermType ON _RETermType.RealEstateObjectType = 'IS' AND RETermType = _RETermType.RETermType -- association [1..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