C_CmmdtyMTMCurrentDateQry_2

DDL: C_CMMDTYMTMCURRENTDATEQRY_2 SQL: CMTMPFQRY2 Type: view CONSUMPTION

MtM Current Values Query

C_CmmdtyMTMCurrentDateQry_2 is a Consumption CDS View that provides data about "MtM Current Values Query" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyMTMLogFinValCube_2) and exposes 121 fields with key fields LogisticsDocumentVersion, PricingDocumentItem, CommodityPriceExposure, CommodityExposureCategory, CommodityPriceSubExposure.

Data Sources (1)

SourceAliasJoin Type
I_CmmdtyMTMLogFinValCube_2 I_CmmdtyMTMLogFinValCube_2 from

Parameters (13)

NameTypeDefault
P_EndOfDaySnapshotFromDate cds_evaluation_date
P_DisplayUnitOfMeasure cds_posrep_view_uom
P_MinEndOfDayFromDateTime cmm_min_eod_from_datetime
P_MaxEndOfDayToDateTime cmm_max_eod_to_datetime
P_MinEODaySnapshotDate cmm_min_eod_snapshot_date
P_MinPriceQuotationDate cmm_min_price_quotation_date
P_MaxPriceQuotationDate cmm_max_price_quotation_date
P_MinSubstnPrcQtanDate cmm_min_sub_price_quote_date
P_MaxSubstnPrcQtanDate cmm_max_sub_price_quote_date
P_MinExchRateMttyDate cmm_min_ex_rate_maturity_date
P_MaxExchRateMttyDate cmm_max_ex_rate_maturity_date
P_MinFwdQuotationDate cmm_min_fwd_quotation_date
P_MaxFwdQuotationDate cmm_max_fwd_quotation_date

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CMTMPFQRY2 view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AbapCatalog.compiler.compareFilter true view
Analytics.query true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label MtM Current Values Query view

Fields (121)

