P_CommitmentKey
Commitments Keys
P_CommitmentKey is a Composite CDS View that provides data about "Commitments Keys" in SAP S/4HANA. Part of development package ODATA_COMMITMENT_REPORTING.
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_StartDate | datum | |
| P_EndDate | datum | |
| P_PlanningCategory | fis_category |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCOMMITMENTKEY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | ||
| SourceLedger | SourceLedger | Source Ledger | ||
| AccountingDocument | AccountingDocument | Journal Entry | ||
| Ledger | Ledger | Ledger | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CostElement | GLAccount | General Ledger | ||
| CostCenter | CostCenter | Cost Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| ValidityEndDate | _CostCenter | ValidityEndDate | ValidTo | |
| ValidityStartDate | _CostCenter | ValidityStartDate | Validity Start Date | |
| FiscalPeriodStartDate | _FiscalYearPeriod | FiscalPeriodStartDate | ||
| SourceLedger | Source Ledger | |||
| AccountingDocument | Journal Entry | |||
| Ledger | Ledger | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CostElement | GLAccount | General Ledger | ||
| CostCenter | CostCenter | Cost Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| ValidityEndDate | _CostCenter | ValidityEndDate | ValidTo | |
| ValidityStartDate | _CostCenter | ValidityStartDate | Validity Start Date | |
| FiscalPeriodStartDate | _FiscalYearPeriod | FiscalPeriodStartDate | ||
| FiscalPeriodEndDate | _FiscalYearPeriod | FiscalPeriodEndDate |
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_CommitmentKey.
-- 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: PCOMMITMENTKEY
-- Parameters: P_StartDate : datum, P_EndDate : datum, P_PlanningCategory : fis_category
CREATE VIEW P_CommitmentKey AS
SELECT
LedgerGLLineItem,
SourceLedger,
AccountingDocument,
Ledger,
CompanyCode,
GLAccount AS CostElement,
CostCenter,
ControllingArea,
FiscalYear,
FiscalPeriod,
FiscalYearVariant,
_CostCenter.ValidityEndDate AS ValidityEndDate,
_CostCenter.ValidityStartDate AS ValidityStartDate,
_FiscalYearPeriod.FiscalPeriodStartDate AS FiscalPeriodStartDate,
_FiscalYearPeriod.FiscalPeriodEndDate AS FiscalPeriodEndDate
;
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