I_CmmdtyMTMFinValues
Derivative MTM Interface Layer
I_CmmdtyMTMFinValues is a Composite CDS View that provides data about "Derivative MTM Interface Layer" in SAP S/4HANA. It reads from 1 data source (P_DrvtvMTMBl) and exposes 66 fields. It has 1 association to related views. Part of development package FTR_COMMODITY_CDS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_DrvtvMTMBl | P_DrvtvMTMBl | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_DisplayView | cds_view_uom | |
| P_EvaluationDate | cds_evaluation_date | |
| P_EndOfDaySnapshotToDate | cds_evaluation_date_comp | |
| P_MTMDataSelectionType | cmm_vlogp_consumptiontype |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_FinancialInstrCharacteristic | _Extension | $projection.CompanyCode = _Extension.CompanyCode and $projection.CommodityPriceExposure = _Extension.CommodityPriceExposure and $projection.CommodityExposureCategory = _Extension.CommodityExposureCategory and $projection.CommodityPriceExposureVersion = _Extension.CommodityPriceExposureVersion and $projection.CommodityPriceSubExposure = _Extension.CommodityPriceSubExposure |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IDRVTVMTMIL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Derivative MTM Interface Layer | view |
Fields (66)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CommodityPriceExposure | CommodityPriceExposure | Exposure ID | ||
| CommodityExposureCategory | CommodityExposureCategory | |||
| CommodityPriceExposureVersion | CommodityPriceExposureVersion | Exposure Version | ||
| CommodityPriceSubExposure | CommodityPriceSubExposure | |||
| ValidityStartDateTime | ValidityStartDateTime | Valid From Timestamp | ||
| ValidityEndDateTime | ValidityEndDateTime | Valid To Timestamp | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityStartTime | ValidityStartTime | Valid From Time | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ValidityEndTime | ValidityEndTime | Valid To Time | ||
| MaximumVersion | MaximumVersion | Highest Version | ||
| RiskAnalyzerVersionUUID | RiskAnalyzerVersionUUID | Version GUID | ||
| ExposureDueDate | ExposureDueDate | |||
| ReportingDate | ReportingDate | |||
| Commodity | Commodity | Commodity Code | ||
| CashFlowDirection | CashFlowDirection | |||
| TreasuryPositionLongShortCode | TreasuryPositionLongShortCode | |||
| DerivativeContrSpecification | DerivativeContrSpecification | DCS ID | ||
| MarketIdentifierCode | MarketIdentifierCode | MIC | ||
| TimeToMaturity | TimeToMaturity | Time to Maturity | ||
| CmmdtyForwardIndexTiming | CmmdtyForwardIndexTiming | |||
| MaturityKeyDate | MaturityKeyDate | Maturity Key Date | ||
| DerivativeContractMaturityCode | DerivativeContractMaturityCode | Contr. Maturity Code | ||
| FinancialInstrProductCategory | FinancialInstrProductCategory | |||
| FinancialAssetsMgmtProductType | FinancialAssetsMgmtProductType | |||
| FinInstrTransactionCategory | FinInstrTransactionCategory | |||
| FinancialInstrumentProductType | FinancialInstrumentProductType | |||
| FinancialInstrActivityCategory | FinancialInstrActivityCategory | |||
| FinancialObject | FinancialObject | |||
| PnLEventType | PnLEventType | |||
| TermStartDate | TermStartDate | |||
| TermEndDate | TermEndDate | |||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| NumberOfCommodityContracts | NumberOfCommodityContracts | |||
| CommodityPriceExposureQuantity | CommodityPriceExposureQuantity | |||
| CommodityPriceExposureUnit | CommodityPriceExposureUnit | |||
| TreasuryPositionAccount | TreasuryPositionAccount | |||
| DerivativeContract | DerivativeContract | |||
| OptionStrikePrice | OptionStrikePrice | |||
| OptionStrikeCurrency | OptionStrikeCurrency | |||
| OptionPutCallCode | OptionPutCallCode | |||
| OptionExerciseType | OptionExerciseType | |||
| EvaluationDate | EvaluationDate | |||
| MTMDataSelectionType | MTMDataSelectionType | |||
| FinInstrExternalReference | FinInstrExternalReference | |||
| DisplayView | DisplayView | |||
| HasError | HasError | TRUE | ||
| HasErrorDescription | HasErrorDescription | |||
| SystemMessageNumber | SystemMessageNumber | Message Number | ||
| ExternalKeyFigureValue | ExternalKeyFigureValue | |||
| OptionDeltaFactorKeyFigure | OptionDeltaFactorKeyFigure | |||
| OptionDeltaFactor | OptionDeltaFactor | |||
| RiskAnalyzerKeyFigureName | RiskAnalyzerKeyFigureName | |||
| RiskAnalyzerKeyFigInQtanCrcy | ||||
| QuotationCurrency | QuotationCurrency | |||
| RiskAnalyzerKeyFigInPaytCrcy | ||||
| PaymentCurrency | PaymentCurrency | Payment Currency | ||
| RiskAnalyzerKeyFigInStstcCrcy | ||||
| StatisticsCurrency | StatisticsCurrency | |||
| _CompanyCode | _CompanyCode | |||
| _DerivativeContrSpecification | _DerivativeContrSpecification | |||
| _FinAssetsMgmtProductType | _FinAssetsMgmtProductType | |||
| _MarketIdentifierCode | _MarketIdentifierCode | |||
| _PhysicalCommodity | _PhysicalCommodity | |||
| _UnitOfMeasure | _UnitOfMeasure |
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_CmmdtyMTMFinValues.
-- 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: IDRVTVMTMIL
-- Parameters: P_DisplayView : cds_view_uom, P_EvaluationDate : cds_evaluation_date, P_EndOfDaySnapshotToDate : cds_evaluation_date_comp, P_MTMDataSelectionType : cmm_vlogp_consumptiontype
CREATE VIEW I_CmmdtyMTMFinValues AS
SELECT
CompanyCode,
CommodityPriceExposure,
CommodityExposureCategory,
CommodityPriceExposureVersion,
CommodityPriceSubExposure,
ValidityStartDateTime,
ValidityEndDateTime,
ValidityStartDate,
ValidityStartTime,
ValidityEndDate,
ValidityEndTime,
MaximumVersion,
RiskAnalyzerVersionUUID,
ExposureDueDate,
ReportingDate,
Commodity,
CashFlowDirection,
TreasuryPositionLongShortCode,
DerivativeContrSpecification,
MarketIdentifierCode,
TimeToMaturity,
CmmdtyForwardIndexTiming,
MaturityKeyDate,
DerivativeContractMaturityCode,
FinancialInstrProductCategory,
FinancialAssetsMgmtProductType,
FinInstrTransactionCategory,
FinancialInstrumentProductType,
FinancialInstrActivityCategory,
FinancialObject,
PnLEventType,
TermStartDate,
TermEndDate,
DeliveryDate,
NumberOfCommodityContracts,
CommodityPriceExposureQuantity,
CommodityPriceExposureUnit,
TreasuryPositionAccount,
DerivativeContract,
OptionStrikePrice,
OptionStrikeCurrency,
OptionPutCallCode,
OptionExerciseType,
EvaluationDate,
MTMDataSelectionType,
FinInstrExternalReference,
DisplayView,
HasError,
HasErrorDescription,
SystemMessageNumber,
ExternalKeyFigureValue,
OptionDeltaFactorKeyFigure,
OptionDeltaFactor,
RiskAnalyzerKeyFigureName,
cast ( RiskAnalyzerKeyFigInQtanCrcy as cds_quotation_currency_value ) AS RiskAnalyzerKeyFigInQtanCrcy,
QuotationCurrency,
cast ( RiskAnalyzerKeyFigInPaytCrcy as cds_payment_currency_value ) AS RiskAnalyzerKeyFigInPaytCrcy,
PaymentCurrency,
cast ( RiskAnalyzerKeyFigInStstcCrcy as cds_statistics_currency_value ) AS RiskAnalyzerKeyFigInStstcCrcy,
StatisticsCurrency
FROM P_DrvtvMTMBl
LEFT OUTER JOIN E_FinancialInstrCharacteristic AS _Extension ON CompanyCode = _Extension.CompanyCode AND CommodityPriceExposure = _Extension.CommodityPriceExposure AND CommodityExposureCategory = _Extension.CommodityExposureCategory AND CommodityPriceExposureVersion = _Extension.CommodityPriceExposureVersion AND CommodityPriceSubExposure = _Extension.CommodityPriceSubExposure -- association [1..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