P_OrglChangeReportRootProd

DDL: P_ORGLCHANGEREPORTROOTPROD SQL: POCRROOTPROD Type: view CONSUMPTION

Orgl Change Report Root Product/Plant (Material)

P_OrglChangeReportRootProd is a Consumption CDS View that provides data about "Orgl Change Report Root Product/Plant (Material)" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToProduct) and exposes 33 fields with key fields OrganizationalChange, Product, Plant, ValidityStartDate. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProfitCenterToProduct I_ProfitCenterToProduct from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_OrglChgReassignmentStsText _OrglChgReassignmentStsText $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName POCRROOTPROD 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 Orgl Change Report Root Product/Plant (Material) view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY OrganizationalChange OrganizationalChange Organizational Change
KEY Product Product Product Sold
KEY Plant Plant Valuation Area
KEY ValidityStartDate ValidityStartDate Validity Start Date
OrglChgRptRootObjectType
RootObjectID
SemanticObject
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
PlantName _Plant PlantName Plant Name
ProductName
ProductType _Product ProductType Product Type Group
ProductGroup _Product ProductGroup Product Sold Group
ProductCategory _Product ProductCategory Prod Category
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_OrglChange _OrglChange
_OrglChgReassignmentStatus _OrglChgReassignmentStatus
_Plant _Plant
_Product _Product
_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_OrglChangeReportRootProd.
-- 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: POCRROOTPROD

CREATE VIEW P_OrglChangeReportRootProd AS
SELECT
  OrganizationalChange,
  Product,
  Plant,
  ValidityStartDate,
  cast( 'MA' as finoc_root_object_type ) AS OrglChgRptRootObjectType,
  cast( concat( Product , concat( '/', Plant)) as finoc_object_id ) AS RootObjectID,
  cast( 'Material' as finoc_semantic_object ) AS SemanticObject,
  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,
  _Plant.PlantName AS PlantName,
  _Product._Text[1:Language=$session.system_language].ProductName AS ProductName,
  _Product.ProductType AS ProductType,
  _Product.ProductGroup AS ProductGroup,
  _Product.ProductCategory AS ProductCategory
FROM I_ProfitCenterToProduct
LEFT OUTER JOIN I_OrglChgReassignmentStsText AS _OrglChgReassignmentStsText ON OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus  -- association [0..*]
;