P_OrglChangeReportORDToPROD
Dependent Order to Root Product/Plant
P_OrglChangeReportORDToPROD is a Consumption CDS View that provides data about "Dependent Order to Root Product/Plant" in SAP S/4HANA. It reads from 1 data source (I_PrftCtrToProdCostCtrlgOrder) and exposes 44 fields with key fields OrganizationalChange, OrderID, 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_PrftCtrToProdCostCtrlgOrder | I_PrftCtrToProdCostCtrlgOrder | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_ProfitCenterToProduct | _RootProfitCenterToProduct | _RootProfitCenterToProduct.OrganizationalChange = $projection.OrganizationalChange and _RootProfitCenterToProduct.Product = $projection.Product and _RootProfitCenterToProduct.Plant = $projection.Plant and _RootProfitCenterToProduct.ValidityStartDate = $projection.ValidityStartDate |
| [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 | POCRORD2PRD | 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 Product/Plant | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrganizationalChange | OrganizationalChange | Organizational Change | |
| KEY | OrderID | OrderID | Order ID | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| OrglChgRptNodeDescription | ||||
| RootObjectID | ||||
| OrglChgRptRootObjectType | ProfitCenterDerivationSrceType | Profit Center Source | ||
| DependentObjectID | Order ID | |||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| 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 | ||
| OrderCategory | OrderCategory | Order Category | ||
| OrderCategoryName | ||||
| Product | SourceProduct | Source Product | ||
| ProductName | ||||
| Plant | SourcePlant | Source Plant | ||
| PlantName | ||||
| RootProduct | _RootProfitCenterToProduct | Product | Product Sold | |
| RootPlant | _RootProfitCenterToProduct | Plant | Valuation Area | |
| RootValidityStartDate | _RootProfitCenterToProduct | ValidityStartDate | Validity Start Date | |
| RootValidityEndDate | _RootProfitCenterToProduct | ValidityEndDate | ValidTo | |
| RootControllingArea | _RootProfitCenterToProduct | ControllingArea | Controlling Area | |
| RootCompanyCode | _RootProfitCenterToProduct | CompanyCode | Receiver Company Code | |
| RootProfitCenterBeforeOrglChng | _RootProfitCenterToProduct | ProfitCenterBeforeOrglChange | Old Profit Center | |
| RootProfitCenter | _RootProfitCenterToProduct | ProfitCenter | Profit Center | |
| RootOrganizationalChange | _RootProfitCenterToProduct | OrganizationalChange | Organizational Change | |
| RootOrglChangeReassignmentSts | _RootProfitCenterToProduct | OrglChangeReassignmentStatus | Status | |
| RootProfitCenterDrvtnSrceTp | _RootProfitCenterToProduct | ProfitCenterDerivationSrceType | Profit Center Source | |
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _OrglChange | _OrglChange | |||
| _OrglChgReassignmentStatus | _OrglChgReassignmentStatus | |||
| _ProductCostCtrlgOrder | _ProductCostCtrlgOrder | |||
| _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_OrglChangeReportORDToPROD.
-- 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: POCRORD2PRD
CREATE VIEW P_OrglChangeReportORDToPROD AS
SELECT
OrganizationalChange,
OrderID,
ValidityStartDate,
ltrim( OrderID, '0' ) AS OrglChgRptNodeDescription,
cast ( concat( SourceProduct , concat( '/', SourcePlant)) as finoc_object_id ) AS RootObjectID,
ProfitCenterDerivationSrceType AS OrglChgRptRootObjectType,
cast ( OrderID as finoc_object_id ) AS DependentObjectID,
ValidityEndDate,
ControllingArea,
_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,
OrderCategory,
_OrderCategory._Text[1:Language=$session.system_language].OrderCategoryName AS OrderCategoryName,
SourceProduct AS Product,
_RootProfitCenterToProduct._Product._Text[1:Language=$session.system_language].ProductName AS ProductName,
SourcePlant AS Plant,
_RootProfitCenterToProduct._Plant.PlantName AS PlantName,
_RootProfitCenterToProduct.Product AS RootProduct,
_RootProfitCenterToProduct.Plant AS RootPlant,
_RootProfitCenterToProduct.ValidityStartDate AS RootValidityStartDate,
_RootProfitCenterToProduct.ValidityEndDate AS RootValidityEndDate,
_RootProfitCenterToProduct.ControllingArea AS RootControllingArea,
_RootProfitCenterToProduct.CompanyCode AS RootCompanyCode,
_RootProfitCenterToProduct.ProfitCenterBeforeOrglChange AS RootProfitCenterBeforeOrglChng,
_RootProfitCenterToProduct.ProfitCenter AS RootProfitCenter,
_RootProfitCenterToProduct.OrganizationalChange AS RootOrganizationalChange,
_RootProfitCenterToProduct.OrglChangeReassignmentStatus AS RootOrglChangeReassignmentSts,
_RootProfitCenterToProduct.ProfitCenterDerivationSrceType AS RootProfitCenterDrvtnSrceTp
FROM I_PrftCtrToProdCostCtrlgOrder
LEFT OUTER JOIN I_ProfitCenterToProduct AS _RootProfitCenterToProduct ON _RootProfitCenterToProduct.OrganizationalChange = OrganizationalChange AND _RootProfitCenterToProduct.Product = Product AND _RootProfitCenterToProduct.Plant = Plant AND _RootProfitCenterToProduct.ValidityStartDate = ValidityStartDate -- 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