C_ProfitCenterToPurOrderItem

DDL: C_PROFITCENTERTOPURORDERITEM Type: view_entity CONSUMPTION Package: ODATA_ORGL_CHG_REPORT_MD_LR

Assgmt of PrftCtr to Purchase Order Item

C_ProfitCenterToPurOrderItem is a Consumption CDS View that provides data about "Assgmt of PrftCtr to Purchase Order Item" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToPurOrderItem) and exposes 43 fields with key fields OrganizationalChangeObjectType, PurchasingDocument, PurchasingDocumentItem, AccountAssignmentNumber, ValidityStartDate. It has 12 associations to related views. It is exposed through 2 OData services (ASQL_F7047, ORGL_CHANGE_REPORT_MD_LIST). Part of development package ODATA_ORGL_CHG_REPORT_MD_LR.

Data Sources (1)

SourceAliasJoin Type
I_ProfitCenterToPurOrderItem _ProfitCenterToPurOrderItem from

Associations (12)

CardinalityTargetAliasCondition
[0..*] I_ProfitCenterText _ProfitCenterBfrOrglChangeText _ProfitCenterToPurOrderItem.ControllingArea = _ProfitCenterBfrOrglChangeText.ControllingArea and _ProfitCenterToPurOrderItem.ProfitCenterBeforeOrglChange = _ProfitCenterBfrOrglChangeText.ProfitCenter and _ProfitCenterBfrOrglChangeText.ValidityEndDate = '99991231'
[0..*] I_ProfitCenterText _ProfitCenterByOrglChangeText _ProfitCenterToPurOrderItem.ControllingArea = _ProfitCenterByOrglChangeText.ControllingArea and _ProfitCenterToPurOrderItem.ProfitCenter = _ProfitCenterByOrglChangeText.ProfitCenter and _ProfitCenterByOrglChangeText.ValidityEndDate = '99991231'
[0..1] I_WBSElementBasicData _SourceWBSElement _ProfitCenterToPurOrderItem.SourceWBSElementInternalID = _SourceWBSElement.WBSElementInternalID
[0..1] I_ProjectBasicData _SourceProjectBasicData _ProfitCenterToPurOrderItem.SourceProjectInternalID = _SourceProjectBasicData.ProjectInternalID
[1] I_Order _SourceOrder _ProfitCenterToPurOrderItem.SourceOrder = _SourceOrder.OrderID
[0..1] I_CostCenter _SourceCostCenter _ProfitCenterToPurOrderItem.SourceCostCenter = _SourceCostCenter.CostCenter and _ProfitCenterToPurOrderItem.ControllingArea = _SourceCostCenter.ControllingArea and _SourceCostCenter.ValidityEndDate = '99991231'
[0..1] I_Plant _SourcePlant _ProfitCenterToPurOrderItem.SourcePlant = _SourcePlant.Plant
[0..1] I_Product _SourceProduct _ProfitCenterToPurOrderItem.SourceProduct = _SourceProduct.Product
[0..1] I_MasterFixedAsset _SourceMasterFixedAsset _ProfitCenterToPurOrderItem.SourceMasterFixedAsset = _SourceMasterFixedAsset.MasterFixedAsset
[0..1] I_FixedAsset _SourceFixedAsset _ProfitCenterToPurOrderItem.SourceFixedAsset = _SourceFixedAsset.MasterFixedAsset
[1] I_PurchasingDocument _PurchasingDocument $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument
[1] I_PurchasingDocumentItem _PurchasingDocumentItem $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
EndUserText.label Assgmt of PrftCtr to Purchase Order Item view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F7047 ASQL_F7047 C2 NOT_RELEASED
ORGL_CHANGE_REPORT_MD_LIST ORGL_CHANGE_RPT_MD_LIST_O4 V4 C1 NOT_TO_BE_RELEASED_STABLE

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY OrganizationalChangeObjectType
KEY PurchasingDocument PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber AccountAssignmentNumber Account Assgmt No.
KEY ValidityStartDate ValidityStartDate Validity Start Date
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
ProfitCenterByOrglChange ProfitCenter Profit Center
OrganizationalChange OrganizationalChange Organizational Change
OrglChangeReassignmentStatus OrglChangeReassignmentStatus Status
ProfitCenterDerivationSrceType ProfitCenterDerivationSrceType Profit Center Source
SourceProduct SourceProduct Source Product
ProductNameendasSourceProductName
SourcePlant SourcePlant Source Plant
SourcePlantName _SourcePlant PlantName Plant Name
SourceSalesDocument SourceSalesDocument
SourceSalesDocumentItem SourceSalesDocumentItem
SourceCostCenter SourceCostCenter
CostCenterNameendasSourceCostCenterName
SourceWBSElementExternalID _SourceWBSElement WBSElementExternalID WBS Element External ID
SourceWBSElementDescription _SourceWBSElement WBSDescription WBS Element Name
SourceProjectExternalID _SourceProjectBasicData ProjectExternalID Project def.
SourceProjectDescription _SourceProjectBasicData ProjectDescription Project Name
SourceMasterFixedAsset SourceMasterFixedAsset
SourceMasterFixedAssetDesc _SourceMasterFixedAsset MasterFixedAssetDescription
SourceFixedAsset SourceFixedAsset
SourceFixedAssetDescription _SourceFixedAsset FixedAssetDescription Description
SourceOrder SourceOrder
SourceOrderName _SourceOrder OrderDescription
SourceNetworkActivity SourceNetworkActivity
_OrglChgReassignmentStatus _OrglChgReassignmentStatus
_ProfitCtrDerivationSrceType _ProfitCtrDerivationSrceType
_PurchasingDocument _PurchasingDocument
_PurchasingDocumentItem _PurchasingDocumentItem
_OrglChange _OrglChange
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_ProfitCtr _ProfitCtr
_ProfitCenterBeforeOrglChange _ProfitCenterBeforeOrglChange

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 C_ProfitCenterToPurOrderItem.
-- 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 C_ProfitCenterToPurOrderItem AS
SELECT
  'PO' AS OrganizationalChangeObjectType,
  PurchasingDocument,
  PurchasingDocumentItem,
  AccountAssignmentNumber,
  ValidityStartDate,
  ValidityEndDate,
  ControllingArea,
  _ControllingArea.ControllingAreaName AS ControllingAreaName,
  CompanyCode,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  ProfitCenterBeforeOrglChange,
  ProfitCenter AS ProfitCenterByOrglChange,
  OrganizationalChange,
  OrglChangeReassignmentStatus,
  ProfitCenterDerivationSrceType,
  SourceProduct,
  case when _SourceProduct._Text[1:Language=$session.system_language].ProductName is null then _SourceProduct._Text[1:Language='E'].ProductName else _SourceProduct._Text[1:Language=$session.system_language].ProductName end as SourceProductName AS ProductNameendasSourceProductName,
  SourcePlant,
  _SourcePlant.PlantName AS SourcePlantName,
  SourceSalesDocument,
  SourceSalesDocumentItem,
  SourceCostCenter,
  case when _SourceCostCenter._Text[1:Language=$session.system_language].CostCenterName is null then _SourceCostCenter._Text[1:Language='E'].CostCenterName else _SourceCostCenter._Text[1:Language=$session.system_language].CostCenterName end as SourceCostCenterName AS CostCenterNameendasSourceCostCenterName,
  _SourceWBSElement.WBSElementExternalID AS SourceWBSElementExternalID,
  _SourceWBSElement.WBSDescription AS SourceWBSElementDescription,
  _SourceProjectBasicData.ProjectExternalID AS SourceProjectExternalID,
  _SourceProjectBasicData.ProjectDescription AS SourceProjectDescription,
  SourceMasterFixedAsset,
  _SourceMasterFixedAsset.MasterFixedAssetDescription AS SourceMasterFixedAssetDesc,
  SourceFixedAsset,
  _SourceFixedAsset.FixedAssetDescription AS SourceFixedAssetDescription,
  SourceOrder,
  _SourceOrder.OrderDescription AS SourceOrderName,
  SourceNetworkActivity
