I_REContractSubject

DDL: I_RECONTRACTSUBJECT SQL: IRECONTRACTSUB Type: view_entity BASIC Package: VDM_RE_BD

Real Estate Contract Subject

I_REContractSubject (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

RealEstateContractSubject · Cross Applications

I_REContractSubject is a Basic CDS View (Dimension) that provides data about "Real Estate Contract Subject" in SAP S/4HANA. It reads from 1 data source (vibdcnsubject) and exposes 16 fields with key field InternalRealEstateNumber. It has 7 associations to related views. Part of development package VDM_RE_BD.

SAP Help Documentation

CategoryMaster
Data CategoryDimension
StatusStatus Object Number
Purpose
This CDS view is designed to provide a structured representation of contract subjects within contract and lease management. It serves as a dimension in analytical scenarios, allowing users to extract and analyze data related to contracts, their classifications, types, and associated accounting objects. This CDS view provides the data to answer the following business questions: What are the internal and external identifiers for contract subjects? How can contract subjects be classified and typed within the organization? What are the descriptions associated with each contract subject? Which accounting objects are linked to specific contract subjects? How do contract subjects relate to cost centers, WBS elements, and internal orders? What is the status of each contract subject in terms of its object number? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization.

Structure
Important Fields Important fields in this view include the following: Field Name Description InternalRealEstateNumber Internal Real Estate Number REStatusObject Status Object Number REContractSubjectDescription Contract Object REContractSubjectNumber Contract Object Number ExternalId External ID REAccountingObjectType Accounting Object Type REAccountingObject Accounting Object Number REContractSubjectType Contract Subject Type REContractSubjectClass Contract Obj. Class

Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode.

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessCross Applications
Application ComponentRE-FX-BD-2CL
CapabilitiesData Source for Data Extraction,Analytical Dimension,Association Target for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageCross Applications for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view is designed to provide a structured representation of contract subjects within contract and lease management. It serves as a dimension in analytical scenarios, allowing users to extract and analyze data related to contracts, their classifications, types, and associated accounting objects.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What are the internal and external identifiers for contract subjects?</p></li> <li><p>How can contract subjects be classified and typed within the organization?</p></li> <li><p>What are the descriptions associated with each contract subject?</p></li> <li><p>Which accounting objects are linked to specific contract subjects?</p></li> <li><p>How do contract subjects relate to cost centers, WBS elements, and internal orders?</p></li> <li><p>What is the status of each contract subject in terms of its object number?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
vibdcnsubject vibdcnsubject from

Associations (7)

CardinalityTargetAliasCondition
[0..*] I_CostCenter _CostCenter $projection.REAccountingObject = _CostCenter.ObjectInternalID
[0..*] I_WBSElementBasicData _WBSElement $projection.REAccountingObject = _WBSElement.WBSElementObject
[0..*] I_InternalOrder _InternalOrder $projection.REAccountingObject = _InternalOrder.ControllingObject
[0..1] I_REContractSubjectClass _REContractSubjectClass $projection.REContractSubjectClass = _REContractSubjectClass.REContractSubjectClass
[0..1] I_REContractSubjectType _REContractSubjectType $projection.REContractSubjectType = _REContractSubjectType.REContractSubjectType
[0..1] I_REAccountingObject _REAccountingObject $projection.REAccountingObject = _REAccountingObject.REAccountingObject
[1..1] I_REContract _REContract $projection.InternalRealEstateNumber = _REContract.InternalRealEstateNumber

Annotations (14)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Real Estate Contract Subject view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view
ObjectModel.representativeKey InternalRealEstateNumber view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.sapObjectNodeType.name RealEstateContractSubject view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY InternalRealEstateNumber intreno Internal Number for Contract Item (Source Object)
REStatusObject objnr Val. Obj. No.
REContractSubjectDescription Name of Contract Object
REContractSubjectNumber Contract Object Number
ExternalId extid External Identification for Contract Object
REAccountingObjectType Object Type
REAccountingObject Object Number Account Assignment
REContractSubjectType cnsubjecttype Type of Contract Object
REContractSubjectClass cnsubjectclass Contract Object Class
_CostCenter _CostCenter
_WBSElement _WBSElement
_InternalOrder _InternalOrder
_REAccountingObject _REAccountingObject
_REContractSubjectClass _REContractSubjectClass
_REContractSubjectType _REContractSubjectType
_REContract _REContract

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_REContractSubject.
-- 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: IRECONTRACTSUB

CREATE VIEW I_REContractSubject AS
SELECT
  intreno AS InternalRealEstateNumber,
  objnr AS REStatusObject,
  cast (xcnsubject as vibdcnvdmxcnsubject preserving type ) AS REContractSubjectDescription,
  cast (adjustnumber as vibdcnvdmsubjectobjnr preserving type ) AS REContractSubjectNumber,
  extid AS ExternalId,
  cast(substring(acctobjnr,1,2) as recaobjtype ) AS REAccountingObjectType,
  cast(acctobjnr as rebdvdmacctobjnr preserving type ) AS REAccountingObject,
  cnsubjecttype AS REContractSubjectType,
  cnsubjectclass AS REContractSubjectClass
FROM vibdcnsubject
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON REAccountingObject = _CostCenter.ObjectInternalID  -- association [0..*]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON REAccountingObject = _WBSElement.WBSElementObject  -- association [0..*]
LEFT OUTER JOIN I_InternalOrder AS _InternalOrder ON REAccountingObject = _InternalOrder.ControllingObject  -- association [0..*]
LEFT OUTER JOIN I_REContractSubjectClass AS _REContractSubjectClass ON REContractSubjectClass = _REContractSubjectClass.REContractSubjectClass  -- association [0..1]
LEFT OUTER JOIN I_REContractSubjectType AS _REContractSubjectType ON REContractSubjectType = _REContractSubjectType.REContractSubjectType  -- association [0..1]
LEFT OUTER JOIN I_REAccountingObject AS _REAccountingObject ON REAccountingObject = _REAccountingObject.REAccountingObject  -- association [0..1]
LEFT OUTER JOIN I_REContract AS _REContract ON InternalRealEstateNumber = _REContract.InternalRealEstateNumber  -- association [1..1]
;