P_OrglChangeReportORDtoCCR
Dependent Order to Root Cost Center
P_OrglChangeReportORDtoCCR is a Consumption CDS View that provides data about "Dependent Order to Root Cost Center" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToOrder) and exposes 40 fields with key fields OrderID, OrderCategory, ValidityStartDate. It has 3 associations to related views. Part of development package ODATA_ORGL_CHANGE_REPORT_MD.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProfitCenterToOrder | I_ProfitCenterToOrder | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_ProfitCenterToCostCenter | _RootProfitCenterToCostCenter | _RootProfitCenterToCostCenter.OrganizationalChange = $projection.OrganizationalChange and _RootProfitCenterToCostCenter.ValidityStartDate = $projection.ValidityStartDate and _RootProfitCenterToCostCenter.ControllingArea = $projection.ControllingArea and _RootProfitCenterToCostCenter.CostCenter = $projection.SourceCostCenter |
| [0..*] | I_OrglChgReassignmentStsText | _OrglChgReassignmentStsText | $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus |
| [1..1] | I_OrderCategory | _OrderCategory | $projection.OrderCategory = _OrderCategory.OrderCategory |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | POCRORD2CCR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | 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 Order to Root Cost Center | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | OrderID | Order ID | |
| KEY | OrderCategory | OrderCategory | Order Category | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| OrglChgRptNodeDescription | ||||
| RootObjectID | ||||
| OrglChgRptRootObjectType | ProfitCenterDerivationSrceType | Profit Center Source | ||
| DependentObjectID | Order ID | |||
| OrganizationalChange | OrganizationalChange | Organizational Change | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| 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 | ||
| Product | SourceProduct | Source Product | ||
| Plant | SourcePlant | Source Plant | ||
| SourceCostCenter | SourceCostCenter | Source Cost Center | ||
| RootValidityStartDate | _RootProfitCenterToCostCenter | ValidityStartDate | Validity Start Date | |
| RootValidityEndDate | _RootProfitCenterToCostCenter | ValidityEndDate | ValidTo | |
| RootControllingArea | _RootProfitCenterToCostCenter | ControllingArea | Controlling Area | |
| RootCostCenter | _RootProfitCenterToCostCenter | CostCenter | Cost Center | |
| RootCompanyCode | _RootProfitCenterToCostCenter | CompanyCode | Receiver Company Code | |
| RootProfitCenterBeforeOrglChng | _RootProfitCenterToCostCenter | ProfitCenterBeforeOrglChange | Old Profit Center | |
| RootProfitCenter | _RootProfitCenterToCostCenter | ProfitCenter | Profit Center | |
| RootOrganizationalChange | _RootProfitCenterToCostCenter | OrganizationalChange | Organizational Change | |
| RootOrglChangeReassignmentSts | _RootProfitCenterToCostCenter | OrglChangeReassignmentStatus | Status | |
| RootProfitCenterDrvtnSrceTp | _RootProfitCenterToCostCenter | ProfitCenterDerivationSrceType | Profit Center Source | |
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _OrglChange | _OrglChange | |||
| _OrglChgReassignmentStatus | _OrglChgReassignmentStatus | |||
| _ProfitCenterBeforeOrglChange | _ProfitCenterBeforeOrglChange | |||
| _ProfitCtr | _ProfitCtr | |||
| _ProfitCtrDerivationSrceType | _ProfitCtrDerivationSrceType |
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_OrglChangeReportORDtoCCR.
-- 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: POCRORD2CCR
CREATE VIEW P_OrglChangeReportORDtoCCR AS
SELECT
OrderID,
OrderCategory,
ValidityStartDate,
ltrim( OrderID , '0' ) AS OrglChgRptNodeDescription,
cast( concat( ControllingArea , concat( '/', _RootProfitCenterToCostCenter.CostCenter)) as finoc_object_id ) AS RootObjectID,
ProfitCenterDerivationSrceType AS OrglChgRptRootObjectType,
cast ( OrderID as finoc_object_id ) AS DependentObjectID,
OrganizationalChange,
ControllingArea,
ValidityEndDate,
_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,
SourceProduct AS Product,
SourcePlant AS Plant,
SourceCostCenter,
_RootProfitCenterToCostCenter.ValidityStartDate AS RootValidityStartDate,
_RootProfitCenterToCostCenter.ValidityEndDate AS RootValidityEndDate,
_RootProfitCenterToCostCenter.ControllingArea AS RootControllingArea,
_RootProfitCenterToCostCenter.CostCenter AS RootCostCenter,
_RootProfitCenterToCostCenter.CompanyCode AS RootCompanyCode,
_RootProfitCenterToCostCenter.ProfitCenterBeforeOrglChange AS RootProfitCenterBeforeOrglChng,
_RootProfitCenterToCostCenter.ProfitCenter AS RootProfitCenter,
_RootProfitCenterToCostCenter.OrganizationalChange AS RootOrganizationalChange,
_RootProfitCenterToCostCenter.OrglChangeReassignmentStatus AS RootOrglChangeReassignmentSts,
_RootProfitCenterToCostCenter.ProfitCenterDerivationSrceType AS RootProfitCenterDrvtnSrceTp
FROM I_ProfitCenterToOrder
LEFT OUTER JOIN I_ProfitCenterToCostCenter AS _RootProfitCenterToCostCenter ON _RootProfitCenterToCostCenter.OrganizationalChange = OrganizationalChange AND _RootProfitCenterToCostCenter.ValidityStartDate = ValidityStartDate AND _RootProfitCenterToCostCenter.ControllingArea = ControllingArea AND _RootProfitCenterToCostCenter.CostCenter = SourceCostCenter -- association [1]
LEFT OUTER JOIN I_OrglChgReassignmentStsText AS _OrglChgReassignmentStsText ON OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus -- association [0..*]
LEFT OUTER JOIN I_OrderCategory AS _OrderCategory ON OrderCategory = _OrderCategory.OrderCategory -- 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