KeyFieldSource TableSource FieldDescription
resultElementMinimumEndOfDayFromDateTime
resultElementMaximumEndOfDayToDateTime
resultElementMinimumEndOfDaySnapshotDate
resultElementMinimumPriceQuotationDate
resultElementMaximumPriceQuotationDate
resultElementMinSubstnPriceQuotationDate
resultElementMaxSubstnPriceQuotationDate
resultElementMinExchangeRateMaturityDate
resultElementMaxExchangeRateMaturityDate
resultElementMinimumForwardQuotationDate
resultElementMaximumForwardQuotationDate
KEY LogisticsDocumentVersion LogisticsDocumentVersion
KEY PricingDocumentItem PricingDocumentItem Item
keyVersStockRecordUUID
KEY CommodityPriceExposure CommodityPriceExposure Exposure ID
KEY CommodityExposureCategory CommodityExposureCategory
KEY CommodityPriceSubExposure CommodityPriceSubExposure
TotalMtMGainLossCompanyCode
ProfitCenter ProfitCenter Profit Center
Plant Plant Valuation Area
PhysicalCommodity PhysicalCommodity
Material Material Vehicle Model
OriginReferenceDocument OriginReferenceDocument Root Document
OrignRefDocumentShortNumber OrignRefDocumentShortNumber
SourceDocumentItem SourceDocumentItem
SourceDocumentBusObjType SourceDocumentBusObjType
EndOfDaySnapshotDate EndOfDaySnapshotDate
ValidityStartDate ValidityStartDate Validity Start Date
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
ConditionApplication ConditionApplication Application
StatisticsCurrency StatisticsCurrency
MTMCalculationGroup MTMCalculationGroup
DerivativeContractMaturityCode DerivativeContractMaturityCode Contr. Maturity Code
MaturityKeyDate MaturityKeyDate Maturity Key Date
BasisID BasisID Basis ID
DerivativeContrSpecification DerivativeContrSpecification DCS ID
MarketIdentifierCode MarketIdentifierCode MIC
PricingStatus PricingStatus
MTMAdjustmentType MTMAdjustmentType
ConditionTermRateFixation ConditionTermRateFixation
QuotationPeriodReferenceDate QuotationPeriodReferenceDate
ConditionType ConditionType Condition type
SubConditionType SubConditionType
ConditionTermValueInStstcCrcy ConditionTermValueInStstcCrcy
DocumentCurrency DocumentCurrency Document Currency
ConditionTermValueInDocCrcy ConditionTermValueInDocCrcy
ConditionTermRate ConditionTermRate
MarketToDocExchRate MarketToDocExchRate
ConditionTermRateCurrency ConditionTermRateCurrency
DocToStatisticalExchRate DocToStatisticalExchRate
CommodityQuantity CommodityQuantity Commodity Quantity
CommodityQuantityInTermUnit CommodityQuantityInTermUnit
CommodityUnit CommodityUnit Order Unit
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
Creditor Creditor Supplier
SoldToParty SoldToParty Sold-to Party
StorageLocation StorageLocation StorageLocation
Batch Batch Lot No.
GoodsMovementType GoodsMovementType Movement Type
ReferenceDocumentLongNumber ReferenceDocumentLongNumber
ReferenceDocumentItem ReferenceDocumentItem Reference item
ReferenceDocBusObjType ReferenceDocBusObjType Pred(BOR) Object Typ
ExpectedPaymentDate ExpectedPaymentDate
ExchRateEvaluationDate ExchRateEvaluationDate
DocToStstcCrcyExchRateEvalDate DocToStstcCrcyExchRateEvalDate
BusinessArea BusinessArea Business Area
PurchasingOrganization PurchasingOrganization Purchasing Organization
MaterialGroup MaterialGroup Product Group
IsIntercompanyTransfer IsIntercompanyTransfer
ConditionTermRateQuantity ConditionTermRateQuantity
ConditionTermRateQuantityUnit ConditionTermRateQuantityUnit
ConditionTermValueCurrency ConditionTermValueCurrency
BasisType BasisType Basis Type
QuotationPriceType QuotationPriceType Price Type
MarketPriceCurrency MarketPriceCurrency Market Price Crcy
OldestQuotationDate OldestQuotationDate
MTMConditionGroup MTMConditionGroup
MTMCalcGrpMarketPriceCondition MTMCalcGrpMarketPriceCondition
ConditionTermExchRateIsFixed ConditionTermExchRateIsFixed
CndnTermRateFixationDate CndnTermRateFixationDate
CndnTermRateFixationTime CndnTermRateFixationTime
CndnTermExchRateFixationDate CndnTermExchRateFixationDate
CndnTermExchRateFixationTime CndnTermExchRateFixationTime
ExchRateMaturityDate ExchRateMaturityDate
BasisMarketRefRate BasisMarketRefRate
BasisMarketRefAdjustmentSpread BasisMarketRefAdjustmentSpread
MarketToDocFrozenExchRate MarketToDocFrozenExchRate
BsMktRefDrvtvContrMaturityCode BsMktRefDrvtvContrMaturityCode
BasisMarketRefRateCurrency BasisMarketRefRateCurrency
BasisMarketRefKeyDate BasisMarketRefKeyDate
ConditionTermFactor ConditionTermFactor
ConditionTermRateIsFixed ConditionTermRateIsFixed
MaximumVersion MaximumVersion Highest Version
ExposureDueDate ExposureDueDate
ReportingDate ReportingDate
CashFlowDirectionShort CashFlowDirectionShort
TreasuryPositionLongShortCode TreasuryPositionLongShortCode
TimeToMaturity TimeToMaturity Time to Maturity
CmmdtyForwardIndexTiming CmmdtyForwardIndexTiming
CmmdtyForwardIndexTimingText CmmdtyForwardIndexTimingText
FinancialInstrProductCategory FinancialInstrProductCategory
FinancialAssetsMgmtProductType FinancialAssetsMgmtProductType
FinInstrTransactionCategory FinInstrTransactionCategory
FinancialInstrumentProductType FinancialInstrumentProductType
FinancialInstrActivityCategory FinancialInstrActivityCategory
EvaluationDate EvaluationDate
MTMDataSourceType MTMDataSourceType Type of Data Record
OriginReferenceDocumentItem OriginReferenceDocumentItem Root Document Item
OriginReferenceDocBusObjType OriginReferenceDocBusObjType Root (BOR) Obj. Type
DeliveryDate DeliveryDate Delivery Date
DeliveryYear DeliveryYear
DeliveryMonth DeliveryMonth
ExternalKeyFigureValue ExternalKeyFigureValue
OptionDeltaFactor OptionDeltaFactor
FinInstrExternalReference FinInstrExternalReference
HasError HasError TRUE
ControllingArea ControllingArea Controlling Area
SystemMessageText

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 C_CmmdtyMTMCurrentDateQry_2.
-- 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: CMTMPFQRY2
-- Parameters: P_EndOfDaySnapshotFromDate : cds_evaluation_date, P_DisplayUnitOfMeasure : cds_posrep_view_uom, P_MinEndOfDayFromDateTime : cmm_min_eod_from_datetime, P_MaxEndOfDayToDateTime : cmm_max_eod_to_datetime, P_MinEODaySnapshotDate : cmm_min_eod_snapshot_date, P_MinPriceQuotationDate : cmm_min_price_quotation_date, P_MaxPriceQuotationDate : cmm_max_price_quotation_date, P_MinSubstnPrcQtanDate : cmm_min_sub_price_quote_date, P_MaxSubstnPrcQtanDate : cmm_max_sub_price_quote_date, P_MinExchRateMttyDate : cmm_min_ex_rate_maturity_date, P_MaxExchRateMttyDate : cmm_max_ex_rate_maturity_date, P_MinFwdQuotationDate : cmm_min_fwd_quotation_date, P_MaxFwdQuotationDate : cmm_max_fwd_quotation_date

