I_CmmdtyPricingFormulaResult
CPE Formula Grouping and General Result
I_CmmdtyPricingFormulaResult is a Basic CDS View that provides data about "CPE Formula Grouping and General Result" in SAP S/4HANA. It reads from 2 data sources (cped_formdoc, P_CmmdtyPricingFormulaResult) and exposes 24 fields with key fields DocItemCommodityPricingUUID, ConditionType. It has 9 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| cped_formdoc | formdoc | from |
| P_CmmdtyPricingFormulaResult | P_CmmdtyPricingFormulaResult | inner |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CmmdtyPrcgCndnRecdMapping | _CmmdtyPrcgCndnRecdMapping | $projection.DocItemCommodityPricingUUID = _CmmdtyPrcgCndnRecdMapping.DocItemCommodityPricingUUID |
| [0..1] | I_CmmdtyPrcgFormulaInputData | _CmmdtyPrcgFormulaInputData | $projection.PrcgConditionFormulaInputUUID = _CmmdtyPrcgFormulaInputData.PrcgConditionFormulaInputUUID |
| [0..*] | I_CommodityPricingTermResult | _CommodityPricingTermResult | $projection.DocItemCommodityPricingUUID = _CommodityPricingTermResult.DocItemCommodityPricingUUID and $projection.ConditionType = _CommodityPricingTermResult.ConditionType |
| [0..*] | I_CmmdtyPrcgTrmChangedResult | _CmmdtyPrcgTrmChangedResult | $projection.PrcgConditionFormulaInputUUID = _CmmdtyPrcgTrmChangedResult.PrcgConditionFormulaInputUUID |
| [0..1] | I_Currency | _PrcgCndnFormulaAmountCurrency | $projection.PrcgCndnFormulaAmountCurrency = _PrcgCndnFormulaAmountCurrency.Currency |
| [0..1] | I_Currency | _PrcgCndnFormulaRateCurrency | $projection.PrcgCndnFormulaRateCurrency = _PrcgCndnFormulaRateCurrency.Currency |
| [0..1] | I_UnitOfMeasure | _PrcgCndnFormulaRateQtyUnit | $projection.PrcgCndnFormulaRateQtyUnit = _PrcgCndnFormulaRateQtyUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _PrcgCndnFmlaCmmdtyQtyUnit | $projection.PrcgCndnFmlaCmmdtyQuantityUnit = _PrcgCndnFmlaCmmdtyQtyUnit.UnitOfMeasure |
| [0..1] | I_LogicalSystem | _OriginSystem | $projection.OriginSystem = _OriginSystem.LogicalSystem |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFORMULARESULT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | CPE Formula Grouping and General Result | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocItemCommodityPricingUUID | cped_formdoc | docitem_guid | GUID |
| KEY | ConditionType | cped_formdoc | cond_type | Demurrage rate |
| PricingConditionFormulaKey | cped_formdoc | formid | Modules | |
| PrcgConditionFormulaInputUUID | cped_formdoc | forminput_guid | Doc. Form. GUID | |
| PricingConditionFormulaAmount | formdoc_rates | PricingConditionFormulaAmount | ||
| PrcgCndnFmlaAmtInDocCurrency | formdoc_rates | PrcgCndnFmlaAmtInDocCurrency | Form. Doc. Crcy | |
| PrcgCndnFormulaAmountCurrency | formdoc_rates | PrcgCndnFormulaAmountCurrency | Doc. Currency | |
| PricingConditionFormulaRate | formdoc_rates | PricingConditionFormulaRate | Formula Rate | |
| PrcgCndnFormulaRateCurrency | formdoc_rates | PrcgCndnFormulaRateCurrency | Formula Currency | |
| PrcgCndnFormulaRateQuantity | formdoc_rates | PrcgCndnFormulaRateQuantity | Formula Price Unit | |
| PrcgCndnFormulaRateQtyUnit | formdoc_rates | PrcgCndnFormulaRateQtyUnit | Formula UoM | |
| PrcgCndnFmlaCommodityQuantity | cped_formdoc | formcommquan | Comm.Qty Item | |
| PrcgCndnFmlaCmmdtyQuantityUnit | cped_formdoc | formcommuom | Commodity UoM | |
| OriginSystem | cped_formdoc | logsys | Source system | |
| PrcgCndnFmlaEvaluationDateTime | ||||
| _CmmdtyPrcgCndnRecdMapping | _CmmdtyPrcgCndnRecdMapping | |||
| _CmmdtyPrcgFormulaInputData | _CmmdtyPrcgFormulaInputData | |||
| _CommodityPricingTermResult | _CommodityPricingTermResult | |||
| _CmmdtyPrcgTrmChangedResult | _CmmdtyPrcgTrmChangedResult | |||
| _PrcgCndnFormulaAmountCurrency | _PrcgCndnFormulaAmountCurrency | |||
| _PrcgCndnFormulaRateCurrency | _PrcgCndnFormulaRateCurrency | |||
| _PrcgCndnFormulaRateQtyUnit | _PrcgCndnFormulaRateQtyUnit | |||
| _PrcgCndnFmlaCmmdtyQtyUnit | _PrcgCndnFmlaCmmdtyQtyUnit | |||
| _OriginSystem | _OriginSystem |
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_CmmdtyPricingFormulaResult.
-- 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: IFORMULARESULT
CREATE VIEW I_CmmdtyPricingFormulaResult AS
SELECT
formdoc.docitem_guid AS DocItemCommodityPricingUUID,
formdoc.cond_type AS ConditionType,
formdoc.formid AS PricingConditionFormulaKey,
formdoc.forminput_guid AS PrcgConditionFormulaInputUUID,
formdoc_rates.PricingConditionFormulaAmount AS PricingConditionFormulaAmount,
formdoc_rates.PrcgCndnFmlaAmtInDocCurrency AS PrcgCndnFmlaAmtInDocCurrency,
formdoc_rates.PrcgCndnFormulaAmountCurrency AS PrcgCndnFormulaAmountCurrency,
formdoc_rates.PricingConditionFormulaRate AS PricingConditionFormulaRate,
formdoc_rates.PrcgCndnFormulaRateCurrency AS PrcgCndnFormulaRateCurrency,
formdoc_rates.PrcgCndnFormulaRateQuantity AS PrcgCndnFormulaRateQuantity,
formdoc_rates.PrcgCndnFormulaRateQtyUnit AS PrcgCndnFormulaRateQtyUnit,
formdoc.formcommquan AS PrcgCndnFmlaCommodityQuantity,
formdoc.formcommuom AS PrcgCndnFmlaCmmdtyQuantityUnit,
formdoc.logsys AS OriginSystem,
cast( formdoc.eval_timestamp as cpet_eval_timestamp_cds preserving type ) AS PrcgCndnFmlaEvaluationDateTime
FROM cped_formdoc AS formdoc
INNER JOIN P_CmmdtyPricingFormulaResult ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CmmdtyPrcgCndnRecdMapping AS _CmmdtyPrcgCndnRecdMapping ON DocItemCommodityPricingUUID = _CmmdtyPrcgCndnRecdMapping.DocItemCommodityPricingUUID -- association [0..*]
LEFT OUTER JOIN I_CmmdtyPrcgFormulaInputData AS _CmmdtyPrcgFormulaInputData ON PrcgConditionFormulaInputUUID = _CmmdtyPrcgFormulaInputData.PrcgConditionFormulaInputUUID -- association [0..1]
LEFT OUTER JOIN I_CommodityPricingTermResult AS _CommodityPricingTermResult ON DocItemCommodityPricingUUID = _CommodityPricingTermResult.DocItemCommodityPricingUUID AND ConditionType = _CommodityPricingTermResult.ConditionType -- association [0..*]
LEFT OUTER JOIN I_CmmdtyPrcgTrmChangedResult AS _CmmdtyPrcgTrmChangedResult ON PrcgConditionFormulaInputUUID = _CmmdtyPrcgTrmChangedResult.PrcgConditionFormulaInputUUID -- association [0..*]
LEFT OUTER JOIN I_Currency AS _PrcgCndnFormulaAmountCurrency ON PrcgCndnFormulaAmountCurrency = _PrcgCndnFormulaAmountCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PrcgCndnFormulaRateCurrency ON PrcgCndnFormulaRateCurrency = _PrcgCndnFormulaRateCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _PrcgCndnFormulaRateQtyUnit ON PrcgCndnFormulaRateQtyUnit = _PrcgCndnFormulaRateQtyUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _PrcgCndnFmlaCmmdtyQtyUnit ON PrcgCndnFmlaCmmdtyQuantityUnit = _PrcgCndnFmlaCmmdtyQtyUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_LogicalSystem AS _OriginSystem ON OriginSystem = _OriginSystem.LogicalSystem -- 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