P_CostCenterActualPlan

DDL: P_COSTCENTERACTUALPLAN SQL: PCSTCTRACTPLN Type: view COMPOSITE

P_CostCenterActualPlan is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_FinancialPlanningEntryItem, I_GLAccountLineItemRawData) and exposes 199 fields with key fields FinancialPlanningReqTransSqnc, FinancialPlanningDataPacket, FinancialPlanningEntryItem, LedgerGLLineItem, SourceLedger. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_FinancialPlanningEntryItem _FinancialPlanningEntryItem from
I_GLAccountLineItemRawData _GLAccountLineItem union_all

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_SrvcDocByDocumentType _ServiceDocument $projection.ServiceDocumentType = _ServiceDocument.ServiceDocumentType and $projection.ServiceDocument = _ServiceDocument.ServiceDocument
[0..1] I_AccountingDocumentType _AccountingDocumentType $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType
[0..1] I_PurchasingDocument _PurchasingDocument $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PCSTCTRACTPLN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (199)

KeyFieldSource TableSource FieldDescription
KEY FinancialPlanningReqTransSqnc FinancialPlanningReqTransSqnc Request TSN
KEY FinancialPlanningDataPacket FinancialPlanningDataPacket Data packet number
KEY FinancialPlanningEntryItem FinancialPlanningEntryItem
KEY LedgerGLLineItem Journal Entry Item
KEY SourceLedger Source Ledger
KEY AccountingDocument Journal Entry
KEY ControllingArea ControllingArea Controlling Area
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY CostCenter CostCenter Cost Center
KEY GLAccount GLAccount General Ledger
FiscalYearVariant FiscalYearVariant FY Variant
FiscalPeriod FiscalPeriod Tax period
Ledger Source Ledger
Supplier Supplier
Material Product Product Sold
CommittedQuantity
PlannedQuantity ValuationQuantity
Quantity Value
UnitOfMeasure Unit of Measure
ChartOfAccounts ChartOfAccounts Node Class
PurchasingDocument Purchasing Document
PurchasingDocumentItem Purchasing Doc. Item
PurchasingDocumentType RFQ Type
PurchasingDocumentCategory Doc. Category
PostingDate PostingDate Posting Date for GR
PlanningCategory PlanningCategory Plan Category
CompanyCodeCurrency CompanyCodeCurrency Local Currency
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
FunctionalCurrency Functional Currency
FreeDefinedCurrency1 FreeDefinedCurrency1 Freely Defined Currency 1
FreeDefinedCurrency2 FreeDefinedCurrency2 Freely Defined Currency 2
FreeDefinedCurrency3 FreeDefinedCurrency3 Freely Defined Currency 3
FreeDefinedCurrency4 FreeDefinedCurrency4 Freely Defined Currency 4
FreeDefinedCurrency5 FreeDefinedCurrency5 Freely Defined Currency 5
FreeDefinedCurrency6 FreeDefinedCurrency6 Freely Defined Currency 6
FreeDefinedCurrency7 FreeDefinedCurrency7 Freely Defined Currency 7
FreeDefinedCurrency8 FreeDefinedCurrency8 Freely Defined Currency 8
ActualAmountInFunctionalCrcy Amount in Functional Currency
CmtmtAmountInFunctionalCrcy
PlanAmountInFunctionalCurrency
ActualAmountInFreeDfndCrcy1 Amount in Freely Defined Currency 1
ActualAmountInFreeDfndCrcy2 Amount in Freely Defined Currency 2
ActualAmountInFreeDfndCrcy3 Amount in Freely Defined Currency 3
ActualAmountInFreeDfndCrcy4 Amount in Freely Defined Currency 4
ActualAmountInFreeDfndCrcy5 Amount in Freely Defined Currency 5
ActualAmountInFreeDfndCrcy6 Amount in Freely Defined Currency 6
ActualAmountInFreeDfndCrcy7 Amount in Freely Defined Currency 7
ActualAmountInFreeDfndCrcy8 Amount in Freely Defined Currency 8
CmtmtAmountInFreeDfndCrcy1
CmtmtAmountInFreeDfndCrcy2
CmtmtAmountInFreeDfndCrcy3
CmtmtAmountInFreeDfndCrcy4
CmtmtAmountInFreeDfndCrcy5
CmtmtAmountInFreeDfndCrcy6
CmtmtAmountInFreeDfndCrcy7
CmtmtAmountInFreeDfndCrcy8
PlanAmountInFreeDefinedCrcy1 Amount in Freely Defined Currency 1
PlanAmountInFreeDefinedCrcy2 Amount in Freely Defined Currency 2
PlanAmountInFreeDefinedCrcy3 Amount in Freely Defined Currency 3
PlanAmountInFreeDefinedCrcy4 Amount in Freely Defined Currency 4
PlanAmountInFreeDefinedCrcy5 Amount in Freely Defined Currency 5
PlanAmountInFreeDefinedCrcy6 Amount in Freely Defined Currency 6
PlanAmountInFreeDefinedCrcy7 Amount in Freely Defined Currency 7
PlanAmountInFreeDefinedCrcy8 Amount in Freely Defined Currency 8
ActualAmountInCompanyCodeCrcy Local Crcy Amt
ActualAmountInGlobalCurrency Amount in Global Currency
CmtmtAmtInCompanyCodeCurrency
CmtmtAmountInGlobalCurrency
PlanAmountInCompanyCodeCrcy Local Crcy Amt
PlanAmountInGlobalCurrency Amount in Global Currency
CostCenterDocumentSource
AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
StstclAccountAssignmentType1 Stat. AcctAss.Type 1
StstclAccountAssignmentType2 Stat. AcctAss.Type 2
StstclAccountAssignmentType3 Stat. AcctAss.Type 3
IsStatisticalCostCenter
ValuationArea Valuation Area
ServiceDocumentType Transaction Type
Segment Segment Segment number
SalesOrganization SalesOrganization Sales Organization
ProfitCenter ProfitCenter Profit Center
Plant Plant Valuation Area
OrganizationDivision OrganizationDivision Org. Division
FinancialAccountType Fin. Account Type
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
BusinessArea BusinessArea Business Area
AssetClass AssetClass Asset Class
ServiceDocument Transaction ID
AccountingDocumentType Journal Entry Type
SalesDocument SalesDocument SD Document
OrderID OrderID Order ID
Customer Customer Sold-to Party
FunctionalArea FunctionalArea Sendr Fctl Area
_Supplier _Supplier
_ServiceDocument _ServiceDocument
_SalesDocument _SalesDocument
_Order _Order
_GLAccountInCompanyCode _GLAccountInCompanyCode
_Customer _Customer
KEY FinancialPlanningDataPacket Data packet number
KEY FinancialPlanningEntryItem
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY SourceLedger SourceLedger Source Ledger
KEY AccountingDocument AccountingDocument Journal Entry
KEY ControllingArea ControllingArea Controlling Area
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY CostCenter CostCenter Cost Center
KEY GLAccount GLAccount General Ledger
FiscalYearVariant FiscalYearVariant FY Variant
FiscalPeriod FiscalPeriod Tax period
Ledger Source Ledger
Supplier Supplier Supplier
Material Product Product Sold
CommittedQuantity
PlannedQuantity
Quantity Quantity Value
UnitOfMeasure BaseUnit Unit of Measure
ChartOfAccounts ChartOfAccounts Node Class
PurchasingDocument PurchasingDocument Purchasing Document
PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
PurchasingDocumentType _PurchasingDocument PurchasingDocumentType RFQ Type
PurchasingDocumentCategory _PurchasingDocument PurchasingDocumentCategory Doc. Category
PostingDate PostingDate Posting Date for GR
PlanningCategory Plan Category
CompanyCodeCurrency CompanyCodeCurrency Local Currency
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
FunctionalCurrency FunctionalCurrency Functional Currency
FreeDefinedCurrency1 FreeDefinedCurrency1 Freely Defined Currency 1
FreeDefinedCurrency2 FreeDefinedCurrency2 Freely Defined Currency 2
FreeDefinedCurrency3 FreeDefinedCurrency3 Freely Defined Currency 3
FreeDefinedCurrency4 FreeDefinedCurrency4 Freely Defined Currency 4
FreeDefinedCurrency5 FreeDefinedCurrency5 Freely Defined Currency 5
FreeDefinedCurrency6 FreeDefinedCurrency6 Freely Defined Currency 6
FreeDefinedCurrency7 FreeDefinedCurrency7 Freely Defined Currency 7
FreeDefinedCurrency8 FreeDefinedCurrency8 Freely Defined Currency 8
ActualAmountInFunctionalCrcy AmountInFunctionalCurrency Amount in Functional Currency
CmtmtAmountInFunctionalCrcy
PlanAmountInFunctionalCurrency
ActualAmountInFreeDfndCrcy1 Amount in Freely Defined Currency 1
ActualAmountInFreeDfndCrcy2 Amount in Freely Defined Currency 2
ActualAmountInFreeDfndCrcy3 Amount in Freely Defined Currency 3
ActualAmountInFreeDfndCrcy4 Amount in Freely Defined Currency 4
ActualAmountInFreeDfndCrcy5 Amount in Freely Defined Currency 5
ActualAmountInFreeDfndCrcy6 Amount in Freely Defined Currency 6
ActualAmountInFreeDfndCrcy7 Amount in Freely Defined Currency 7
ActualAmountInFreeDfndCrcy8 Amount in Freely Defined Currency 8
CmtmtAmountInFreeDfndCrcy1
CmtmtAmountInFreeDfndCrcy2
CmtmtAmountInFreeDfndCrcy3
CmtmtAmountInFreeDfndCrcy4
CmtmtAmountInFreeDfndCrcy5
CmtmtAmountInFreeDfndCrcy6
CmtmtAmountInFreeDfndCrcy7
CmtmtAmountInFreeDfndCrcy8
PlanAmountInFreeDefinedCrcy1 Amount in Freely Defined Currency 1
PlanAmountInFreeDefinedCrcy2 Amount in Freely Defined Currency 2
PlanAmountInFreeDefinedCrcy3 Amount in Freely Defined Currency 3
PlanAmountInFreeDefinedCrcy4 Amount in Freely Defined Currency 4
PlanAmountInFreeDefinedCrcy5 Amount in Freely Defined Currency 5
PlanAmountInFreeDefinedCrcy6 Amount in Freely Defined Currency 6
PlanAmountInFreeDefinedCrcy7 Amount in Freely Defined Currency 7
PlanAmountInFreeDefinedCrcy8 Amount in Freely Defined Currency 8
ActualAmountInCompanyCodeCrcy Local Crcy Amt
ActualAmountInGlobalCurrency Amount in Global Currency
CmtmtAmtInCompanyCodeCurrency
CmtmtAmountInGlobalCurrency
PlanAmountInCompanyCodeCrcy Local Crcy Amt
PlanAmountInGlobalCurrency Amount in Global Currency
CostCenterDocumentSource
AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
StstclAccountAssignmentType1 StstclAccountAssignmentType1 Stat. AcctAss.Type 1
StstclAccountAssignmentType2 StstclAccountAssignmentType2 Stat. AcctAss.Type 2
StstclAccountAssignmentType3 StstclAccountAssignmentType3 Stat. AcctAss.Type 3
ValuationArea ValuationArea Valuation Area
ServiceDocumentType ServiceDocumentType Transaction Type
Segment Segment Segment number
SalesOrganization SalesOrganization Sales Organization
ProfitCenter ProfitCenter Profit Center
Plant Plant Valuation Area
OrganizationDivision OrganizationDivision Org. Division
FinancialAccountType FinancialAccountType Fin. Account Type
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
BusinessArea BusinessArea Business Area
AssetClass AssetClass Asset Class
ServiceDocument ServiceDocument Transaction ID
AccountingDocumentType AccountingDocumentType Journal Entry Type
SalesDocument SalesDocument SD Document
OrderID OrderID Order ID
Customer Customer Sold-to Party
FunctionalArea FunctionalArea Sendr Fctl Area
_Supplier _Supplier
_ServiceDocument _ServiceDocument
_SalesDocument _SalesDocument
_Order _Order
_GLAccountInCompanyCode _GLAccountInCompanyCode
_Customer _Customer
_AccountingDocumentType _AccountingDocumentType

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_CostCenterActualPlan.
-- 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: PCSTCTRACTPLN

