I_PrftCtrToProdCostCtrlgOrder

DDL: I_PRFTCTRTOPRODCOSTCTRLGORDER SQL: IFINOCRTPCCO Type: view BASIC Package: FINS_ORGL_CHANGE_RUNTIME

Assgmt PrftCtr to Prod Cost Ctrlg Order

I_PrftCtrToProdCostCtrlgOrder is a Basic CDS View (Dimension) that provides data about "Assgmt PrftCtr to Prod Cost Ctrlg Order" in SAP S/4HANA. It reads from 1 data source (finoc_rt_ord) and exposes 22 fields with key fields OrderID, ValidityStartDate. It has 8 associations to related views. Part of development package FINS_ORGL_CHANGE_RUNTIME.

Data Sources (1)

SourceAliasJoin Type
finoc_rt_ord finoc_rt_ord from

Associations (8)

CardinalityTargetAliasCondition
[1] I_ProductCostCtrlgOrder _ProductCostCtrlgOrder $projection.OrderID = _ProductCostCtrlgOrder.OrderID
[1] I_OrglChangeReassignmentStatus _OrglChgReassignmentStatus $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStatus.OrglChangeReassignmentStatus
[0..1] I_ProfitCtrDerivationSrceType _ProfitCtrDerivationSrceType $projection.ProfitCenterDerivationSrceType = _ProfitCtrDerivationSrceType.ProfitCenterDerivationSrceType
[0..1] I_OrganizationalChange _OrglChange $projection.OrganizationalChange = _OrglChange.OrganizationalChange
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_ProfitCenter _ProfitCtr $projection.ControllingArea = _ProfitCtr.ControllingArea and $projection.ProfitCenter = _ProfitCtr.ProfitCenter and $projection.ValidityStartDate >= _ProfitCtr.ValidityStartDate and $projection.ValidityStartDate <= _ProfitCtr.ValidityEndDate
[0..1] I_ProfitCenter _ProfitCenterBeforeOrglChange $projection.ControllingArea = _ProfitCenterBeforeOrglChange.ControllingArea and $projection.ProfitCenterBeforeOrglChange = _ProfitCenterBeforeOrglChange.ProfitCenter and $projection.ValidityStartDate >= _ProfitCenterBeforeOrglChange.ValidityStartDate and $projection.ValidityStartDate <= _ProfitCenterBeforeOrglChange.ValidityEndDate

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName IFINOCRTPCCO view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Assgmt PrftCtr to Prod Cost Ctrlg Order view
VDM.viewType #BASIC view
Analytics.dataCategory #DIMENSION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey OrderID view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Analytics.internalName #LOCAL view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
Metadata.allowExtensions true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY OrderID aufnr SettlementOrder
KEY ValidityStartDate valid_from Validity Start Time
ValidityEndDate valid_to Validity End Time
ControllingArea kokrs Org. Value
CompanyCode bukrs Value
ProfitCenterBeforeOrglChange prctr_old Old Profit Center
ProfitCenter prctr Profit Centers
OrganizationalChange orgl_change Organizational Change
OrglChangeReassignmentStatus reassgmt_status Status
ProfitCenterDerivationSrceType prctr_drvtn_source_type Profit Center Source
OrderCategory autyp Order category
SourceProduct srce_matnr Source Product
SourcePlant srce_werks Source Plant
SourceCostCenter srce_kostl Source Cost Center
_OrglChgReassignmentStatus _OrglChgReassignmentStatus
_ProfitCtrDerivationSrceType _ProfitCtrDerivationSrceType
_OrglChange _OrglChange
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_ProfitCtr _ProfitCtr
_ProfitCenterBeforeOrglChange _ProfitCenterBeforeOrglChange
_ProductCostCtrlgOrder _ProductCostCtrlgOrder

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 I_PrftCtrToProdCostCtrlgOrder.
-- 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: IFINOCRTPCCO

CREATE VIEW I_PrftCtrToProdCostCtrlgOrder AS
SELECT
  aufnr AS OrderID,
  valid_from AS ValidityStartDate,
  valid_to AS ValidityEndDate,
  kokrs AS ControllingArea,
  bukrs AS CompanyCode,
  prctr_old AS ProfitCenterBeforeOrglChange,
  prctr AS ProfitCenter,
  orgl_change AS OrganizationalChange,
  reassgmt_status AS OrglChangeReassignmentStatus,
  prctr_drvtn_source_type AS ProfitCenterDerivationSrceType,
  autyp AS OrderCategory,
  srce_matnr AS SourceProduct,
  srce_werks AS SourcePlant,
  srce_kostl AS SourceCostCenter
FROM finoc_rt_ord
LEFT OUTER JOIN I_ProductCostCtrlgOrder AS _ProductCostCtrlgOrder ON OrderID = _ProductCostCtrlgOrder.OrderID  -- association [1]
LEFT OUTER JOIN I_OrglChangeReassignmentStatus AS _OrglChgReassignmentStatus ON OrglChangeReassignmentStatus = _OrglChgReassignmentStatus.OrglChangeReassignmentStatus  -- association [1]
LEFT OUTER JOIN I_ProfitCtrDerivationSrceType AS _ProfitCtrDerivationSrceType ON ProfitCenterDerivationSrceType = _ProfitCtrDerivationSrceType.ProfitCenterDerivationSrceType  -- association [0..1]
LEFT OUTER JOIN I_OrganizationalChange AS _OrglChange ON OrganizationalChange = _OrglChange.OrganizationalChange  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCtr ON ControllingArea = _ProfitCtr.ControllingArea AND ProfitCenter = _ProfitCtr.ProfitCenter AND ValidityStartDate >= _ProfitCtr.ValidityStartDate AND ValidityStartDate <= _ProfitCtr.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenterBeforeOrglChange ON ControllingArea = _ProfitCenterBeforeOrglChange.ControllingArea AND ProfitCenterBeforeOrglChange = _ProfitCenterBeforeOrglChange.ProfitCenter AND ValidityStartDate >= _ProfitCenterBeforeOrglChange.ValidityStartDate AND ValidityStartDate <= _ProfitCenterBeforeOrglChange.ValidityEndDate  -- association [0..1]
;