I_PurHubCommodityFormulaNew
Purchase hub commodity formula sCPE
I_PurHubCommodityFormulaNew is a Composite CDS View that provides data about "Purchase hub commodity formula sCPE" in SAP S/4HANA. It reads from 2 data sources (I_CmmdtyPrcgCndnRecdMapping, I_CmmdtyPrcgConditionFormula) and exposes 30 fields with key fields ConditionRecord, ConditionSequentialNumberShort. It has 10 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyPrcgCndnRecdMapping | CmmdtyPrcgCndnRecdMapping | inner |
| I_CmmdtyPrcgConditionFormula | formula | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurgPrcgCndnType | _PurgPrcgCndnType | _PurgPrcgCndnType.ConditionApplication = 'M' and _PurgPrcgCndnType.ConditionType = $projection.ConditionType |
| [0..*] | I_CommodityCodeCndnMapping | _CommodityCodeMapping | _CommodityCodeMapping.ConditionType = $projection.ConditionType |
| [0..1] | I_PurCommodityConditionMapping | _CommodityCndnMapping | _CommodityCndnMapping.ConditionType = $projection.ConditionType |
| [1..*] | I_CommodityPricingFormulaText | _CommodityPricingFormulaText | _CommodityPricingFormulaText.OriginSystem = $projection.OriginSystem and _CommodityPricingFormulaText.PricingConditionFormulaKey = $projection.PricingConditionFormulaKey and _CommodityPricingFormulaText.ConditionType = $projection.ConditionType |
| [1..*] | I_CommodityPricingRoutineText | _CmmdtyPricingCombRoutineText | _CmmdtyPricingCombRoutineText.OriginSystem = $projection.OriginSystem and _CmmdtyPricingCombRoutineText.PricingConditionModule = $projection.PrcgCndnFmlaEvaluationModule and _CmmdtyPricingCombRoutineText.PricingConditionSubModule = $projection.PrcgCndnFmlaCombnRoutineSubMdl and _CmmdtyPricingCombRoutineText.PricingConditionRoutine = $projection.PrcgCndnFmlaCombinationRoutine |
| [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 (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Purchase hub commodity formula sCPE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConditionRecord | I_CmmdtyPrcgCndnRecdMapping | ConditionRecord | Cond.Record No. |
| KEY | ConditionSequentialNumberShort | I_CmmdtyPrcgCndnRecdMapping | ConditionSequentialNumber | SequNo of Cond. |
| DocItemCommodityPricingUUID | I_CmmdtyPrcgConditionFormula | DocItemCommodityPricingUUID | GUID | |
| ConditionType | I_CmmdtyPrcgConditionFormula | ConditionType | Condition type | |
| PricingConditionFormulaKey | I_CmmdtyPrcgConditionFormula | PricingConditionFormulaKey | Formula Key | |
| PrcgConditionFormulaInputUUID | I_CmmdtyPrcgConditionFormula | PrcgConditionFormulaInputUUID | Doc. Form. GUID | |
| PrcgCndnFmlaAmtInDocCurrency | I_CmmdtyPrcgConditionFormula | PrcgCndnFmlaAmtInDocCurrency | Form. Doc. Crcy | |
| PrcgCndnFormulaAmountCurrency | I_CmmdtyPrcgConditionFormula | PrcgCndnFormulaAmountCurrency | Doc. Currency | |
| PricingConditionFormulaRate | I_CmmdtyPrcgConditionFormula | PricingConditionFormulaRate | Formula Rate | |
| PrcgCndnFormulaRateCurrency | I_CmmdtyPrcgConditionFormula | PrcgCndnFormulaRateCurrency | Formula Currency | |
| PrcgCndnFormulaRateQuantity | I_CmmdtyPrcgConditionFormula | PrcgCndnFormulaRateQuantity | Formula Price Unit | |
| PrcgCndnFormulaRateQtyUnit | I_CmmdtyPrcgConditionFormula | PrcgCndnFormulaRateQtyUnit | Formula UoM | |
| PrcgCndnFmlaCommodityQuantity | I_CmmdtyPrcgConditionFormula | PrcgCndnFmlaCommodityQuantity | Comm.Qty Item | |
| PrcgCndnFmlaCmmdtyQuantityUnit | I_CmmdtyPrcgConditionFormula | PrcgCndnFmlaCmmdtyQuantityUnit | Commodity UoM | |
| PrcgCndnFmlaEvaluationDateTime | I_CmmdtyPrcgConditionFormula | PrcgCndnFmlaEvaluationDateTime | Eval. Date and Time | |
| PrcgCndnFmlaCombinationRoutine | I_CmmdtyPrcgConditionFormula | PrcgCndnFmlaCombinationRoutine | Combination Routine | |
| PrcgCndnFmlaEvaluationModule | ||||
| PrcgCndnFmlaCombnRoutineSubMdl | ||||
| OriginSystem | ||||
| PrcgCndnFmlaValdtyStrtDateTime | I_CmmdtyPrcgConditionFormula | PrcgCndnFmlaEvaluationDateTime | Eval. Date and Time | |
| _CommodityPricingFormulaText | _CommodityPricingFormulaText | |||
| _CmmdtyPricingCombRoutineText | _CmmdtyPricingCombRoutineText | |||
| _PurgPrcgCndnType | _PurgPrcgCndnType | |||
| _CommodityCodeMapping | _CommodityCodeMapping | |||
| _CommodityCndnMapping | _CommodityCndnMapping | |||
| _OriginSystem | _OriginSystem | |||
| _PrcgCndnFormulaAmountCurrency | _PrcgCndnFormulaAmountCurrency | |||
| _PrcgCndnFormulaRateCurrency | _PrcgCndnFormulaRateCurrency | |||
| _PrcgCndnFormulaRateQtyUnit | _PrcgCndnFormulaRateQtyUnit | |||
| _PrcgCndnFmlaCmmdtyQtyUnit | _PrcgCndnFmlaCmmdtyQtyUnit |
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_PurHubCommodityFormulaNew.
-- 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.
CREATE VIEW I_PurHubCommodityFormulaNew AS
SELECT
CmmdtyPrcgCndnRecdMapping.ConditionRecord AS ConditionRecord,
CmmdtyPrcgCndnRecdMapping.ConditionSequentialNumber AS ConditionSequentialNumberShort,
formula.DocItemCommodityPricingUUID AS DocItemCommodityPricingUUID,
formula.ConditionType AS ConditionType,
formula.PricingConditionFormulaKey AS PricingConditionFormulaKey,
formula.PrcgConditionFormulaInputUUID AS PrcgConditionFormulaInputUUID,
formula.PrcgCndnFmlaAmtInDocCurrency AS PrcgCndnFmlaAmtInDocCurrency,
formula.PrcgCndnFormulaAmountCurrency AS PrcgCndnFormulaAmountCurrency,
formula.PricingConditionFormulaRate AS PricingConditionFormulaRate,
formula.PrcgCndnFormulaRateCurrency AS PrcgCndnFormulaRateCurrency,
formula.PrcgCndnFormulaRateQuantity AS PrcgCndnFormulaRateQuantity,
formula.PrcgCndnFormulaRateQtyUnit AS PrcgCndnFormulaRateQtyUnit,
formula.PrcgCndnFmlaCommodityQuantity AS PrcgCndnFmlaCommodityQuantity,
formula.PrcgCndnFmlaCmmdtyQuantityUnit AS PrcgCndnFmlaCmmdtyQuantityUnit,
formula.PrcgCndnFmlaEvaluationDateTime AS PrcgCndnFmlaEvaluationDateTime,
formula.PrcgCndnFmlaCombinationRoutine AS PrcgCndnFmlaCombinationRoutine,
cast ('FE' as cpet_module preserving type ) AS PrcgCndnFmlaEvaluationModule,
cast ('04' as cpet_log_submodule) AS PrcgCndnFmlaCombnRoutineSubMdl,
cast ('' as cpet_formlogsys) AS OriginSystem,
formula.PrcgCndnFmlaEvaluationDateTime AS PrcgCndnFmlaValdtyStrtDateTime
FROM I_CmmdtyPrcgConditionFormula AS formula
INNER JOIN I_CmmdtyPrcgCndnRecdMapping AS CmmdtyPrcgCndnRecdMapping ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurgPrcgCndnType AS _PurgPrcgCndnType ON _PurgPrcgCndnType.ConditionApplication = 'M' AND _PurgPrcgCndnType.ConditionType = ConditionType -- association [1..1]
LEFT OUTER JOIN I_CommodityCodeCndnMapping AS _CommodityCodeMapping ON _CommodityCodeMapping.ConditionType = ConditionType -- association [0..*]
LEFT OUTER JOIN I_PurCommodityConditionMapping AS _CommodityCndnMapping ON _CommodityCndnMapping.ConditionType = ConditionType -- association [0..1]
LEFT OUTER JOIN I_CommodityPricingFormulaText AS _CommodityPricingFormulaText ON _CommodityPricingFormulaText.OriginSystem = OriginSystem AND _CommodityPricingFormulaText.PricingConditionFormulaKey = PricingConditionFormulaKey AND _CommodityPricingFormulaText.ConditionType = ConditionType -- association [1..*]
LEFT OUTER JOIN I_CommodityPricingRoutineText AS _CmmdtyPricingCombRoutineText ON _CmmdtyPricingCombRoutineText.OriginSystem = OriginSystem AND _CmmdtyPricingCombRoutineText.PricingConditionModule = PrcgCndnFmlaEvaluationModule AND _CmmdtyPricingCombRoutineText.PricingConditionSubModule = PrcgCndnFmlaCombnRoutineSubMdl AND _CmmdtyPricingCombRoutineText.PricingConditionRoutine = PrcgCndnFmlaCombinationRoutine -- association [1..*]
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