P_OrglChangeReportSOItoWBS

DDL: P_ORGLCHANGEREPORTSOITOWBS SQL: POCRSOI2WBS Type: view CONSUMPTION

Sales Document Item to Root WBSElement

P_OrglChangeReportSOItoWBS is a Consumption CDS View that provides data about "Sales Document Item to Root WBSElement" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToSalesOrderItem) and exposes 30 fields with key fields OrganizationalChange, SalesDocument, SalesDocumentItem, ValidityStartDate. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProfitCenterToSalesOrderItem I_ProfitCenterToSalesOrderItem from

Associations (2)

CardinalityTargetAliasCondition
[1] I_ProfitCenterToWBSElement _ProfitCenterToWBSElement _ProfitCenterToWBSElement.OrganizationalChange = $projection.OrganizationalChange and _ProfitCenterToWBSElement.WBSElementInternalID = $projection.SourceWBSElementInternalID and _ProfitCenterToWBSElement.ValidityStartDate = $projection.ValidityStartDate
[0..*] I_OrglChgReassignmentStsText _OrglChgReassignmentStsText $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName POCRSOI2WBS 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 Sales Document Item to Root WBSElement view

Fields (30)

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
DependentObjectID
SemanticObject
SDDocumentCategory _SalesDocumentItem SDDocumentCategory Document Cat.
OrglChgRptRootObjectType ProfitCenterDerivationSrceType Profit Center Source
OrglChgRptDependentObjectType
RootObjectID Source WBS Element
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
RootWBSElementInternalID _ProfitCenterToWBSElement WBSElementInternalID WBS Internal ID
RootControllingArea _ProfitCenterToWBSElement ControllingArea Controlling Area
RootCompanyCode _ProfitCenterToWBSElement CompanyCode Receiver Company Code
RootProfitCenterBeforeOrglChng _ProfitCenterToWBSElement ProfitCenterBeforeOrglChange Old Profit Center
RootProfitCenter _ProfitCenterToWBSElement ProfitCenter Profit Center
RootOrglChangeReassignmentSts _ProfitCenterToWBSElement OrglChangeReassignmentStatus Status
RootWBSElementExternalID
RootWBSDescription
SourceWBSElementInternalID SourceWBSElementInternalID Source WBS Element

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_OrglChangeReportSOItoWBS.
-- 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: POCRSOI2WBS

CREATE VIEW P_OrglChangeReportSOItoWBS AS
SELECT
  OrganizationalChange,
  SalesDocument,
  SalesDocumentItem,
  ValidityStartDate,
  cast( concat( SalesDocument , concat( '/', SalesDocumentItem)) as finoc_object_id ) AS DependentObjectID,
  cast( 'SalesDocument' as finoc_semantic_object ) AS SemanticObject,
  _SalesDocumentItem.SDDocumentCategory AS SDDocumentCategory,
  ProfitCenterDerivationSrceType AS OrglChgRptRootObjectType,
  cast( 'VB' as finoc_dependent_object_type ) AS OrglChgRptDependentObjectType,
  cast( SourceWBSElementInternalID as finoc_object_id ) AS RootObjectID,
  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,
  _ProfitCenterToWBSElement.WBSElementInternalID AS RootWBSElementInternalID,
  _ProfitCenterToWBSElement.ControllingArea AS RootControllingArea,
  _ProfitCenterToWBSElement.CompanyCode AS RootCompanyCode,
  _ProfitCenterToWBSElement.ProfitCenterBeforeOrglChange AS RootProfitCenterBeforeOrglChng,
  _ProfitCenterToWBSElement.ProfitCenter AS RootProfitCenter,
  _ProfitCenterToWBSElement.OrglChangeReassignmentStatus AS RootOrglChangeReassignmentSts,
  _ProfitCenterToWBSElement._WBSElement.WBSElementExternalID AS RootWBSElementExternalID,
  _ProfitCenterToWBSElement._WBSElement.WBSDescription AS RootWBSDescription,
  SourceWBSElementInternalID
FROM I_ProfitCenterToSalesOrderItem
LEFT OUTER JOIN I_ProfitCenterToWBSElement AS _ProfitCenterToWBSElement ON _ProfitCenterToWBSElement.OrganizationalChange = OrganizationalChange AND _ProfitCenterToWBSElement.WBSElementInternalID = SourceWBSElementInternalID AND _ProfitCenterToWBSElement.ValidityStartDate = ValidityStartDate  -- association [1]
LEFT OUTER JOIN I_OrglChgReassignmentStsText AS _OrglChgReassignmentStsText ON OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus  -- association [0..*]
;