I_PrepaymentDocCmmdtyPrcgVal
PPMT Document Commodity Pricing data
I_PrepaymentDocCmmdtyPrcgVal is a Basic CDS View that provides data about "PPMT Document Commodity Pricing data" in SAP S/4HANA. It reads from 2 data sources (cped_knumvtoguid, cped_formdoc) and exposes 30 fields with key fields PrepaymentRefDocCondition, PrepaymentRefDocConditionItem, ConditionType.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| cped_knumvtoguid | ConditionToGUID | from |
| cped_formdoc | FormDocument | inner |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPMGDOCCMDTYPRC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | PPMT Document Commodity Pricing data | view | |
| VDM.lifecycle.status | #DEPRECATED | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrepaymentRefDocCondition | cped_knumvtoguid | knumv | Doc. Condition |
| KEY | PrepaymentRefDocConditionItem | cped_knumvtoguid | kposn | Number |
| KEY | ConditionType | cped_formdoc | cond_type | Demurrage rate |
| DocItemCommodityPricingUUID | cped_knumvtoguid | docitem_guid | GUID | |
| CommodityPricingConditionType | CPExt | cond_type | Demurrage rate | |
| MarketConditionType | TermOut | cond_type | Demurrage rate | |
| PricingCndnTermExtensionGroup | TermOut | extension_group | Extension Group | |
| PricingConditionFormulaKey | cped_formdoc | formid | Modules | |
| ConditionTermExtensionUsage | ||||
| BasisID | ||||
| MaturityKeyDate | TermOut | keydate | Maturity Key Date | |
| datsendasCalculationPeriodEndDate | ||||
| PrcgCndnFmlaCommodityQuantity | cped_formdoc | formcommquan | Comm.Qty Item | |
| PrcgCndnFmlaCmmdtyQuantityUnit | cped_formdoc | formcommuom | Commodity UoM | |
| PrepaymentRefDocFixedPrice | TermGrpOut | termval | Term Value | |
| PrepaymentRefDocFixedPriceCrcy | cped_formdoc | doccurr | Doc. Currency | |
| CalcdPrcgConditionTermQuantity | TermGrpOut | usedquan | Commodity Quantity | |
| PrepaymentDocCmmdtyMktQtyUnit | TermGrpOut | useduom | Calc. Comm. UoM | |
| ACMPrcgCndnTermInputPrice | TermInput | fixtermrate | Fixed Rate | |
| PrcgCndnFmlaFixedRateCurrency | TermInput | fixtermcurr | Currency Fixed Rate | |
| ConditionTermRate | TermOut | termrate | Term Rate | |
| ConditionTermRateCurrency | TermOut | termcurr | Term Currency | |
| PrcgCndnTermCnvrsnFxdExchRate | ||||
| PrcgCndnTermCnvrsnSourceCrcy | TermConvOut | usedcurrfrom | Curr:Conv. from | |
| PrcgCndnTermCnvrsnTargetCrcy | TermConvOut | usedcurrto | Curr.: Conv. to | |
| PricingConditionTermInputUUID | TermGrpOut | terminput_guid | Term Input GUID | |
| PrcgCndnTermFixationOptnStatus | PrcFixDef | prc_fixation_status | Price Fix. Status | |
| CndnTrmFixationOptnNonFixedQty | PrcFixDef | non_fixed_quantity | Qty for Price Fix. | |
| TrmFixationOptnNonFixedQtyUnit | PrcFixDef | non_fixed_qty_uom | Quantity UoM | |
| MTMCalculationGroupBBasis |
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 I_PrepaymentDocCmmdtyPrcgVal.
-- 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: IPPMGDOCCMDTYPRC
CREATE VIEW I_PrepaymentDocCmmdtyPrcgVal AS
SELECT
ConditionToGUID.knumv AS PrepaymentRefDocCondition,
ConditionToGUID.kposn AS PrepaymentRefDocConditionItem,
FormDocument.cond_type AS ConditionType,
ConditionToGUID.docitem_guid AS DocItemCommodityPricingUUID,
CPExt.cond_type AS CommodityPricingConditionType,
TermOut.cond_type AS MarketConditionType,
TermOut.extension_group AS PricingCndnTermExtensionGroup,
FormDocument.formid AS PricingConditionFormulaKey,
coalesce( TermGrpOut.extension_usage, '' ) AS ConditionTermExtensionUsage,
coalesce( TermOut.basis_id, TermGrpOut.basis_id ) AS BasisID,
TermOut.keydate AS MaturityKeyDate,
case when TermOut.keydate is initial then cast( left( PeriodOut.lasttimestamp, 8) as abap.dats ) else cast( '00000000' as abap.dats ) end as CalculationPeriodEndDate AS datsendasCalculationPeriodEndDate,
FormDocument.formcommquan AS PrcgCndnFmlaCommodityQuantity,
FormDocument.formcommuom AS PrcgCndnFmlaCmmdtyQuantityUnit,
TermGrpOut.termval AS PrepaymentRefDocFixedPrice,
FormDocument.doccurr AS PrepaymentRefDocFixedPriceCrcy,
TermGrpOut.usedquan AS CalcdPrcgConditionTermQuantity,
TermGrpOut.useduom AS PrepaymentDocCmmdtyMktQtyUnit,
TermInput.fixtermrate AS ACMPrcgCndnTermInputPrice,
TermInput.fixtermcurr AS PrcgCndnFmlaFixedRateCurrency,
TermOut.termrate AS ConditionTermRate,
TermOut.termcurr AS ConditionTermRateCurrency,
coalesce(TermConvOut.usedexchrate, 1) AS PrcgCndnTermCnvrsnFxdExchRate,
TermConvOut.usedcurrfrom AS PrcgCndnTermCnvrsnSourceCrcy,
TermConvOut.usedcurrto AS PrcgCndnTermCnvrsnTargetCrcy,
TermGrpOut.terminput_guid AS PricingConditionTermInputUUID,
PrcFixDef.prc_fixation_status AS PrcgCndnTermFixationOptnStatus,
PrcFixDef.non_fixed_quantity AS CndnTrmFixationOptnNonFixedQty,
PrcFixDef.non_fixed_qty_uom AS TrmFixationOptnNonFixedQtyUnit
FROM cped_knumvtoguid AS ConditionToGUID
INNER JOIN cped_formdoc AS FormDocument ON /* join condition not captured in parsed metadata */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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