CREATE VIEW P_CostCenterActualPlan AS
SELECT
  FinancialPlanningReqTransSqnc,
  FinancialPlanningDataPacket,
  FinancialPlanningEntryItem,
  cast('' as fis_docln) AS LedgerGLLineItem,
  cast(Ledger as fins_ledger_pers) AS SourceLedger,
  cast('' as fis_belnr) AS AccountingDocument,
  ControllingArea,
  CompanyCode,
  FiscalYear,
  CostCenter,
  GLAccount,
  FiscalYearVariant,
  FiscalPeriod,
  cast('' as fis_rldnr) AS Ledger,
  cast('' as md_supplier) AS Supplier,
  Product AS Material,
  cast(0 as quan1) AS CommittedQuantity,
  ValuationQuantity AS PlannedQuantity,
  cast(0 as quan1_12) AS Quantity,
  cast('' as co_meinh) AS UnitOfMeasure,
  ChartOfAccounts,
  cast('' as fis_ebeln) AS PurchasingDocument,
  cast('' as fis_ebelp) AS PurchasingDocumentItem,
  cast('' as esart) AS PurchasingDocumentType,
  cast('' as ebstyp) AS PurchasingDocumentCategory,
  PostingDate,
  PlanningCategory,
  CompanyCodeCurrency,
  GlobalCurrency,
  cast('' as fins_currfc) AS FunctionalCurrency,
  FreeDefinedCurrency1,
  FreeDefinedCurrency2,
  FreeDefinedCurrency3,
  FreeDefinedCurrency4,
  FreeDefinedCurrency5,
  FreeDefinedCurrency6,
  FreeDefinedCurrency7,
  FreeDefinedCurrency8,
  cast(0 as fis_vfccur12) AS ActualAmountInFunctionalCrcy,
  cast(0 as fis_vfccur12) AS CmtmtAmountInFunctionalCrcy,
  cast(0 as fis_vfccur12) AS PlanAmountInFunctionalCurrency,
  cast(0 as fis_act_osl) AS ActualAmountInFreeDfndCrcy1,
  cast(0 as fis_act_vsl) AS ActualAmountInFreeDfndCrcy2,
  cast(0 as fis_act_bsl) AS ActualAmountInFreeDfndCrcy3,
  cast(0 as fis_act_csl) AS ActualAmountInFreeDfndCrcy4,
  cast(0 as fis_act_dsl) AS ActualAmountInFreeDfndCrcy5,
  cast(0 as fis_act_esl) AS ActualAmountInFreeDfndCrcy6,
  cast(0 as fis_act_fsl) AS ActualAmountInFreeDfndCrcy7,
  cast(0 as fis_act_gsl) AS ActualAmountInFreeDfndCrcy8,
  cast(0 as fis_cmtmt_osl) AS CmtmtAmountInFreeDfndCrcy1,
  cast(0 as fis_cmtmt_vsl) AS CmtmtAmountInFreeDfndCrcy2,
  cast(0 as fis_cmtmt_bsl) AS CmtmtAmountInFreeDfndCrcy3,
  cast(0 as fis_cmtmt_csl) AS CmtmtAmountInFreeDfndCrcy4,
  cast(0 as fis_cmtmt_dsl) AS CmtmtAmountInFreeDfndCrcy5,
  cast(0 as fis_cmtmt_esl) AS CmtmtAmountInFreeDfndCrcy6,
  cast(0 as fis_cmtmt_fsl) AS CmtmtAmountInFreeDfndCrcy7,
  cast(0 as fis_cmtmt_gsl) AS CmtmtAmountInFreeDfndCrcy8,
  cast(AmountInFreeDefinedCurrency1 as fis_plan_osl) AS PlanAmountInFreeDefinedCrcy1,
  cast(AmountInFreeDefinedCurrency2 as fis_plan_vsl) AS PlanAmountInFreeDefinedCrcy2,
  cast(AmountInFreeDefinedCurrency3 as fis_plan_bsl) AS PlanAmountInFreeDefinedCrcy3,
  cast(AmountInFreeDefinedCurrency4 as fis_plan_csl) AS PlanAmountInFreeDefinedCrcy4,
  cast(AmountInFreeDefinedCurrency5 as fis_plan_dsl) AS PlanAmountInFreeDefinedCrcy5,
  cast(AmountInFreeDefinedCurrency6 as fis_plan_esl) AS PlanAmountInFreeDefinedCrcy6,
  cast(AmountInFreeDefinedCurrency7 as fis_plan_fsl) AS PlanAmountInFreeDefinedCrcy7,
  cast(AmountInFreeDefinedCurrency8 as fis_plan_gsl) AS PlanAmountInFreeDefinedCrcy8,
  cast(0 as fis_hsl) AS ActualAmountInCompanyCodeCrcy,
  cast(0 as fis_ksl) AS ActualAmountInGlobalCurrency,
  cast(0 as fis_hsl) AS CmtmtAmtInCompanyCodeCurrency,
  cast(0 as fis_ksl) AS CmtmtAmountInGlobalCurrency,
  cast(AmountInCompanyCodeCurrency as fis_hsl) AS PlanAmountInCompanyCodeCrcy,
  cast(AmountInGlobalCurrency as fis_ksl) AS PlanAmountInGlobalCurrency,
  cast('PLN' as costcenterdocumentsource) AS CostCenterDocumentSource,
  AccountAssignmentType,
  cast('' as fis_accasty_n1) AS StstclAccountAssignmentType1,
  cast('' as fis_accasty_n2) AS StstclAccountAssignmentType2,
  cast('' as fis_accasty_n3) AS StstclAccountAssignmentType3,
  cast('' as fins_xkostl_stat) AS IsStatisticalCostCenter,
  cast('' as bwkey) AS ValuationArea,
  cast('' as fco_srvdoc_type) AS ServiceDocumentType,
  Segment,
  SalesOrganization,
  ProfitCenter,
  Plant,
  OrganizationDivision,
  cast('' as farp_koart) AS FinancialAccountType,
  DistributionChannel,
  BusinessArea,
  AssetClass,
  cast('' as fco_srvdoc_id) AS ServiceDocument,
  cast('' as fis_blart) AS AccountingDocumentType,
  SalesDocument,
  OrderID,
  Customer,
  FunctionalArea
FROM I_FinancialPlanningEntryItem AS _FinancialPlanningEntryItem
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_SrvcDocByDocumentType AS _ServiceDocument ON ServiceDocumentType = _ServiceDocument.ServiceDocumentType AND ServiceDocument = _ServiceDocument.ServiceDocument  -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType  -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON PurchasingDocument = _PurchasingDocument.PurchasingDocument  -- association [0..1]
-- UNION ALL with additional select branch(es): I_GLAccountLineItemRawData
;