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 26 data sources and exposes 86 fields with key fields PurchasingDocument, PurchasingDocumentItem, AccountAssignmentNumber, OrganizationalChange, PurchasingDocumentItem.

Data Sources (26)

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_PrftCtrToProdCostCtrlgOrder PrftCtrToProdCostCtrlgOrder union_all
I_PrftCtrToServiceDocumentItem PrftCtrToServiceDocumentItem 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_ProfitCenterToSalesOrderItem ProfitCenterToSalesOrderItem union_all
I_ProfitCenterToWBSElement ProfitCenterToWBSElement from
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 inner
FINOC_RT_POI_ACC_ASGNMNT PurgDocAccountAssignment left_outer

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 (86)

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
SourceProjectInternalID I_ProfitCenterToWBSElement SourceProjectInternalID
SourceProduct Source Product
SourcePlant Source Plant
SourceSalesDocument SD Document
SourceSalesDocumentItem Sales Document Item
SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder Order ID
SourceServiceDocumentType Transaction Type
SourceServiceDocument Transaction ID
SourceServiceDocumentItem Service Document
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
SourceSalesDocument I_ProfitCenterToSalesOrderItem SalesDocument SD Document
SourceSalesDocumentItem I_ProfitCenterToSalesOrderItem SalesDocumentItem Sales Document Item
SourceCostCenter I_ProfitCenterToSalesOrderItem SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder I_ProfitCenterToSalesOrderItem SourceOrder Order ID
SourceServiceDocumentType I_ProfitCenterToSalesOrderItem SourceServiceDocumentType Transaction Type
SourceServiceDocument I_ProfitCenterToSalesOrderItem SourceServiceDocument Transaction ID
SourceServiceDocumentItem I_ProfitCenterToSalesOrderItem SourceServiceDocumentItem Service Document
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_PrftCtrToServiceDocumentItem OrganizationalChange Organizational Change
ControllingArea I_PrftCtrToServiceDocumentItem ControllingArea Controlling Area
CompanyCode I_PrftCtrToServiceDocumentItem CompanyCode Receiver Company Code
ProfitCenterBeforeOrglChange I_PrftCtrToServiceDocumentItem ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterByOrglChange I_PrftCtrToServiceDocumentItem ProfitCenter Profit Center
ProfitCenterDerivationSrceType
SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID
SourceProduct Source Product
SourcePlant Source Plant
SourceSalesDocument SD Document
SourceSalesDocumentItem Sales Document Item
SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder Order ID
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 I_PrftCtrToProdCostCtrlgOrder SourceWBSElementInternalID Source WBS Element
SourceProjectInternalID I_PrftCtrToProdCostCtrlgOrder SourceProjectInternalID
SourceProduct I_PrftCtrToProdCostCtrlgOrder SourceProduct Source Product
SourcePlant I_PrftCtrToProdCostCtrlgOrder SourcePlant Source Plant
SourceSalesDocument SD Document
SourceSalesDocumentItem Sales Document Item
SourceCostCenter I_PrftCtrToProdCostCtrlgOrder SourceCostCenter Source Cost Center
SourceMasterFixedAsset
SourceFixedAsset
SourceOrder I_PrftCtrToProdCostCtrlgOrder OrderID Order ID
SourceServiceDocumentType I_PrftCtrToProdCostCtrlgOrder ServiceDocumentType Transaction Type
SourceServiceDocument I_PrftCtrToProdCostCtrlgOrder ServiceDocument Transaction ID
SourceServiceDocumentItem I_PrftCtrToProdCostCtrlgOrder ServiceDocumentItem Service Document
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,
  ProfitCenterToWBSElement.SourceProjectInternalID AS SourceProjectInternalID,
  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_service_doc_type preserving type ) AS SourceServiceDocumentType,
  cast(' ' as finoc_srce_service_doc_id preserving type) AS SourceServiceDocument,
  cast('000000' as finoc_srce_service_doc_item_id preserving type) AS SourceServiceDocumentItem,
  cast(' ' as finoc_srce_vornr preserving type) AS SourceOperation,
  'WBS ' as SemanticObject AS PurchasingDocumentasPurchasingDocument,
  ProfitCenterToSalesOrderItem.SourceWBSElementInternalID AS SourceWBSElementInternalID,
  cast('SV' as finoc_prctr_drvtn_source_type preserving type ) AS ProfitCenterDerivationSrceType,
  'ORDER ' 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 */
-- UNION ALL with additional select branch(es): I_ProfitCenterToSalesOrderItem, I_PrftCtrToServiceDocumentItem, I_PrftCtrToProdCostCtrlgOrder, I_ProfitCenterToProduct
;