I_CmmdtyMtmValueExtn
Basic MtM Values - with extension
I_CmmdtyMtmValueExtn is a Composite CDS View (Fact) that provides data about "Basic MtM Values - with extension" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyMtmValue) and exposes 120 fields with key fields PricingKey, Version, PricingDocumentItem, ConditionType, SubConditionType. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyMtmValue | I_CmmdtyMtmValue | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_EvaluationDate | cmm_eval_keydate | |
| P_ExchRateEvaluationDate | cmm_eval_keydate | |
| P_EndOfDaySnapshotFromDate | cmm_dend_cutdate | |
| P_EndOfDaySnapshotToDate | cmm_dend_cutdate | |
| P_MTMDataSelectionType | cmm_vlogp_consumptiontype |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_VersionedLogisticDocument | _Extension | $projection.PricingKey = _Extension.PricingKey and $projection.Version = _Extension.Version and $projection.PricingDocumentItem = _Extension.PricingDocumentItem and $projection.ConditionType = _Extension.ConditionType and $projection.SubConditionType = _Extension.SubConditionType |
| [1..1] | E_Vlogpkonvd | _Extension_Konvd | $projection.PricingKey = _Extension_Konvd.PricingKey and $projection.PricingDocumentItem = _Extension_Konvd.PricingDocumentItem and $projection.ConditionType = _Extension_Konvd.ConditionType and $projection.SubConditionType = _Extension_Konvd.SubConditionType and $projection.VersStockRecordUUID = _Extension_Konvd.VersStockRecordUUID |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICMMDTYMTMVALUEE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Analytics.dataCategory | #FACT | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Basic MtM Values - with extension | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_CMMDTYMTMVALUEEXTN_2 | view |
Fields (120)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PricingKey | PricingKey | Pricing Key | |
| KEY | Version | Version | XML Vers. | |
| KEY | PricingDocumentItem | PricingDocumentItem | Item | |
| KEY | ConditionType | ConditionType | Condition type | |
| KEY | SubConditionType | SubConditionType | ||
| KEY | VersStockRecordUUID | VersStockRecordUUID | ||
| KEY | ValuationDate | ValuationDate | Valuation Date | |
| KEY | EndOfDaySnapshotDate | EndOfDaySnapshotDate | ||
| EndOfDayBusinessEntityKey | EndOfDayBusinessEntityKey | |||
| MTMDataSourceType | MTMDataSourceType | Type of Data Record | ||
| EndOfDaySnapshotDateTimeTo | EndOfDaySnapshotDateTimeTo | |||
| EndOfDaySnapshotDateTimeFrom | EndOfDaySnapshotDateTimeFrom | |||
| BusinessDocumentCompanyCode | ||||
| _CompanyCode | _CompanyCode | |||
| ControllingArea | _CompanyCode | ControllingArea | Controlling Area | |
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| Creditor | Creditor | Supplier | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| Material | Material | Vehicle Model | ||
| PhysicalCommodity | PhysicalCommodity | |||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Batch | Batch | Lot No. | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| n_2464020IncotermsClassification | ||||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| ConditionApplication | ConditionApplication | Application | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| SourceDocument | SourceDocument | Document | ||
| SourceDocumentItem | SourceDocumentItem | |||
| SourceDocumentBusObjType | SourceDocumentBusObjType | |||
| OriginReferenceDocument | OriginReferenceDocument | Root Document | ||
| OriginReferenceDocBusObjType | OriginReferenceDocBusObjType | Root (BOR) Obj. Type | ||
| OriginReferenceDocumentItem | OriginReferenceDocumentItem | Root Document Item | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| ReferenceDocumentItem | ReferenceDocumentItem | Reference item | ||
| ReferenceDocBusObjType | ReferenceDocBusObjType | Pred(BOR) Object Typ | ||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| DeliveryYear | DeliveryYear | |||
| DeliveryMonth | DeliveryMonth | |||
| ExpectedPaymentDate | ExpectedPaymentDate | |||
| ExchRateEvaluationDate | ExchRateEvaluationDate | |||
| DocToStstcCrcyExchRateEvalDate | DocToStstcCrcyExchRateEvalDate | |||
| StatisticsCurrency | StatisticsCurrency | |||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| BusinessArea | BusinessArea | Business Area | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| IsIntercompanyTransfer | IsIntercompanyTransfer | |||
| CommodityPricingEngineConditionTermRate | ||||
| MarketToDocExchRate | MarketToDocExchRate | |||
| MarketToDocFrozenExchRate | MarketToDocFrozenExchRate | |||
| ConditionTermRateCurrency | ConditionTermRateCurrency | |||
| ConditionTermRateQuantity | ConditionTermRateQuantity | |||
| ConditionTermRateQuantityUnit | ConditionTermRateQuantityUnit | |||
| ConditionTermValueInDocCrcy | ConditionTermValueInDocCrcy | |||
| ConditionTermValueInStstcCrcy | ConditionTermValueInStstcCrcy | |||
| DocToStatisticalExchRate | DocToStatisticalExchRate | |||
| ConditionTermValueCurrency | ConditionTermValueCurrency | |||
| QuotationPeriodReferenceDate | QuotationPeriodReferenceDate | |||
| QuotationsCommodityCurveBasisID | ||||
| DerivativeContrSpecification | DerivativeContrSpecification | DCS ID | ||
| MarketIdentifierCode | MarketIdentifierCode | MIC | ||
| MaturityKeyDate | MaturityKeyDate | Maturity Key Date | ||
| DerivativeContractMaturityCode | DerivativeContractMaturityCode | Contr. Maturity Code | ||
| MarketPriceCurrency | MarketPriceCurrency | Market Price Crcy | ||
| OldestQuotationDate | OldestQuotationDate | |||
| SystemMessageNumber | SystemMessageNumber | Message Number | ||
| HasError | HasError | TRUE | ||
| MiscellanousfieldsCommodityQuantity | ||||
| CommodityUnit | CommodityUnit | Order Unit | ||
| CommodityQuantityInTermUnit | CommodityQuantityInTermUnit | |||
| n_2308030MTMConditionGroupCategory | ||||
| MTMConditionGroup | MTMConditionGroup | |||
| MTMCalculationGroup | MTMCalculationGroup | |||
| MTMAdjustmentType | MTMAdjustmentType | |||
| MTMCalcGrpMarketPriceCondition | MTMCalcGrpMarketPriceCondition | |||
| ConditionTermRateIsFixed | ConditionTermRateIsFixed | |||
| ConditionTermExchRateIsFixed | ConditionTermExchRateIsFixed | |||
| ConditionTermRateFixation | ConditionTermRateFixation | |||
| PricingStatus | PricingStatus | |||
| CmmdtyForwardIndexTiming | CmmdtyForwardIndexTiming | |||
| CndnTermRateFixationDate | CndnTermRateFixationDate | |||
| CndnTermRateFixationTime | CndnTermRateFixationTime | |||
| CndnTermExchRateFixationDate | CndnTermExchRateFixationDate | |||
| CndnTermExchRateFixationTime | CndnTermExchRateFixationTime | |||
| ExchRateMaturityDate | ExchRateMaturityDate | |||
| BsMktRefDrvtvContrMaturityCode | BsMktRefDrvtvContrMaturityCode | |||
| BasisMarketRefRate | BasisMarketRefRate | |||
| BasisMarketRefRateCurrency | BasisMarketRefRateCurrency | |||
| BasisMarketRefKeyDate | BasisMarketRefKeyDate | |||
| BasisMarketRefAdjustmentSpread | BasisMarketRefAdjustmentSpread | |||
| ConditionTermFactor | ConditionTermFactor | |||
| CmmdtyPriceExpsrMassUnit | CmmdtyPriceExpsrMassUnit | |||
| CmmdtyPriceExpsrQtyInMassUnit | CmmdtyPriceExpsrQtyInMassUnit | |||
| CmmdtyPriceExpsrVolumeUnit | CmmdtyPriceExpsrVolumeUnit | |||
| CmmdtyPriceExpsrQtyInVolUnit | CmmdtyPriceExpsrQtyInVolUnit | |||
| PricedContractsExposureQty | PricedContractsExposureQty | |||
| UnpricedContrPriceExposureQty | UnpricedContrPriceExposureQty | |||
| TodayPricedContractsExpsrQty | TodayPricedContractsExpsrQty | |||
| PrcdContrExposureQtyInMassUnit | PrcdContrExposureQtyInMassUnit | |||
| UnpricedContrPrcExpsrQtyInMass | UnpricedContrPrcExpsrQtyInMass | |||
| TodayPrcdContrExpsrQtyInMass | TodayPrcdContrExpsrQtyInMass | |||
| PrcdContrExpsrQtyInVolumeUnit | PrcdContrExpsrQtyInVolumeUnit | |||
| UnpricedContrPrcExpsrQtyInVol | UnpricedContrPrcExpsrQtyInVol | |||
| TodayPrcdContrExpsrQtyInVolume | TodayPrcdContrExpsrQtyInVolume | |||
| ContrPriceExposureIsExecuted | ContrPriceExposureIsExecuted | |||
| NmbrOfPrcdQuotationPeriodDays | NmbrOfPrcdQuotationPeriodDays | |||
| NmbrOfUnpricedQtanPeriodDays | NmbrOfUnpricedQtanPeriodDays | |||
| NmbrOfValnDtePrcdQtanPerdDays | NmbrOfValnDtePrcdQtanPerdDays | |||
| PriceSettingMethod | PriceSettingMethod | |||
| PriceSettingMethodStatus | PriceSettingMethodStatus | |||
| ValidToDateTime | ValidToDateTime | Time Stamp | ||
| PricingProcedure | PricingProcedure | Procedure | ||
| PricingConditionTerm | PricingConditionTerm | Term Number | ||
| 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 I_CmmdtyMtmValueExtn.
-- 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: ICMMDTYMTMVALUEE
-- Parameters: P_EvaluationDate : cmm_eval_keydate, P_ExchRateEvaluationDate : cmm_eval_keydate, P_EndOfDaySnapshotFromDate : cmm_dend_cutdate, P_EndOfDaySnapshotToDate : cmm_dend_cutdate, P_MTMDataSelectionType : cmm_vlogp_consumptiontype
CREATE VIEW I_CmmdtyMtmValueExtn AS
SELECT
PricingKey,
Version,
PricingDocumentItem,
ConditionType,
SubConditionType,
VersStockRecordUUID,
ValuationDate,
EndOfDaySnapshotDate,
EndOfDayBusinessEntityKey,
MTMDataSourceType,
EndOfDaySnapshotDateTimeTo,
EndOfDaySnapshotDateTimeFrom,
_CompanyCode.ControllingArea AS ControllingArea,
SalesOrganization,
DistributionChannel,
Division,
Creditor,
SoldToParty,
Material,
PhysicalCommodity,
Plant,
StorageLocation,
Batch,
GoodsMovementType,
IncotermsTransferLocation,
ConditionApplication,
ValidityStartDate,
SourceDocument,
SourceDocumentItem,
SourceDocumentBusObjType,
OriginReferenceDocument,
OriginReferenceDocBusObjType,
OriginReferenceDocumentItem,
ReferenceDocument,
ReferenceDocumentItem,
ReferenceDocBusObjType,
DeliveryDate,
DeliveryYear,
DeliveryMonth,
ExpectedPaymentDate,
ExchRateEvaluationDate,
DocToStstcCrcyExchRateEvalDate,
StatisticsCurrency,
DocumentCurrency,
ProfitCenter,
BusinessArea,
PurchasingOrganization,
MaterialGroup,
IsIntercompanyTransfer,
MarketToDocExchRate,
MarketToDocFrozenExchRate,
ConditionTermRateCurrency,
ConditionTermRateQuantity,
ConditionTermRateQuantityUnit,
ConditionTermValueInDocCrcy,
ConditionTermValueInStstcCrcy,
DocToStatisticalExchRate,
ConditionTermValueCurrency,
QuotationPeriodReferenceDate,
DerivativeContrSpecification,
MarketIdentifierCode,
MaturityKeyDate,
DerivativeContractMaturityCode,
MarketPriceCurrency,
OldestQuotationDate,
SystemMessageNumber,
HasError,
CommodityUnit,
CommodityQuantityInTermUnit,
MTMConditionGroup,
MTMCalculationGroup,
MTMAdjustmentType,
MTMCalcGrpMarketPriceCondition,
ConditionTermRateIsFixed,
ConditionTermExchRateIsFixed,
ConditionTermRateFixation,
PricingStatus,
CmmdtyForwardIndexTiming,
CndnTermRateFixationDate,
CndnTermRateFixationTime,
CndnTermExchRateFixationDate,
CndnTermExchRateFixationTime,
ExchRateMaturityDate,
BsMktRefDrvtvContrMaturityCode,
BasisMarketRefRate,
BasisMarketRefRateCurrency,
BasisMarketRefKeyDate,
BasisMarketRefAdjustmentSpread,
ConditionTermFactor,
CmmdtyPriceExpsrMassUnit,
CmmdtyPriceExpsrQtyInMassUnit,
CmmdtyPriceExpsrVolumeUnit,
CmmdtyPriceExpsrQtyInVolUnit,
PricedContractsExposureQty,
UnpricedContrPriceExposureQty,
TodayPricedContractsExpsrQty,
PrcdContrExposureQtyInMassUnit,
UnpricedContrPrcExpsrQtyInMass,
TodayPrcdContrExpsrQtyInMass,
PrcdContrExpsrQtyInVolumeUnit,
UnpricedContrPrcExpsrQtyInVol,
TodayPrcdContrExpsrQtyInVolume,
ContrPriceExposureIsExecuted,
NmbrOfPrcdQuotationPeriodDays,
NmbrOfUnpricedQtanPeriodDays,
NmbrOfValnDtePrcdQtanPerdDays,
PriceSettingMethod,
PriceSettingMethodStatus,
ValidToDateTime,
PricingProcedure,
PricingConditionTerm,
CmmdtyRootDocExternalNumber,
CmmdtyDocumentExternalNumber
FROM I_CmmdtyMtmValue
LEFT OUTER JOIN E_VersionedLogisticDocument AS _Extension ON PricingKey = _Extension.PricingKey AND Version = _Extension.Version AND PricingDocumentItem = _Extension.PricingDocumentItem AND ConditionType = _Extension.ConditionType AND SubConditionType = _Extension.SubConditionType -- association [1..1]
LEFT OUTER JOIN E_Vlogpkonvd AS _Extension_Konvd ON PricingKey = _Extension_Konvd.PricingKey AND PricingDocumentItem = _Extension_Konvd.PricingDocumentItem AND ConditionType = _Extension_Konvd.ConditionType AND SubConditionType = _Extension_Konvd.SubConditionType AND VersStockRecordUUID = _Extension_Konvd.VersStockRecordUUID -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
;
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