P_CmmdtyBegPosPnLValue_Prep
PnL Beginning Position Preprocessing
P_CmmdtyBegPosPnLValue_Prep is a Composite CDS View that provides data about "PnL Beginning Position Preprocessing" in SAP S/4HANA. It reads from 1 data source (P_CMM_CPE_TERM_VALUE) and exposes 27 fields with key fields mandt, PricingKey, PricingDocumentItem. Part of development package LOG_CMM_TPL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CMM_CPE_TERM_VALUE | P_CMM_CPE_TERM_VALUE | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_EvaluationDate | cmm_eval_keydate | |
| P_ExchRateEvaluationDate | cmm_eval_keydate | |
| P_EndOfDaySnapshotFromDate | cmm_dend_cutdate | |
| P_EndOfDaySnapshotToDate | cmm_dend_cutdate |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PCMMPNLBPPREP | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | mandt | mandt | Editing Client | |
| KEY | PricingKey | PricingKey | Pricing Key | |
| KEY | PricingDocumentItem | PricingDocumentItem | Item | |
| ConditionTermRateFixation | ConditionTermRateFixation | |||
| SourceDocumentItem | SourceDocumentItem | |||
| VersStockRecordUUID | VersStockRecordUUID | |||
| ConditionTermRateIsFixed | ConditionTermRateIsFixed | |||
| MTMAdjustmentType | MTMAdjustmentType | |||
| CommodityUnit | CommodityUnit | Order Unit | ||
| ConditionTermRateQuantityUnit | ConditionTermRateQuantityUnit | |||
| datsasComparativeEvaluationDate | ||||
| datsasQuotationPeriodReferenceDate | ||||
| datsasComparQtanPeriodReferenceDate | ||||
| datsasEvaluationDate | ||||
| CmmdtyPriceExpsrMassUnit | CmmdtyPriceExpsrMassUnit | |||
| CmmdtyPriceExpsrQtyInMassUnit | CmmdtyPriceExpsrQtyInMassUnit | |||
| CmmdtyPriceExpsrVolumeUnit | CmmdtyPriceExpsrVolumeUnit | |||
| CmmdtyPriceExpsrQtyInVolUnit | CmmdtyPriceExpsrQtyInVolUnit | |||
| SourceDocument | SourceDocument | Document | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| PhysicalCommodity | PhysicalCommodity | |||
| Plant | Plant | Valuation Area | ||
| CmmdtyRootDocExternalNumber | CmmdtyRootDocExternalNumber | |||
| CmmdtyDocumentExternalNumber | CmmdtyDocumentExternalNumber |
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_CmmdtyBegPosPnLValue_Prep.
-- 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: PCMMPNLBPPREP
-- Parameters: P_EvaluationDate : cmm_eval_keydate, P_ExchRateEvaluationDate : cmm_eval_keydate, P_EndOfDaySnapshotFromDate : cmm_dend_cutdate, P_EndOfDaySnapshotToDate : cmm_dend_cutdate
CREATE VIEW P_CmmdtyBegPosPnLValue_Prep AS
SELECT
mandt,
PricingKey,
PricingDocumentItem,
ConditionTermRateFixation,
SourceDocumentItem,
VersStockRecordUUID,
ConditionTermRateIsFixed,
MTMAdjustmentType,
CommodityUnit,
ConditionTermRateQuantityUnit,
cast ( case when (pnldatatype = 'MP0' or pnldatatype = 'CP0') then EndOfDaySnapshotDate else '19000101' end as abap.dats ) as ComparativeEvaluationDate AS datsasComparativeEvaluationDate,
cast ( case when (pnldatatype = 'MP1' or pnldatatype = 'CP1') then QuotationPeriodReferenceDate else '19000101' end as abap.dats ) as QuotationPeriodReferenceDate AS datsasQuotationPeriodReferenceDate,
cast ( case when (pnldatatype = 'MP0' or pnldatatype = 'CP0') then QuotationPeriodReferenceDate else '19000101' end as abap.dats ) as ComparQtanPeriodReferenceDate AS datsasComparQtanPeriodReferenceDate,
cast ( case when (pnldatatype = 'MP1' or pnldatatype = 'CP1') then EndOfDaySnapshotDate else '19000101' end as abap.dats ) as EvaluationDate AS datsasEvaluationDate,
CmmdtyPriceExpsrMassUnit,
CmmdtyPriceExpsrQtyInMassUnit,
CmmdtyPriceExpsrVolumeUnit,
CmmdtyPriceExpsrQtyInVolUnit,
SourceDocument,
CompanyCode,
ProfitCenter,
Material,
MaterialGroup,
PhysicalCommodity,
Plant,
CmmdtyRootDocExternalNumber,
CmmdtyDocumentExternalNumber
FROM P_CMM_CPE_TERM_VALUE
;
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