FINOC_RULE_POI_BASE

DDL: FINOC_RULE_POI_BASE SQL: FINOCV_RULE_POIB Type: view

Orgl Change-Rule: Purch. Order Item Base

FINOC_RULE_POI_BASE is a CDS View that provides data about "Orgl Change-Rule: Purch. Order Item Base" in SAP S/4HANA. It reads from 44 data sources and exposes 166 fields with key fields PurchasingDocument, PurchasingDocumentItem, AccountAssignmentNumber, OrganizationalChange, PurchasingDocumentItem.

Data Sources (44)

SourceAliasJoin Type
I_OrderBasic AufkOrder inner
I_OrganizationalChange OrglChange inner
I_OrganizationalChange OrglChange inner
I_OrganizationalChange OrglChange inner
I_OrganizationalChange OrglChange inner
I_OrganizationalChange OrglChange inner
I_OrganizationalChange OrglChange inner
I_ProfitCenterToOrder PrftCtrToOrder union_all
I_PrftCtrToProdCostCtrlgOrder PrftCtrToProdCostCtrlgOrder union_all
I_ProfitCenterToREContract PrftCtrToREContract union_all
I_ProfitCenterToCostCenter ProfitCenterToCostCenter union_all
I_ProfitCenterToFixedAsset ProfitCenterToFixedAsset union_all
I_ProfitCenterToNetworkActy ProfitCenterToNetworkActivity union_all
I_ProfitCenterToProduct ProfitCenterToProduct union_all
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToPurOrderItem ProfitCenterToPurOrderItem left_outer
I_ProfitCenterToSalesOrderItem ProfitCenterToSalesOrderItem union_all
I_ProfitCenterToWBSElement ProfitCenterToWBSElement from
I_ProjectNetwork ProjectNetwork inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_MONTHS PurchasingDocumentItem inner
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment inner
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment inner
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment inner
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment left_outer
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment left_outer
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment left_outer
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment inner
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment inner
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment inner

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName FINOCV_RULE_POIB view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Orgl Change-Rule: Purch. Order Item Base view

