P_CostCtrClassicCmtmtUnion
P_CostCtrClassicCmtmtUnion is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_ControllingCommitmentLineItm, P_CostCenterActualPlan) and exposes 182 fields with key fields FinancialPlanningReqTransSqnc, FinancialPlanningDataPacket, FinancialPlanningEntryItem, LedgerGLLineItem, Ledger. It has 6 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ControllingCommitmentLineItm | _ControllingCommitmentLineItm | from |
| P_CostCenterActualPlan | _CostCenterActualPlan | union_all |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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_SalesDocument | _SalesDocument | $projection.SalesDocument = _SalesDocument.SalesDocument |
| [0..1] | I_Order | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_GLAccountInCompanyCode | _GLAccountInCompanyCode | $projection.CompanyCode = _GLAccountInCompanyCode.CompanyCode and $projection.GLAccount = _GLAccountInCompanyCode.GLAccount |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCSTCTRCMTMTCL | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (182)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FinancialPlanningReqTransSqnc | |||
| KEY | FinancialPlanningDataPacket | Data packet number | ||
| KEY | FinancialPlanningEntryItem | |||
| KEY | LedgerGLLineItem | Journal Entry Item | ||
| KEY | Ledger | 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 | CostElement | General Ledger | |
| KEY | PurchasingDocument | PurchasingDocument | Purchasing Document | |
| KEY | PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | |
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| SourceLedger | Source Ledger | |||
| Supplier | Supplier | |||
| Material | Material | Vehicle Model | ||
| CommittedQuantity | TotalQuantity | |||
| PlannedQuantity | ||||
| Quantity | Value | |||
| UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| PurchasingDocumentType | _PurchasingDocument | PurchasingDocumentType | RFQ Type | |
| PurchasingDocumentCategory | _PurchasingDocument | PurchasingDocumentCategory | Doc. Category | |
| PostingDate | PostingDate | Posting Date for GR | ||
| PlanningCategory | Plan Category | |||
| CompanyCodeCurrency | Local Currency | |||
| GlobalCurrency | GM Billing Element: Global Currency | |||
| FunctionalCurrency | Functional Currency | |||
| FreeDefinedCurrency1 | Freely Defined Currency 1 | |||
| FreeDefinedCurrency2 | Freely Defined Currency 2 | |||
| FreeDefinedCurrency3 | Freely Defined Currency 3 | |||
| FreeDefinedCurrency4 | Freely Defined Currency 4 | |||
| FreeDefinedCurrency5 | Freely Defined Currency 5 | |||
| FreeDefinedCurrency6 | Freely Defined Currency 6 | |||
| FreeDefinedCurrency7 | Freely Defined Currency 7 | |||
| FreeDefinedCurrency8 | Freely Defined Currency 8 | |||
| ActualAmountInFunctionalCrcy | Amount in Functional Currency | |||
| PlanAmountInFunctionalCurrency | ||||
| ActualAmountInFreeDfndCrcy1 | ||||
| ActualAmountInFreeDfndCrcy2 | ||||
| ActualAmountInFreeDfndCrcy3 | ||||
| ActualAmountInFreeDfndCrcy4 | ||||
| ActualAmountInFreeDfndCrcy5 | ||||
| ActualAmountInFreeDfndCrcy6 | ||||
| ActualAmountInFreeDfndCrcy7 | ||||
| ActualAmountInFreeDfndCrcy8 | ||||
| PlanAmountInFreeDefinedCrcy1 | ||||
| PlanAmountInFreeDefinedCrcy2 | ||||
| PlanAmountInFreeDefinedCrcy3 | ||||
| PlanAmountInFreeDefinedCrcy4 | ||||
| PlanAmountInFreeDefinedCrcy5 | ||||
| PlanAmountInFreeDefinedCrcy6 | ||||
| PlanAmountInFreeDefinedCrcy7 | ||||
| PlanAmountInFreeDefinedCrcy8 | ||||
| ActualAmountInCompanyCodeCrcy | ||||
| ActualAmountInGlobalCurrency | ||||
| CmtmtAmtInCompanyCodeCurrency | ||||
| CmtmtAmountInGlobalCurrency | ||||
| PlanAmountInCompanyCodeCrcy | ||||
| PlanAmountInGlobalCurrency | ||||
| CostCenterDocumentSource | ||||
| AccountAssignmentType | Sndr AcctAssgmt Type | |||
| StstclAccountAssignmentType1 | ||||
| StstclAccountAssignmentType2 | ||||
| StstclAccountAssignmentType3 | ||||
| IsStatisticalCostCenter | Cost Center Is Stat. | |||
| ValuationArea | Valuation Area | |||
| ServiceDocumentType | Transaction Type | |||
| Segment | Segment number | |||
| SalesOrganization | Sales Organization | |||
| ProfitCenter | Profit Center | |||
| Plant | Valuation Area | |||
| OrganizationDivision | Org. Division | |||
| FinancialAccountType | Fin. Account Type | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| BusinessArea | Business Area | |||
| AssetClass | Asset Class | |||
| ServiceDocument | Transaction ID | |||
| AccountingDocumentType | Journal Entry Type | |||
| SalesDocument | SD Document | |||
| OrderID | Order ID | |||
| Customer | Sold-to Party | |||
| FunctionalArea | Sendr Fctl Area | |||
| _Supplier | _Supplier | |||
| _ServiceDocument | _ServiceDocument | |||
| _SalesDocument | _SalesDocument | |||
| _Order | _Order | |||
| _GLAccountInCompanyCode | _GLAccountInCompanyCode | |||
| _Customer | _Customer | |||
| KEY | FinancialPlanningDataPacket | FinancialPlanningDataPacket | Data packet number | |
| KEY | FinancialPlanningEntryItem | FinancialPlanningEntryItem | ||
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | Ledger | 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 | |
| KEY | PurchasingDocument | PurchasingDocument | Purchasing Document | |
| KEY | PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | |
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| SourceLedger | SourceLedger | Source Ledger | ||
| Supplier | Supplier | Supplier | ||
| Material | Material | Vehicle Model | ||
| CommittedQuantity | CommittedQuantity | |||
| PlannedQuantity | PlannedQuantity | |||
| Quantity | Quantity | Value | ||
| UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| PurchasingDocumentCategory | 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 | 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 | ActualAmountInFunctionalCrcy | Amount in Functional Currency | ||
| PlanAmountInFunctionalCurrency | PlanAmountInFunctionalCurrency | |||
| ActualAmountInFreeDfndCrcy1 | ActualAmountInFreeDfndCrcy1 | |||
| ActualAmountInFreeDfndCrcy2 | ActualAmountInFreeDfndCrcy2 | |||
| ActualAmountInFreeDfndCrcy3 | ActualAmountInFreeDfndCrcy3 | |||
| ActualAmountInFreeDfndCrcy4 | ActualAmountInFreeDfndCrcy4 | |||
| ActualAmountInFreeDfndCrcy5 | ActualAmountInFreeDfndCrcy5 | |||
| ActualAmountInFreeDfndCrcy6 | ActualAmountInFreeDfndCrcy6 | |||
| ActualAmountInFreeDfndCrcy7 | ActualAmountInFreeDfndCrcy7 | |||
| ActualAmountInFreeDfndCrcy8 | ActualAmountInFreeDfndCrcy8 | |||
| PlanAmountInFreeDefinedCrcy1 | PlanAmountInFreeDefinedCrcy1 | |||
| PlanAmountInFreeDefinedCrcy2 | PlanAmountInFreeDefinedCrcy2 | |||
| PlanAmountInFreeDefinedCrcy3 | PlanAmountInFreeDefinedCrcy3 | |||
| PlanAmountInFreeDefinedCrcy4 | PlanAmountInFreeDefinedCrcy4 | |||
| PlanAmountInFreeDefinedCrcy5 | PlanAmountInFreeDefinedCrcy5 | |||
| PlanAmountInFreeDefinedCrcy6 | PlanAmountInFreeDefinedCrcy6 | |||
| PlanAmountInFreeDefinedCrcy7 | PlanAmountInFreeDefinedCrcy7 | |||
| PlanAmountInFreeDefinedCrcy8 | PlanAmountInFreeDefinedCrcy8 | |||
| ActualAmountInCompanyCodeCrcy | ActualAmountInCompanyCodeCrcy | |||
| ActualAmountInGlobalCurrency | ActualAmountInGlobalCurrency | |||
| CmtmtAmtInCompanyCodeCurrency | CmtmtAmtInCompanyCodeCurrency | |||
| CmtmtAmountInGlobalCurrency | CmtmtAmountInGlobalCurrency | |||
| PlanAmountInCompanyCodeCrcy | PlanAmountInCompanyCodeCrcy | |||
| PlanAmountInGlobalCurrency | PlanAmountInGlobalCurrency | |||
| CostCenterDocumentSource | CostCenterDocumentSource | |||
| AccountAssignmentType | AccountAssignmentType | Sndr AcctAssgmt Type | ||
| StstclAccountAssignmentType1 | StstclAccountAssignmentType1 | |||
| StstclAccountAssignmentType2 | StstclAccountAssignmentType2 | |||
| StstclAccountAssignmentType3 | StstclAccountAssignmentType3 | |||
| IsStatisticalCostCenter | IsStatisticalCostCenter | Cost Center Is Stat. | ||
| 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_CostCtrClassicCmtmtUnion.
-- 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: PCSTCTRCMTMTCL
CREATE VIEW P_CostCtrClassicCmtmtUnion AS
SELECT
cast('00000000000000000000000' as fis_fp_request_tsn) AS FinancialPlanningReqTransSqnc,
cast('000000' as rsdatapid) AS FinancialPlanningDataPacket,
cast(0 as rsarecord) AS FinancialPlanningEntryItem,
cast('' as fis_docln) AS LedgerGLLineItem,
cast('' as fis_rldnr) AS Ledger,
cast('' as fis_belnr) AS AccountingDocument,
ControllingArea,
CompanyCode,
FiscalYear,
CostCenter,
CostElement AS GLAccount,
PurchasingDocument,
PurchasingDocumentItem,
FiscalYearVariant,
FiscalPeriod,
cast('' as fins_ledger_pers) AS SourceLedger,
cast(Supplier as md_supplier preserving type ) AS Supplier,
Material,
TotalQuantity AS CommittedQuantity,
cast(0 as vquan1_12 ) AS PlannedQuantity,
cast(0 as quan1_12) AS Quantity,
UnitOfMeasure,
ChartOfAccounts,
_PurchasingDocument.PurchasingDocumentType AS PurchasingDocumentType,
_PurchasingDocument.PurchasingDocumentCategory AS PurchasingDocumentCategory,
PostingDate,
cast('' as fis_category) AS PlanningCategory,
cast(CompanyCodeCurrency as fis_hwaer preserving type ) AS CompanyCodeCurrency,
cast(ControllingAreaCurrency as fis_rkcur preserving type ) AS GlobalCurrency,
cast('' as fins_currfc) AS FunctionalCurrency,
cast('' as fis_rocur) AS FreeDefinedCurrency1,
cast('' as fis_rvcur) AS FreeDefinedCurrency2,
cast('' as fins_curr3) AS FreeDefinedCurrency3,
cast('' as fins_curr4) AS FreeDefinedCurrency4,
cast('' as fins_curr5) AS FreeDefinedCurrency5,
cast('' as fins_curr6) AS FreeDefinedCurrency6,
cast('' as fis_rfcur) AS FreeDefinedCurrency7,
cast('' as fins_curr8) AS FreeDefinedCurrency8,
cast(0 as fis_vfccur12) AS ActualAmountInFunctionalCrcy,
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_plan_osl) AS PlanAmountInFreeDefinedCrcy1,
cast(0 as fis_plan_vsl) AS PlanAmountInFreeDefinedCrcy2,
cast(0 as fis_plan_bsl) AS PlanAmountInFreeDefinedCrcy3,
cast(0 as fis_plan_csl) AS PlanAmountInFreeDefinedCrcy4,
cast(0 as fis_plan_dsl) AS PlanAmountInFreeDefinedCrcy5,
cast(0 as fis_plan_esl) AS PlanAmountInFreeDefinedCrcy6,
cast(0 as fis_plan_fsl) AS PlanAmountInFreeDefinedCrcy7,
cast(0 as fis_plan_gsl) AS PlanAmountInFreeDefinedCrcy8,
cast(0 as fis_hsl) AS ActualAmountInCompanyCodeCrcy,
cast(0 as fis_ksl) AS ActualAmountInGlobalCurrency,
cast(AmountInCompanyCodeCurrency as fis_hsl) AS CmtmtAmtInCompanyCodeCurrency,
cast(AmountInCtrlgAreaCrcy as fis_ksl) AS CmtmtAmountInGlobalCurrency,
cast(0 as fis_hsl) AS PlanAmountInCompanyCodeCrcy,
cast(0 as fis_ksl) AS PlanAmountInGlobalCurrency,
cast('CMT' as costcenterdocumentsource) AS CostCenterDocumentSource,
cast('KS' as fis_accasty) AS 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,
cast('' as fb_segment) AS Segment,
cast('' as vkorg) AS SalesOrganization,
cast('' as fis_prctr) AS ProfitCenter,
cast('' as werks_d) AS Plant,
cast('' as fis_spart) AS OrganizationDivision,
cast('' as farp_koart) AS FinancialAccountType,
cast('' as vtweg) AS DistributionChannel,
cast('' as fis_rbusa) AS BusinessArea,
cast('' as anlkl) AS AssetClass,
cast('' as fco_srvdoc_id) AS ServiceDocument,
cast('' as fis_blart) AS AccountingDocumentType,
cast('' as vbeln_va) AS SalesDocument,
cast('' as fis_aufnr) AS OrderID,
cast('' as kunnr) AS Customer,
cast('' as fm_farea) AS FunctionalArea
FROM I_ControllingCommitmentLineItm AS _ControllingCommitmentLineItm
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_SalesDocument AS _SalesDocument ON SalesDocument = _SalesDocument.SalesDocument -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID -- association [0..1]
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _GLAccountInCompanyCode ON CompanyCode = _GLAccountInCompanyCode.CompanyCode AND GLAccount = _GLAccountInCompanyCode.GLAccount -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
-- UNION ALL with additional select branch(es): P_CostCenterActualPlan
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA