P_CostCenterCommitmentUnion_2
Cost Center Commitment - Private
P_CostCenterCommitmentUnion_2 is a Composite CDS View that provides data about "Cost Center Commitment - Private" in SAP S/4HANA. It reads from 2 data sources (I_FinancialPlanningEntryItem, I_GLAccountLineItemRawData) and exposes 176 fields with key fields FinancialPlanningReqTransSqnc, FinancialPlanningDataPacket, FinancialPlanningEntryItem, LedgerGLLineItem, Ledger. It has 5 associations to related views. Part of development package ODATA_COMMITMENT_REPORTING_V2.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_FinancialPlanningEntryItem | _FinancialPlanningEntryItem | from |
| I_GLAccountLineItemRawData | _GLAccountLineItem | union_all |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | vdm_v_key_date |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 |
| [0..1] | I_CostCenter | _CostCenter | $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter and _CostCenter.ValidityStartDate <= $parameters.P_KeyDate and _CostCenter.ValidityEndDate >= $parameters.P_KeyDate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCSTCTRCMTMT2 | 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 (176)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FinancialPlanningReqTransSqnc | FinancialPlanningReqTransSqnc | Request TSN | |
| KEY | FinancialPlanningDataPacket | FinancialPlanningDataPacket | Data packet number | |
| KEY | FinancialPlanningEntryItem | FinancialPlanningEntryItem | Object GUID | |
| KEY | LedgerGLLineItem | Journal Entry Item | ||
| KEY | Ledger | 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 | GLAccount | General Ledger | |
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| SourceLedger | Source Ledger | |||
| Supplier | Supplier | |||
| Material | Product | Product Sold | ||
| CommittedQuantity | ||||
| PlannedQuantity | ValuationQuantity | Val. quantity | ||
| Quantity | ||||
| 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 | ||
| SourceReferenceDocument | Reference Doc. | |||
| SourceReferenceDocumentItem | Ref. Doc. Item | |||
| 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 | ||||
| CmtmtAmountInFunctionalCrcy | ||||
| ActualAmountInFreeDfndCrcy1 | ||||
| ActualAmountInFreeDfndCrcy2 | ||||
| ActualAmountInFreeDfndCrcy3 | ||||
| ActualAmountInFreeDfndCrcy4 | ||||
| ActualAmountInFreeDfndCrcy5 | ||||
| ActualAmountInFreeDfndCrcy6 | ||||
| ActualAmountInFreeDfndCrcy7 | ||||
| ActualAmountInFreeDfndCrcy8 | ||||
| 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 | ||||
| ActualAmountInGlobalCurrency | ||||
| 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 | Object GUID | ||
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | Ledger | 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 | ||
| SourceLedger | SourceLedger | Source Ledger | ||
| Supplier | Supplier | Supplier | ||
| Material | Product | Product Sold | ||
| PlannedQuantity | Val. quantity | |||
| 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 | |||
| SourceReferenceDocument | SourceReferenceDocument | Reference Doc. | ||
| SourceReferenceDocumentItem | SourceReferenceDocumentItem | Ref. Doc. Item | ||
| 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 | ||
| 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 | |||
| PlanAmountInCompanyCodeCrcy | Local Crcy Amt | |||
| PlanAmountInGlobalCurrency | Amount in Global Currency | |||
| 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_CostCenterCommitmentUnion_2.
-- 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: PCSTCTRCMTMT2
-- Parameters: P_KeyDate : vdm_v_key_date
CREATE VIEW P_CostCenterCommitmentUnion_2 AS
SELECT
FinancialPlanningReqTransSqnc,
FinancialPlanningDataPacket,
FinancialPlanningEntryItem,
cast('' as fis_docln) AS LedgerGLLineItem,
Ledger,
cast('' as fis_belnr) AS AccountingDocument,
ControllingArea,
CompanyCode,
FiscalYear,
CostCenter,
GLAccount,
FiscalYearVariant,
FiscalPeriod,
cast('' as fins_ledger_pers) AS SourceLedger,
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('00000' as fis_ebelp) AS PurchasingDocumentItem,
cast('' as esart) AS PurchasingDocumentType,
cast('' as ebstyp) AS PurchasingDocumentCategory,
PostingDate,
PlanningCategory,
cast('' as fis_src_awref) AS SourceReferenceDocument,
cast('000000' as fis_src_awitem) AS SourceReferenceDocumentItem,
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_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]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter AND _CostCenter.ValidityStartDate <= $parameters.P_KeyDate AND _CostCenter.ValidityEndDate >= $parameters.P_KeyDate -- association [0..1]
-- UNION ALL with additional select branch(es): I_GLAccountLineItemRawData
;
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