Fields (166)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument FINOC_RT_POI_ACC_ASGNMNT PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem FINOC_RT_POI_ACC_ASGNMNT PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber FINOC_RT_POI_ACC_ASGNMNT AccountAssignmentNumber Account Assgmt No.
KEY OrganizationalChange I_ProfitCenterToWBSElement OrganizationalChange Organizational Change
ControllingArea I_ProfitCenterToWBSElement ControllingArea Controlling Area
CompanyCode I_ProfitCenterToWBSElement CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_ProfitCenterToWBSElement ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_ProfitCenterToWBSElement ProfitCenter Profit Center
SourceProduct Source Product
SourcePlant Source Plant
SourceSalesDocument
SourceSalesDocumentItem
SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder Source Order
SourceOperation
PurchasingDocumentasPurchasingDocument
KEY PurchasingDocumentItem FINOC_RT_POI_ACC_ASGNMNT PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber FINOC_RT_POI_ACC_ASGNMNT AccountAssignmentNumber Account Assgmt No.
KEY OrganizationalChange I_ProfitCenterToSalesOrderItem OrganizationalChange Organizational Change
ControllingArea I_ProfitCenterToSalesOrderItem ControllingArea Controlling Area
CompanyCode I_ProfitCenterToSalesOrderItem CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_ProfitCenterToSalesOrderItem ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_ProfitCenterToSalesOrderItem ProfitCenter Profit Center
SourceWBSElementInternalID I_ProfitCenterToSalesOrderItem SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID I_ProfitCenterToSalesOrderItem SourceProjectInternalID
SourceProduct I_ProfitCenterToSalesOrderItem SourceProduct Source Product
SourcePlant I_ProfitCenterToSalesOrderItem SourcePlant Source Plant
SalesDocumentendasSourceSalesDocument
SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder Source Order
SourceOperation
PurchasingDocumentasPurchasingDocument
KEY PurchasingDocumentItem FINOC_RT_POI_ACC_ASGNMNT PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber FINOC_RT_POI_ACC_ASGNMNT AccountAssignmentNumber Account Assgmt No.
KEY OrganizationalChange I_PrftCtrToProdCostCtrlgOrder OrganizationalChange Organizational Change
ControllingArea I_PrftCtrToProdCostCtrlgOrder ControllingArea Controlling Area
CompanyCode I_PrftCtrToProdCostCtrlgOrder CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_PrftCtrToProdCostCtrlgOrder ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_PrftCtrToProdCostCtrlgOrder ProfitCenter Profit Center
SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID
SourceProduct I_PrftCtrToProdCostCtrlgOrder SourceProduct Source Product
SourcePlant I_PrftCtrToProdCostCtrlgOrder SourcePlant Source Plant
SourceSalesDocument
SourceSalesDocumentItem
SourceCostCenter I_PrftCtrToProdCostCtrlgOrder SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOperation
PurchasingDocumentasPurchasingDocument
KEY PurchasingDocumentItem FINOC_RT_POI_MONTHS PurchasingDocumentItem Purchasing Doc. Item
KEY OrganizationalChange I_ProfitCenterToProduct OrganizationalChange Organizational Change
ControllingArea I_ProfitCenterToProduct ControllingArea Controlling Area
CompanyCode I_ProfitCenterToProduct CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_ProfitCenterToProduct ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_ProfitCenterToProduct ProfitCenter Profit Center
ProfitCenterDerivationSrceType
SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID
SourceProduct I_ProfitCenterToProduct Product Source Product
SourcePlant I_ProfitCenterToProduct Plant Source Plant
SourceSalesDocument
SourceSalesDocumentItem
SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder Source Order
SourceOperation
PurchasingDocumentasPurchasingDocument
KEY PurchasingDocumentItem FINOC_RT_POI_ACC_ASGNMNT PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber FINOC_RT_POI_ACC_ASGNMNT AccountAssignmentNumber Account Assgmt No.
KEY OrganizationalChange I_ProfitCenterToCostCenter OrganizationalChange Organizational Change
ControllingArea I_ProfitCenterToCostCenter ControllingArea Controlling Area
CompanyCode I_ProfitCenterToCostCenter CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_ProfitCenterToCostCenter ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_ProfitCenterToCostCenter ProfitCenter Profit Center
ProfitCenterDerivationSrceType
SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID
SourceProduct Source Product
SourcePlant Source Plant
SourceSalesDocument
SourceSalesDocumentItem
SourceCostCenter I_ProfitCenterToCostCenter CostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder Source Order
SourceOperation
PurchasingDocumentasPurchasingDocument
KEY PurchasingDocumentItem FINOC_RT_POI_ACC_ASGNMNT PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber FINOC_RT_POI_ACC_ASGNMNT AccountAssignmentNumber Account Assgmt No.
KEY OrganizationalChange I_ProfitCenterToFixedAsset OrganizationalChange Organizational Change
ControllingArea I_ProfitCenterToFixedAsset ControllingArea Controlling Area
CompanyCode I_ProfitCenterToFixedAsset CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_ProfitCenterToFixedAsset ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_ProfitCenterToFixedAsset ProfitCenter Profit Center
SourceWBSElementInternalID I_ProfitCenterToFixedAsset SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID I_ProfitCenterToFixedAsset SourceProjectInternalID
SourceProduct Source Product
SourcePlant Source Plant
SourceSalesDocument
SourceSalesDocumentItem
SourceCostCenter I_ProfitCenterToFixedAsset SourceCostCenter Source Cost Center
SourceOrder I_ProfitCenterToFixedAsset SourceOrder Source Order
SourceOperation
PurchasingDocumentasPurchasingDocument
KEY PurchasingDocumentItem FINOC_RT_POI_ACC_ASGNMNT PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber FINOC_RT_POI_ACC_ASGNMNT AccountAssignmentNumber Account Assgmt No.
KEY OrganizationalChange I_ProfitCenterToNetworkActy OrganizationalChange Organizational Change
ControllingArea I_ProfitCenterToNetworkActy ControllingArea Controlling Area
CompanyCode I_ProfitCenterToNetworkActy CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_ProfitCenterToNetworkActy ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_ProfitCenterToNetworkActy ProfitCenter Profit Center
SourceWBSElementInternalID I_ProfitCenterToNetworkActy SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID I_ProfitCenterToNetworkActy SourceProjectInternalID
SourceProduct Source Product
SourcePlant Source Plant
SourceSalesDocument
SourceSalesDocumentItem
SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
ProjectNetworkendasSourceOrder
NetworkActivityendasSourceOperation
PurchasingDocumentasPurchasingDocument
KEY PurchasingDocumentItem FINOC_RT_POI_ACC_ASGNMNT PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber FINOC_RT_POI_ACC_ASGNMNT AccountAssignmentNumber Account Assgmt No.
KEY OrganizationalChange I_ProfitCenterToOrder OrganizationalChange Organizational Change
ControllingArea I_ProfitCenterToOrder ControllingArea Controlling Area
CompanyCode I_ProfitCenterToOrder CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_ProfitCenterToOrder ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_ProfitCenterToOrder ProfitCenter Profit Center
SourceWBSElementInternalID I_ProfitCenterToOrder SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID I_ProfitCenterToOrder SourceProjectInternalID
SourceProduct I_ProfitCenterToOrder SourceProduct Source Product
SourcePlant I_ProfitCenterToOrder SourcePlant Source Plant
SourceSalesDocument
SourceSalesDocumentItem
SourceCostCenter I_ProfitCenterToOrder SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOperation
PurchasingDocumentasPurchasingDocument
KEY PurchasingDocumentItem FINOC_RT_POI_ACC_ASGNMNT PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber FINOC_RT_POI_ACC_ASGNMNT AccountAssignmentNumber Account Assgmt No.
KEY OrganizationalChange I_ProfitCenterToREContract OrganizationalChange Organizational Change
ControllingArea I_ProfitCenterToREContract ControllingArea Controlling Area
CompanyCode I_ProfitCenterToREContract CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_ProfitCenterToREContract ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_ProfitCenterToREContract ProfitCenter Profit Center
SourceWBSElementInternalID I_ProfitCenterToREContract SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID I_ProfitCenterToREContract SourceProjectInternalID
SourceProduct Source Product
SourcePlant Source Plant
SourceSalesDocument
SourceSalesDocumentItem
SourceCostCenter I_ProfitCenterToREContract SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder I_ProfitCenterToREContract SourceOrder Source Order
SourceOperation
SemanticObject

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 FINOC_RULE_POI_BASE.
-- 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: FINOCV_RULE_POIB

CREATE VIEW FINOC_RULE_POI_BASE AS
SELECT
  PurgDocAccountAssignment.PurchasingDocument AS PurchasingDocument,
  PurgDocAccountAssignment.PurchasingDocumentItem AS PurchasingDocumentItem,
  PurgDocAccountAssignment.AccountAssignmentNumber AS AccountAssignmentNumber,
  ProfitCenterToWBSElement.OrganizationalChange AS OrganizationalChange,
  ProfitCenterToWBSElement.ControllingArea AS ControllingArea,
  ProfitCenterToWBSElement.CompanyCode AS CompanyCode,
  ProfitCenterToWBSElement.ProfitCenterBeforeOrglChange AS ProfitCenterBeforeOrglChange,
  ProfitCenterToWBSElement.ProfitCenter AS ProfitCenterByOrglChange,
  cast(' ' as finoc_srce_matnr preserving type) AS SourceProduct,
  cast(' ' as finoc_srce_werks preserving type) AS SourcePlant,
  cast(' ' as finoc_srce_kdauf preserving type) AS SourceSalesDocument,
  cast('000000' as finoc_srce_kdpos preserving type) AS SourceSalesDocumentItem,
  cast(' ' as finoc_srce_kostl preserving type) AS SourceCostCenter,
  cast(' ' as finoc_srce_anln1 preserving type) AS SourceMasterFixedAsset,
  cast(' ' as finoc_srce_anln2 preserving type) AS SourceFixedAsset,
  cast(' ' as finoc_srce_aufnr preserving type) AS SourceOrder,
  cast(' ' as finoc_srce_vornr preserving type) AS SourceOperation,
  'WBS ' as SemanticObject AS PurchasingDocumentasPurchasingDocument,
  ProfitCenterToSalesOrderItem.SourceWBSElementInternalID AS SourceWBSElementInternalID,
  ProfitCenterToSalesOrderItem.SourceProjectInternalID AS SourceProjectInternalID,
  case when ProfitCenterToSalesOrderItem.ProfitCenterDerivationSrceType <> '' then cast(' ' as finoc_srce_kdauf preserving type ) else ProfitCenterToSalesOrderItem.SalesDocument end as SourceSalesDocument AS SalesDocumentendasSourceSalesDocument,
  cast('MA' as finoc_prctr_drvtn_source_type preserving type) AS ProfitCenterDerivationSrceType,
  case when ProfitCenterToNetworkActivity.ProfitCenterDerivationSrceType <> '' then ProfitCenterToNetworkActivity.SourceOrder else ProfitCenterToNetworkActivity.ProjectNetwork end as SourceOrder AS ProjectNetworkendasSourceOrder,
  case when ProfitCenterToNetworkActivity.ProfitCenterDerivationSrceType <> '' then cast(' ' as finoc_srce_vornr preserving type ) else ProfitCenterToNetworkActivity.NetworkActivity end as SourceOperation AS NetworkActivityendasSourceOperation,
  'REC' AS SemanticObject
FROM I_ProfitCenterToWBSElement AS ProfitCenterToWBSElement
INNER JOIN FINOC_RT_POI_ACC_ASGNMNT AS PurgDocAccountAssignment ON /* join condition not captured in parsed metadata */
INNER JOIN FINOC_RT_POI_MONTHS AS PurchasingDocumentItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrganizationalChange AS OrglChange ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProfitCenterToPurOrderItem AS ProfitCenterToPurOrderItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrderBasic AS AufkOrder ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN FINOC_RT_POI_ACC_ASGNMNT AS PurgDocAccountAssignment ON /* join condition not captured in parsed metadata */
INNER JOIN I_ProjectNetwork AS ProjectNetwork ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_ProfitCenterToSalesOrderItem, I_PrftCtrToProdCostCtrlgOrder, I_ProfitCenterToProduct, I_ProfitCenterToCostCenter, I_ProfitCenterToFixedAsset, I_ProfitCenterToNetworkActy, I_ProfitCenterToOrder, I_ProfitCenterToREContract
;