P_ControllingCommitmentLineItm
P_ControllingCommitmentLineItm is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ControllingCommitment) and exposes 49 fields with key fields PurchasingDocument, PurchasingDocumentItem, ControllingCommitmentCategory, CostCenter, FiscalYear. It has 20 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ControllingCommitment | I_ControllingCommitment | from |
Associations (20)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CostCenter | _CostCenter | $projection.ControllingArea = _CostCenter.ControllingArea and $projection.ControllingObject = _CostCenter.ObjectInternalID and _CostCenter.ValidityStartDate <= $session.system_date and _CostCenter.ValidityEndDate >= $session.system_date |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_ControllingArea | _ControllingAreaText | $projection.ControllingArea = _ControllingAreaText.ControllingArea |
| [0..1] | I_ControllingValueType | _ControllingValueType | $projection.ControllingValueType = _ControllingValueType.ControllingValueType association[0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.UnitOfMeasure = _BaseUnit.UnitOfMeasure |
| [0..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [0..*] | I_ProductDescription | _ProductText | $projection.Material = _ProductText.Product |
| [0..1] | I_FiscalYearForCompanyCode | _FiscalYear | $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode |
| [0..1] | I_Currency | _TransactionCurrency | $projection.TransactionCurrency = _TransactionCurrency.Currency |
| [0..1] | I_Currency | _ControllingAreaCurrency | $projection.ControllingAreaCurrency = _ControllingAreaCurrency.Currency |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [1] | I_CostElement | _CostElement | _CostElement.ControllingArea = $projection.ControllingArea and _CostElement.CostElement = $projection.CostElement |
| [0..1] | I_PurchaseOrderStatus | _PurchaseOrderStatus | _PurchaseOrderStatus.PurchaseOrder = $projection.PurchasingDocument |
| [0..1] | I_PurchasingDocument | _PurchasingDocument | _PurchasingDocument.PurchasingDocument = $projection.PurchasingDocument |
| [0..1] | I_ReferenceDocumentType | _ReferenceDocumentType | $projection.CommitmentDocumentType = _ReferenceDocumentType.ReferenceDocumentType |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_ChartOfAccounts | _ChartOfAccounts | $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts association[0..1] to I_Material as _Material on $projection.Material = _Material.Material |
| [0..1] | I_PurchasingDocumentItem | _PurchasingDocumentItem | $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem |
| [0..1] | I_FiscalYearPeriodForCmpnyCode | _FiscalPeriod | $projection.FiscalYear = _FiscalPeriod.FiscalYear and $projection.FiscalPeriod = _FiscalPeriod.FiscalPeriod and $projection.CompanyCode = _FiscalPeriod.CompanyCode |
| [0..1] | I_DebitCreditCode | _DebitCreditCode | $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFICOCMTMTITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | PurchasingDocument | Purchasing Document | |
| KEY | PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | |
| KEY | ControllingCommitmentCategory | ControllingCommitmentCategory | ||
| KEY | CostCenter | _CostCenter | CostCenter | Cost Center |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | ControllingValueType | ControllingValueType | Value Type | |
| KEY | FiscalPeriod | FiscalPeriod | Tax period | |
| KEY | CostElement | CostElement | G/L Account | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | ControllingArea | ControllingArea | Controlling Area | |
| KEY | CommitmentDocumentType | CommitmentDocumentType | AAC | |
| KEY | Supplier | Supplier | Supplier | |
| KEY | ValidityStartDate | _CostCenter | ValidityStartDate | Validity Start Date |
| KEY | ValidityEndDate | _CostCenter | ValidityEndDate | ValidTo |
| FiscalYearVariant | _ControllingArea | FiscalYearVariant | FY Variant | |
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| ControllingObject | ControllingObject | Object number | ||
| ChartOfAccounts | _ControllingArea | ChartOfAccounts | Node Class | |
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| FiscalPeriodStartDate | _FiscalPeriod | FiscalPeriodStartDate | ||
| FiscalPeriodEndDate | _FiscalPeriod | FiscalPeriodEndDate | ||
| Material | Material | Vehicle Model | ||
| UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| ControllingAreaCurrency | _ControllingArea | ControllingAreaCurrency | ||
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| TotalQuantity | ||||
| AmountInTransactionCurrency | ||||
| AmountInCtrlgAreaCrcy | ||||
| AmountInCompanyCodeCurrency | ||||
| _CompanyCode | _CompanyCode | |||
| _CostCenter | _CostCenter | |||
| _ControllingArea | _ControllingArea | |||
| _PurchasingDocument | _PurchasingDocument | |||
| _PurchasingDocumentItem | _PurchasingDocumentItem | |||
| _PurchaseOrderStatus | _PurchaseOrderStatus | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _FiscalPeriod | _FiscalPeriod | |||
| _ControllingValueType | _ControllingValueType | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _Supplier | _Supplier | |||
| _ReferenceDocumentType | _ReferenceDocumentType | |||
| _Currency | _CompanyCode | _Currency | ||
| _BaseUnit | _BaseUnit | |||
| _Material | _Material | |||
| _CostElement | _CostElement | |||
| _FiscalYear | _FiscalYear |
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_ControllingCommitmentLineItm.
-- 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: PFICOCMTMTITM
CREATE VIEW P_ControllingCommitmentLineItm AS
SELECT
PurchasingDocument,
PurchasingDocumentItem,
ControllingCommitmentCategory,
_CostCenter.CostCenter AS CostCenter,
FiscalYear,
ControllingValueType,
FiscalPeriod,
CostElement,
CompanyCode,
ControllingArea,
CommitmentDocumentType,
Supplier,
_CostCenter.ValidityStartDate AS ValidityStartDate,
_CostCenter.ValidityEndDate AS ValidityEndDate,
_ControllingArea.FiscalYearVariant AS FiscalYearVariant,
DebitCreditCode,
ControllingObject,
_ControllingArea.ChartOfAccounts AS ChartOfAccounts,
DocumentDate,
PostingDate,
_FiscalPeriod.FiscalPeriodStartDate AS FiscalPeriodStartDate,
_FiscalPeriod.FiscalPeriodEndDate AS FiscalPeriodEndDate,
Material,
UnitOfMeasure,
TransactionCurrency,
_ControllingArea.ControllingAreaCurrency AS ControllingAreaCurrency,
_CompanyCode.Currency AS CompanyCodeCurrency,
sum(TotalQuantity) AS TotalQuantity,
sum(AmountInTransactionCurrency) AS AmountInTransactionCurrency,
sum( AmountInCtrlgAreaCrcy) AS AmountInCtrlgAreaCrcy,
sum(AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
_CompanyCode._Currency AS _Currency
FROM I_ControllingCommitment
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND ControllingObject = _CostCenter.ObjectInternalID AND _CostCenter.ValidityStartDate <= $session.system_date AND _CostCenter.ValidityEndDate >= $session.system_date -- association [0..*]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingAreaText ON ControllingArea = _ControllingAreaText.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_ControllingValueType AS _ControllingValueType ON ControllingValueType = _ControllingValueType.ControllingValueType association[0..1] to I_CompanyCode as _CompanyCode on CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON UnitOfMeasure = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_ProductDescription AS _ProductText ON Material = _ProductText.Product -- association [0..*]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _ControllingAreaCurrency ON ControllingAreaCurrency = _ControllingAreaCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_CostElement AS _CostElement ON _CostElement.ControllingArea = ControllingArea AND _CostElement.CostElement = CostElement -- association [1]
LEFT OUTER JOIN I_PurchaseOrderStatus AS _PurchaseOrderStatus ON _PurchaseOrderStatus.PurchaseOrder = PurchasingDocument -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON _PurchasingDocument.PurchasingDocument = PurchasingDocument -- association [0..1]
LEFT OUTER JOIN I_ReferenceDocumentType AS _ReferenceDocumentType ON CommitmentDocumentType = _ReferenceDocumentType.ReferenceDocumentType -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts association[0..1] to I_Material as _Material on Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument AND PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem -- association [0..1]
LEFT OUTER JOIN I_FiscalYearPeriodForCmpnyCode AS _FiscalPeriod ON FiscalYear = _FiscalPeriod.FiscalYear AND FiscalPeriod = _FiscalPeriod.FiscalPeriod AND CompanyCode = _FiscalPeriod.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditCode ON DebitCreditCode = _DebitCreditCode.DebitCreditCode -- association [0..1]
;
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