CREATE VIEW C_CmmdtyMTMCurrentDateQry_2 AS
SELECT
  resultElement: 'MinimumEndOfDayFromDateTime' AS resultElementMinimumEndOfDayFromDateTime,
  resultElement: 'MaximumEndOfDayToDateTime' AS resultElementMaximumEndOfDayToDateTime,
  resultElement: 'MinimumEndOfDaySnapshotDate' AS resultElementMinimumEndOfDaySnapshotDate,
  resultElement: 'MinimumPriceQuotationDate' AS resultElementMinimumPriceQuotationDate,
  resultElement: 'MaximumPriceQuotationDate' AS resultElementMaximumPriceQuotationDate,
  resultElement: 'MinSubstnPriceQuotationDate' AS resultElementMinSubstnPriceQuotationDate,
  resultElement: 'MaxSubstnPriceQuotationDate' AS resultElementMaxSubstnPriceQuotationDate,
  resultElement: 'MinExchangeRateMaturityDate' AS resultElementMinExchangeRateMaturityDate,
  resultElement: 'MaxExchangeRateMaturityDate' AS resultElementMaxExchangeRateMaturityDate,
  resultElement: 'MinimumForwardQuotationDate' AS resultElementMinimumForwardQuotationDate,
  resultElement: 'MaximumForwardQuotationDate' AS resultElementMaximumForwardQuotationDate,
  LogisticsDocumentVersion,
  PricingDocumentItem,
  CommodityPriceExposure,
  CommodityExposureCategory,
  CommodityPriceSubExposure,
  ProfitCenter,
  Plant,
  PhysicalCommodity,
  Material,
  OriginReferenceDocument,
  OrignRefDocumentShortNumber,
  SourceDocumentItem,
  SourceDocumentBusObjType,
  EndOfDaySnapshotDate,
  ValidityStartDate,
  IncotermsClassification,
  IncotermsTransferLocation,
  ConditionApplication,
  StatisticsCurrency,
  MTMCalculationGroup,
  DerivativeContractMaturityCode,
  MaturityKeyDate,
  BasisID,
  DerivativeContrSpecification,
  MarketIdentifierCode,
  PricingStatus,
  MTMAdjustmentType,
  ConditionTermRateFixation,
  QuotationPeriodReferenceDate,
  ConditionType,
  SubConditionType,
  ConditionTermValueInStstcCrcy,
  DocumentCurrency,
  ConditionTermValueInDocCrcy,
  ConditionTermRate,
  MarketToDocExchRate,
  ConditionTermRateCurrency,
  DocToStatisticalExchRate,
  CommodityQuantity,
  CommodityQuantityInTermUnit,
  CommodityUnit,
  SalesOrganization,
  DistributionChannel,
  Division,
  Creditor,
  SoldToParty,
  StorageLocation,
  Batch,
  GoodsMovementType,
  ReferenceDocumentLongNumber,
  ReferenceDocumentItem,
  ReferenceDocBusObjType,
  ExpectedPaymentDate,
  ExchRateEvaluationDate,
  DocToStstcCrcyExchRateEvalDate,
  BusinessArea,
  PurchasingOrganization,
  MaterialGroup,
  IsIntercompanyTransfer,
  ConditionTermRateQuantity,
  ConditionTermRateQuantityUnit,
  ConditionTermValueCurrency,
  BasisType,
  QuotationPriceType,
  MarketPriceCurrency,
  OldestQuotationDate,
  MTMConditionGroup,
  MTMCalcGrpMarketPriceCondition,
  ConditionTermExchRateIsFixed,
  CndnTermRateFixationDate,
  CndnTermRateFixationTime,
  CndnTermExchRateFixationDate,
  CndnTermExchRateFixationTime,
  ExchRateMaturityDate,
  BasisMarketRefRate,
  BasisMarketRefAdjustmentSpread,
  MarketToDocFrozenExchRate,
  BsMktRefDrvtvContrMaturityCode,
  BasisMarketRefRateCurrency,
  BasisMarketRefKeyDate,
  ConditionTermFactor,
  ConditionTermRateIsFixed,
  MaximumVersion,
  ExposureDueDate,
  ReportingDate,
  CashFlowDirectionShort,
  TreasuryPositionLongShortCode,
  TimeToMaturity,
  CmmdtyForwardIndexTiming,
  CmmdtyForwardIndexTimingText,
  FinancialInstrProductCategory,
  FinancialAssetsMgmtProductType,
  FinInstrTransactionCategory,
  FinancialInstrumentProductType,
  FinancialInstrActivityCategory,
  EvaluationDate,
  MTMDataSourceType,
  OriginReferenceDocumentItem,
  OriginReferenceDocBusObjType,
  DeliveryDate,
  DeliveryYear,
  DeliveryMonth,
  ExternalKeyFigureValue,
  OptionDeltaFactor,
  FinInstrExternalReference,
  HasError,
  ControllingArea,
  _CmmdtyMtmMessage[1:Language = $session.system_language].SystemMessageText AS SystemMessageText
FROM I_CmmdtyMTMLogFinValCube_2
;