P_OrglChangeReportPOItoCCR

DDL: P_ORGLCHANGEREPORTPOITOCCR SQL: POCRPOI2CCR Type: view CONSUMPTION Package: ODATA_ORGL_CHANGE_REPORT_MD

Purchase Order Item to Root CostCenter

P_OrglChangeReportPOItoCCR is a Consumption CDS View that provides data about "Purchase Order Item to Root CostCenter" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToPurOrderItem) and exposes 43 fields with key fields OrganizationalChange, ValidityStartDate, PurchasingDocument, PurchasingDocumentItem, AccountAssignmentNumber. It has 4 associations to related views. Part of development package ODATA_ORGL_CHANGE_REPORT_MD.

Data Sources (1)

SourceAliasJoin Type
I_ProfitCenterToPurOrderItem I_ProfitCenterToPurOrderItem from

Associations (4)

CardinalityTargetAliasCondition
[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] I_PurchasingDocument _PurchasingDocument $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument
[1] I_PurchasingDocumentItem _PurchasingDocumentItem $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName POCRPOI2CCR 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 Purchase Order Item to Root CostCenter view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY OrganizationalChange OrganizationalChange Organizational Change
KEY ValidityStartDate ValidityStartDate Validity Start Date
KEY PurchasingDocument PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber AccountAssignmentNumber Account Assgmt No.
SourceProjectInternalID SourceProjectInternalID
DependentObjectID
OrglChgRptDependentObjectType
OrglChgRptRootObjectType ProfitCenterDerivationSrceType Profit Center Source
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
Product SourceProduct Source Product
Plant SourcePlant Source Plant
SourceCostCenter SourceCostCenter
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
_PurchasingDocument _PurchasingDocument
_PurchasingDocumentItem _PurchasingDocumentItem

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_OrglChangeReportPOItoCCR.
-- 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: POCRPOI2CCR

CREATE VIEW P_OrglChangeReportPOItoCCR AS
SELECT
  OrganizationalChange,
  ValidityStartDate,
  PurchasingDocument,
  PurchasingDocumentItem,
  AccountAssignmentNumber,
  SourceProjectInternalID,
  cast( concat( PurchasingDocument , concat( '/', PurchasingDocumentItem)) as finoc_object_id ) AS DependentObjectID,
  cast( 'PO' as finoc_dependent_object_type ) AS OrglChgRptDependentObjectType,
  ProfitCenterDerivationSrceType AS OrglChgRptRootObjectType,
  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,
  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_ProfitCenterToPurOrderItem
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_PurchasingDocument AS _PurchasingDocument ON PurchasingDocument = _PurchasingDocument.PurchasingDocument  -- association [1]
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument AND PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem  -- association [1]
;