I_CmmdtyMTMFinValues

DDL: I_CMMDTYMTMFINVALUES SQL: IDRVTVMTMIL Type: view COMPOSITE Package: FTR_COMMODITY_CDS

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)

SourceAliasJoin Type
P_DrvtvMTMBl P_DrvtvMTMBl from

Parameters (4)

NameTypeDefault
P_DisplayView cds_view_uom
P_EvaluationDate cds_evaluation_date
P_EndOfDaySnapshotToDate cds_evaluation_date_comp
P_MTMDataSelectionType cmm_vlogp_consumptiontype

Associations (1)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;