FROM I_ProfitCenterToPurOrderItem AS _ProfitCenterToPurOrderItem
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterBfrOrglChangeText ON _ProfitCenterToPurOrderItem.ControllingArea = _ProfitCenterBfrOrglChangeText.ControllingArea AND _ProfitCenterToPurOrderItem.ProfitCenterBeforeOrglChange = _ProfitCenterBfrOrglChangeText.ProfitCenter AND _ProfitCenterBfrOrglChangeText.ValidityEndDate = '99991231'  -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterByOrglChangeText ON _ProfitCenterToPurOrderItem.ControllingArea = _ProfitCenterByOrglChangeText.ControllingArea AND _ProfitCenterToPurOrderItem.ProfitCenter = _ProfitCenterByOrglChangeText.ProfitCenter AND _ProfitCenterByOrglChangeText.ValidityEndDate = '99991231'  -- association [0..*]
LEFT OUTER JOIN I_WBSElementBasicData AS _SourceWBSElement ON _ProfitCenterToPurOrderItem.SourceWBSElementInternalID = _SourceWBSElement.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_ProjectBasicData AS _SourceProjectBasicData ON _ProfitCenterToPurOrderItem.SourceProjectInternalID = _SourceProjectBasicData.ProjectInternalID  -- association [0..1]
LEFT OUTER JOIN I_Order AS _SourceOrder ON _ProfitCenterToPurOrderItem.SourceOrder = _SourceOrder.OrderID  -- association [1]
LEFT OUTER JOIN I_CostCenter AS _SourceCostCenter ON _ProfitCenterToPurOrderItem.SourceCostCenter = _SourceCostCenter.CostCenter AND _ProfitCenterToPurOrderItem.ControllingArea = _SourceCostCenter.ControllingArea AND _SourceCostCenter.ValidityEndDate = '99991231'  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SourcePlant ON _ProfitCenterToPurOrderItem.SourcePlant = _SourcePlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Product AS _SourceProduct ON _ProfitCenterToPurOrderItem.SourceProduct = _SourceProduct.Product  -- association [0..1]
LEFT OUTER JOIN I_MasterFixedAsset AS _SourceMasterFixedAsset ON _ProfitCenterToPurOrderItem.SourceMasterFixedAsset = _SourceMasterFixedAsset.MasterFixedAsset  -- association [0..1]
LEFT OUTER JOIN I_FixedAsset AS _SourceFixedAsset ON _ProfitCenterToPurOrderItem.SourceFixedAsset = _SourceFixedAsset.MasterFixedAsset  -- association [0..1]
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]
;