P_OrglChangeReportRECtoORD
Dependent REC to Root Maintenance Order
P_OrglChangeReportRECtoORD is a Consumption CDS View that provides data about "Dependent REC to Root Maintenance Order" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToREContract) and exposes 55 fields with key fields InternalRealEstateNumber, ValidityStartDate. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProfitCenterToREContract | _ProfitCenterToREContract | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProfitCenterToOrder | _ProfitCenterToOrder | _ProfitCenterToOrder.OrganizationalChange = $projection.OrganizationalChange and _ProfitCenterToOrder.ValidityStartDate = $projection.ValidityStartDate and _ProfitCenterToOrder.ControllingArea = $projection.ControllingArea |
| [0..*] | I_OrglChgReassignmentStsText | _OrglChgReassignmentStsText | $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Dependent REC to Root Maintenance Order | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InternalRealEstateNumber | InternalRealEstateNumber | RE Key | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| DependentObjectID | Real Estate Contract | |||
| OrglChgRptDependentObjectType | ||||
| RootObjectID | Source Order | |||
| SemanticObject | ||||
| OrganizationalChange | OrganizationalChange | Organizational Change | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| Segment | _ProfitCtr | Segment | Segment number | |
| SegmentName | ||||
| SegmentBeforeOrglChange | _ProfitCenterBeforeOrglChange | Segment | Segment number | |
| SegmentBeforeOrglChangeName | ||||
| ControllingAreaName | _ControllingArea | ControllingAreaName | Long Text | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| ProfitCenterBeforeOrglChange | ProfitCenterBeforeOrglChange | Old Profit Center | ||
| ProfitCenterBfrOrglChangeName | ||||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProfitCenterName | ||||
| OrglChangeReassignmentStatus | OrglChangeReassignmentStatus | Status | ||
| OrglChgReassignmentStatusName | ||||
| ProfitCenterDerivationSrceType | ProfitCenterDerivationSrceType | Profit Center Source | ||
| RealEstateContract | RealEstateContract | Real Estate Contract | ||
| REStatusObject | REStatusObject | Val. Obj. No. | ||
| REInternalFinNumber | REInternalFinNumber | Real Estate Key | ||
| SourceCostCenter | SourceCostCenter | Source Cost Center | ||
| SourceWBSElementInternalID | SourceWBSElementInternalID | |||
| SourceProjectInternalID | SourceProjectInternalID | |||
| SourceOrder | SourceOrder | Source Order | ||
| RootValidityStartDate | _ProfitCenterToOrder | ValidityStartDate | Validity Start Date | |
| RootValidityEndDate | _ProfitCenterToOrder | ValidityEndDate | ValidTo | |
| RootControllingArea | _ProfitCenterToOrder | ControllingArea | Controlling Area | |
| RootCompanyCode | _ProfitCenterToOrder | CompanyCode | Receiver Company Code | |
| RootProfitCenterBeforeOrglChng | _ProfitCenterToOrder | ProfitCenterBeforeOrglChange | Old Profit Center | |
| RootProfitCenter | _ProfitCenterToOrder | ProfitCenter | Profit Center | |
| RootOrganizationalChange | _ProfitCenterToOrder | OrganizationalChange | Organizational Change | |
| RootOrglChangeReassignmentSts | _ProfitCenterToOrder | OrglChangeReassignmentStatus | Status | |
| RootProfitCenterDrvtnSrceTp | _ProfitCenterToOrder | ProfitCenterDerivationSrceType | Profit Center Source | |
| RootOrderCategory | _ProfitCenterToOrder | OrderCategory | Order Category | |
| RootSourceProduct | _ProfitCenterToOrder | SourceProduct | ||
| RootSourcePlant | _ProfitCenterToOrder | SourcePlant | ||
| RootSourceCostCenter | _ProfitCenterToOrder | SourceCostCenter | Source Cost Center | |
| RootSourceWBSElementInternalID | _ProfitCenterToOrder | SourceWBSElementInternalID | ||
| RootSourceProjectInternalID | _ProfitCenterToOrder | SourceProjectInternalID | ||
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _OrglChange | _OrglChange | |||
| _OrglChgReassignmentStatus | _OrglChgReassignmentStatus | |||
| _ProfitCenterBeforeOrglChange | _ProfitCenterBeforeOrglChange | |||
| OrglChangeEffectiveDate | I_ProfitCenterToREContract | OrglChangeEffectiveDate | Effective Date | |
| OrglChgLastDateBeforeEffDate | I_ProfitCenterToREContract | OrglChgLastDateBeforeEffDate | ||
| _ProfitCtr | _ProfitCtr | |||
| _ProfitCtrDerivationSrceType | _ProfitCtrDerivationSrceType | |||
| _StatusObject | _StatusObject |
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_OrglChangeReportRECtoORD.
-- 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.
CREATE VIEW P_OrglChangeReportRECtoORD AS
SELECT
InternalRealEstateNumber,
ValidityStartDate,
cast ( RealEstateContract as finoc_object_id ) AS DependentObjectID,
cast( 'IS' as finoc_dependent_object_type ) AS OrglChgRptDependentObjectType,
cast ( SourceOrder as finoc_object_id ) AS RootObjectID,
cast( 'REContract' as finoc_semantic_object ) AS SemanticObject,
OrganizationalChange,
ControllingArea,
ValidityEndDate,
_ProfitCtr.Segment AS Segment,
_ProfitCtr._Segment._Text[1:Language=$session.system_language].SegmentName AS SegmentName,
_ProfitCenterBeforeOrglChange.Segment AS SegmentBeforeOrglChange,
_ProfitCenterBeforeOrglChange._Segment._Text[1:Language=$session.system_language].SegmentName AS SegmentBeforeOrglChangeName,
_ControllingArea.ControllingAreaName AS ControllingAreaName,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
ProfitCenterBeforeOrglChange,
_ProfitCenterBeforeOrglChange._Text[1:Language=$session.system_language].ProfitCenterName AS ProfitCenterBfrOrglChangeName,
ProfitCenter,
_ProfitCtr._Text[1:Language=$session.system_language].ProfitCenterName AS ProfitCenterName,
OrglChangeReassignmentStatus,
_OrglChgReassignmentStsText[1:Language=$session.system_language].OrglChgReassignmentStatusName AS OrglChgReassignmentStatusName,
ProfitCenterDerivationSrceType,
RealEstateContract,
REStatusObject,
REInternalFinNumber,
SourceCostCenter,
SourceWBSElementInternalID,
SourceProjectInternalID,
SourceOrder,
_ProfitCenterToOrder.ValidityStartDate AS RootValidityStartDate,
_ProfitCenterToOrder.ValidityEndDate AS RootValidityEndDate,
_ProfitCenterToOrder.ControllingArea AS RootControllingArea,
_ProfitCenterToOrder.CompanyCode AS RootCompanyCode,
_ProfitCenterToOrder.ProfitCenterBeforeOrglChange AS RootProfitCenterBeforeOrglChng,
_ProfitCenterToOrder.ProfitCenter AS RootProfitCenter,
_ProfitCenterToOrder.OrganizationalChange AS RootOrganizationalChange,
_ProfitCenterToOrder.OrglChangeReassignmentStatus AS RootOrglChangeReassignmentSts,
_ProfitCenterToOrder.ProfitCenterDerivationSrceType AS RootProfitCenterDrvtnSrceTp,
_ProfitCenterToOrder.OrderCategory AS RootOrderCategory,
_ProfitCenterToOrder.SourceProduct AS RootSourceProduct,
_ProfitCenterToOrder.SourcePlant AS RootSourcePlant,
_ProfitCenterToOrder.SourceCostCenter AS RootSourceCostCenter,
_ProfitCenterToOrder.SourceWBSElementInternalID AS RootSourceWBSElementInternalID,
_ProfitCenterToOrder.SourceProjectInternalID AS RootSourceProjectInternalID,
_ProfitCenterToREContract.OrglChangeEffectiveDate AS OrglChangeEffectiveDate,
_ProfitCenterToREContract.OrglChgLastDateBeforeEffDate AS OrglChgLastDateBeforeEffDate
FROM I_ProfitCenterToREContract AS _ProfitCenterToREContract
LEFT OUTER JOIN I_ProfitCenterToOrder AS _ProfitCenterToOrder ON _ProfitCenterToOrder.OrganizationalChange = OrganizationalChange AND _ProfitCenterToOrder.ValidityStartDate = ValidityStartDate AND _ProfitCenterToOrder.ControllingArea = ControllingArea -- association [0..1]
LEFT OUTER JOIN I_OrglChgReassignmentStsText AS _OrglChgReassignmentStsText ON OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus -- association [0..*]
;
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