P_OrglChangeReportSOItoPC

DDL: P_ORGLCHANGEREPORTSOITOPC Type: view_entity CONSUMPTION

P_OrglChangeReportSOItoPC is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToSalesOrderItem) and exposes 33 fields with key fields OrganizationalChange, SalesDocument, SalesDocumentItem, ValidityStartDate. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProfitCenterToSalesOrderItem _ProfitCenterToSalesOrderItem from

Associations (2)

CardinalityTargetAliasCondition
[1] I_SegmentToProfitCenter _SegmentToProfitCenter _SegmentToProfitCenter.OrganizationalChange = $projection.OrganizationalChange and _SegmentToProfitCenter.ControllingArea = $projection.ControllingArea and _SegmentToProfitCenter.ProfitCenter = $projection.ProfitCenter and _SegmentToProfitCenter.Segment = $projection.Segment and _SegmentToProfitCenter.ValidityStartDate = $projection.ValidityStartDate
[0..*] I_OrglChgReassignmentStsText _OrglChgReassignmentStsText $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus

Annotations (6)

NameValueLevelField
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

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY OrganizationalChange OrganizationalChange Organizational Change
KEY SalesDocument SalesDocument SD Document
KEY SalesDocumentItem SalesDocumentItem Sales Document Item
KEY ValidityStartDate ValidityStartDate Validity Start Date
RootObjectID Profit Center
OrglChgRptRootObjectType ProfitCenterDerivationSrceType Profit Center Source
OrglChgRptDependentObjectType
DependentObjectID
SemanticObject
SDDocumentCategory _SalesDocumentItem SDDocumentCategory Document Cat.
ValidityEndDate ValidityEndDate ValidTo
Segment I_ProfitCenterToSalesOrderItem SegmentByOrglChange Segment number
SegmentName
SegmentBeforeOrglChange I_ProfitCenterToSalesOrderItem SegmentBeforeOrglChange
SegmentBeforeOrglChangeName
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
RootValidityStartDate _SegmentToProfitCenter ValidityStartDate Validity Start Date
RootValidityEndDate _SegmentToProfitCenter ValidityEndDate ValidTo
RootControllingArea _SegmentToProfitCenter ControllingArea Controlling Area
RootSegmentBeforeOrglChange _SegmentToProfitCenter SegmentBeforeOrglChange
RootProfitCenter _SegmentToProfitCenter ProfitCenter Profit Center
RootOrganizationalChange _SegmentToProfitCenter OrganizationalChange Organizational Change
RootOrglChangeReassignmentSts _SegmentToProfitCenter OrglChangeReassignmentStatus Status

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_OrglChangeReportSOItoPC.
-- 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_OrglChangeReportSOItoPC AS
SELECT
  OrganizationalChange,
  SalesDocument,
  SalesDocumentItem,
  ValidityStartDate,
  cast( ProfitCenter as finoc_object_id ) AS RootObjectID,
  ProfitCenterDerivationSrceType AS OrglChgRptRootObjectType,
  cast( 'VB' as finoc_dependent_object_type ) AS OrglChgRptDependentObjectType,
  cast( concat( SalesDocument , concat( '/', SalesDocumentItem)) as finoc_object_id ) AS DependentObjectID,
  cast( 'SalesDocument' as finoc_semantic_object ) AS SemanticObject,
  _SalesDocumentItem.SDDocumentCategory AS SDDocumentCategory,
  ValidityEndDate,
  _ProfitCenterToSalesOrderItem.SegmentByOrglChange AS Segment,
  _SegmentByOrglChange._Text[1:Language=$session.system_language].SegmentName AS SegmentName,
  _ProfitCenterToSalesOrderItem.SegmentBeforeOrglChange AS SegmentBeforeOrglChange,
  _SegmentBeforeOrglChange._Text[1:Language=$session.system_language].SegmentName AS SegmentBeforeOrglChangeName,
  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,
  _SegmentToProfitCenter.ValidityStartDate AS RootValidityStartDate,
  _SegmentToProfitCenter.ValidityEndDate AS RootValidityEndDate,
  _SegmentToProfitCenter.ControllingArea AS RootControllingArea,
  _SegmentToProfitCenter.SegmentBeforeOrglChange AS RootSegmentBeforeOrglChange,
  _SegmentToProfitCenter.ProfitCenter AS RootProfitCenter,
  _SegmentToProfitCenter.OrganizationalChange AS RootOrganizationalChange,
  _SegmentToProfitCenter.OrglChangeReassignmentStatus AS RootOrglChangeReassignmentSts
FROM I_ProfitCenterToSalesOrderItem AS _ProfitCenterToSalesOrderItem
LEFT OUTER JOIN I_SegmentToProfitCenter AS _SegmentToProfitCenter ON _SegmentToProfitCenter.OrganizationalChange = OrganizationalChange AND _SegmentToProfitCenter.ControllingArea = ControllingArea AND _SegmentToProfitCenter.ProfitCenter = ProfitCenter AND _SegmentToProfitCenter.Segment = Segment AND _SegmentToProfitCenter.ValidityStartDate = ValidityStartDate  -- association [1]
LEFT OUTER JOIN I_OrglChgReassignmentStsText AS _OrglChgReassignmentStsText ON OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus  -- association [0..*]
;