Deprecated
This CDS view is deprecated in S/4HANA. Use C_CMMDTYPOSCURRENTDATEQRY_2 instead. View all deprecated CDS views →

C_CmmdtyPosCurrentDateQry

DDL: C_CMMDTYPOSCURRENTDATEQRY SQL: CCMMPOSCURQRY Type: view CONSUMPTION

Commodity Position Current Date Query

C_CmmdtyPosCurrentDateQry (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Cross Applications

C_CmmdtyPosCurrentDateQry is a Consumption CDS View that provides data about "Commodity Position Current Date Query" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyPositionRepQtyCube) and exposes 88 fields with key fields CommodityTransactionType, PricingKey, ConditionType, EvaluationDate, CompanyCode.

SAP Help Documentation

CategoryCDS Views for Commodity Management
Data CategoryQuery
StatusReleased
Purpose
This CDS view helps to retrieve data between the previous and the current evaluation date, relevant for the Commodity Position Reporting of logistics and derivative transactions.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentLO-CMM-BF
CapabilitiesAnalytical Query
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_CmmdtyPositionRepQtyCube I_CmmdtyPositionRepQtyCube from

Parameters (5)

NameTypeDefault
P_MTMDataSelectionType cmm_vlogp_posrep_consump_type
P_EndOfDaySnapshotFromDate cds_evaluation_date
P_EndOfDaySnapshotToDate cds_evaluation_date_comp
P_DisplayUnitOfMeasure cds_posrep_view_uom
P_Language spras

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CCMMPOSCURQRY view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AbapCatalog.compiler.compareFilter true view
Analytics.query true view
EndUserText.label Commodity Position Current Date Query view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor C_CMMDTYPOSCURRENTDATEQRY_2 view

Fields (88)

KeyFieldSource TableSource FieldDescription
KEY CommodityTransactionType CommodityTransactionType Paper/Physical Indicator for Exposure Group
KEY PricingKey PricingKey A key required to access versioned pricing data
KEY ConditionType ConditionType Condition type
KEY EvaluationDate EvaluationDate Latest Evaluation Date
KEY CompanyCode CompanyCode Receiver Company Code
KEY CommodityExposureCategory CommodityExposureCategory Exposure Category
EndOfDaySnapshotFromDate vlogp EndOfDaySnapshotFromDate Snapshot Start Date
EndOfDaySnapshotToDate vlogp EndOfDaySnapshotToDate Snapshot End Date
MTMDataSelectionType vlogp MTMDataSelectionType VLOGP Data Selection Type
MTMDataSourceType vlogp MTMDataSourceType Type of Data Record
FinInstrExternalReference vlogp FinInstrExternalReference External Reference
SalesOrganization Sales Organization
DistributionChannel vlogp DistributionChannel Distribution Channel
Division vlogp Division Internal Division ID
Creditor vlogp Creditor Supplier's Account Number
SoldToParty vlogp SoldToParty Sold-to Party
PhysicalCommodity vlogp PhysicalCommodity Pricing Commodity
Material vlogp Material Material Number
Plant vlogp Plant Valuation Area
StorageLocation vlogp StorageLocation Storage Location
Batch vlogp Batch Batch Number
IncotermsClassification vlogp IncotermsClassification Incoterms (Part 1)
IncotermsTransferLocation vlogp IncotermsTransferLocation Incoterms (Part 2)
ConditionApplication vlogp ConditionApplication Application
SourceDocument vlogp SourceDocument Document
SourceDocumentItem vlogp SourceDocumentItem Condition item number
SourceDocumentBusObjType vlogp SourceDocumentBusObjType Document Type
OriginReferenceDocument vlogp OriginReferenceDocument Root Document
OriginReferenceDocumentItem vlogp OriginReferenceDocumentItem Root Document Item
OriginReferenceDocBusObjType vlogp OriginReferenceDocBusObjType Root (BOR) Obj. Type
ReferenceDocument vlogp ReferenceDocument Predecessor Document
ReferenceDocumentItem vlogp ReferenceDocumentItem Predecessor Document Item
ReferenceDocBusObjType vlogp ReferenceDocBusObjType Predecessor Document Type
DeliveryDate vlogp DeliveryDate Delivery Date
ExpectedPaymentDate vlogp ExpectedPaymentDate Payment Date
ProfitCenter vlogp ProfitCenter Profit Center
BusinessArea vlogp BusinessArea Business Area
PurchasingOrganization vlogp PurchasingOrganization Purchasing Organization
MaterialGroup vlogp MaterialGroup Material Group
IsIntercompanyTransfer vlogp IsIntercompanyTransfer Intercompany Transfer
MTMConditionGroup MtM Condition Group
ExposureDueDate Date on which the exposure is due and expires
TreasuryPositionLongShortCode vlogp TreasuryPositionLongShortCode Code: Long or Short Position
TimeToMaturity vlogp TimeToMaturity Time to Maturity
CmmdtyForwardIndexTimingText vlogp CmmdtyForwardIndexTimingText Short Text for Fixed Values
CmmdtyForwardIndexTiming vlogp CmmdtyForwardIndexTiming Timing/Periodicity of Commodity Forward Indexes
DerivativeContractMaturityCode vlogp DerivativeContractMaturityCode Contract Maturity Code
FinancialAssetsMgmtProductType vlogp FinancialAssetsMgmtProductType Product Type
FinInstrTransactionCategory vlogp FinInstrTransactionCategory Transaction Category
FinancialInstrumentProductType vlogp FinancialInstrumentProductType Financial Transaction Type
OptionStrikeCurrency vlogp OptionStrikeCurrency Currency Unit of the Rate
OptionStrikePrice vlogp OptionStrikePrice Option Strike Price
OptionPutCallCode vlogp OptionPutCallCode Put/Call Indicator
ExternalKeyFigureValue vlogp ExternalKeyFigureValue External Key figures
OptionDeltaFactor vlogp OptionDeltaFactor Option Delta Factor Value
DerivativeContrSpecification vlogp DerivativeContrSpecification Derivative Contract Specification ID
MarketIdentifierCode vlogp MarketIdentifierCode Market Identifier Code
MaturityKeyDate vlogp MaturityKeyDate Maturity Key Date
CommodityUnit vlogp CommodityUnit Unit of Measure for Commodity
PriceIsRealized vlogp PriceIsRealized Indicates that the MtM value is realized
ImplicitFixationIsRelevant vlogp ImplicitFixationIsRelevant Implicit Fixation Relevant
ConditionTermRateIsFixed vlogp ConditionTermRateIsFixed Indicates that the term is fixed
MaterialStockPriceExposureUnit MaterialStockPriceExposureUnit Material Stock Unit of Measure
KeyFiguresUnpricedUndeliveredCtrExpsrQty
UnpricedDeliveredCtrExpsrQty UnpricedDeliveredCtrExpsrQty Unpriced Delivered Contract Quantity
UnpricedContrPriceExposureQty UnpricedContrPriceExposureQty Unpriced Contract Quantity
PricedUndeliveredContrExpsrQty PricedUndeliveredContrExpsrQty Priced Undelivered Contract Quantity
PricedDeliveredContrExpsrQty PricedDeliveredContrExpsrQty Priced Delivered Contract Quantity
PricedContractsExposureQty PricedContractsExposureQty Priced Contract Quantity
TodayPricedUndeliveredExpsrQty TodayPricedUndeliveredExpsrQty Today Priced Undelivered Quantity
UndeliveredMarketPrExposureQty UndeliveredMarketPrExposureQty Undelivered Market Exposure Quantity
DeliveredMarketPrExposureQty DeliveredMarketPrExposureQty Delivered Market Exposure
UnrlzdMarketPriceExposureQty UnrlzdMarketPriceExposureQty Unrealized Market Exposure Quantity
UnrealizedGoodsRcptPrcExpsrQty UnrealizedGoodsRcptPrcExpsrQty Unrealized Goods Receipt Quantity
UnrealizedGoodsIssPrcExpsrQty UnrealizedGoodsIssPrcExpsrQty Unrealized Goods Issue Quantity
MaterialStockExposureQty MaterialStockExposureQty Stock on Hand
RealizedMaterialStkPrcExpsrQty RealizedMaterialStkPrcExpsrQty Realized Stock Quantity
OutrightPriceExposureQty OutrightPriceExposureQty Outright Exposure Quantity
AdjustedReportingDate vlogp AdjustedReportingDate Adjusted Reporting Date
AdjustedReportingYear vlogp AdjustedReportingYear Abjusted Reporting Year
AdjustedReportingMonth vlogp AdjustedReportingMonth Adjusted Reporting Month
SystemMessageText Message Text
HasError vlogp HasError Error Flag for Data Record of Commodity Risk Analytics
PriceSettingMethod vlogp PriceSettingMethod Price Setting Method
PriceSettingMethodStatus vlogp PriceSettingMethodStatus Price Setting Method Status
ValidToDateTime vlogp ValidToDateTime Valid-To Timestamp
PricingProcedure vlogp PricingProcedure Procedure (Pricing, Output Control, Acct. Det., Costing,...)
PricingConditionTerm vlogp PricingConditionTerm CPE Term - Number in Formula

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_CmmdtyPosCurrentDateQry.
-- 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: CCMMPOSCURQRY
-- Parameters: P_MTMDataSelectionType : cmm_vlogp_posrep_consump_type, P_EndOfDaySnapshotFromDate : cds_evaluation_date, P_EndOfDaySnapshotToDate : cds_evaluation_date_comp, P_DisplayUnitOfMeasure : cds_posrep_view_uom, P_Language : spras

CREATE VIEW C_CmmdtyPosCurrentDateQry AS
SELECT
  CommodityTransactionType,
  PricingKey,
  ConditionType,
  EvaluationDate,
  CompanyCode,
  CommodityExposureCategory,
  vlogp.EndOfDaySnapshotFromDate AS EndOfDaySnapshotFromDate,
  vlogp.EndOfDaySnapshotToDate AS EndOfDaySnapshotToDate,
  vlogp.MTMDataSelectionType AS MTMDataSelectionType,
  vlogp.MTMDataSourceType AS MTMDataSourceType,
  vlogp.FinInstrExternalReference AS FinInstrExternalReference,
  vlogp.DistributionChannel AS DistributionChannel,
  vlogp.Division AS Division,
  vlogp.Creditor AS Creditor,
  vlogp.SoldToParty AS SoldToParty,
  vlogp.PhysicalCommodity AS PhysicalCommodity,
  vlogp.Material AS Material,
  vlogp.Plant AS Plant,
  vlogp.StorageLocation AS StorageLocation,
  vlogp.Batch AS Batch,
  vlogp.IncotermsClassification AS IncotermsClassification,
  vlogp.IncotermsTransferLocation AS IncotermsTransferLocation,
  vlogp.ConditionApplication AS ConditionApplication,
  vlogp.SourceDocument AS SourceDocument,
  vlogp.SourceDocumentItem AS SourceDocumentItem,
  vlogp.SourceDocumentBusObjType AS SourceDocumentBusObjType,
  vlogp.OriginReferenceDocument AS OriginReferenceDocument,
  vlogp.OriginReferenceDocumentItem AS OriginReferenceDocumentItem,
  vlogp.OriginReferenceDocBusObjType AS OriginReferenceDocBusObjType,
  vlogp.ReferenceDocument AS ReferenceDocument,
  vlogp.ReferenceDocumentItem AS ReferenceDocumentItem,
  vlogp.ReferenceDocBusObjType AS ReferenceDocBusObjType,
  vlogp.DeliveryDate AS DeliveryDate,
  vlogp.ExpectedPaymentDate AS ExpectedPaymentDate,
  vlogp.ProfitCenter AS ProfitCenter,
  vlogp.BusinessArea AS BusinessArea,
  vlogp.PurchasingOrganization AS PurchasingOrganization,
  vlogp.MaterialGroup AS MaterialGroup,
  vlogp.IsIntercompanyTransfer AS IsIntercompanyTransfer,
  vlogp.TreasuryPositionLongShortCode AS TreasuryPositionLongShortCode,
  vlogp.TimeToMaturity AS TimeToMaturity,
  vlogp.CmmdtyForwardIndexTimingText AS CmmdtyForwardIndexTimingText,
  vlogp.CmmdtyForwardIndexTiming AS CmmdtyForwardIndexTiming,
  vlogp.DerivativeContractMaturityCode AS DerivativeContractMaturityCode,
  vlogp.FinancialAssetsMgmtProductType AS FinancialAssetsMgmtProductType,
  vlogp.FinInstrTransactionCategory AS FinInstrTransactionCategory,
  vlogp.FinancialInstrumentProductType AS FinancialInstrumentProductType,
  vlogp.OptionStrikeCurrency AS OptionStrikeCurrency,
  vlogp.OptionStrikePrice AS OptionStrikePrice,
  vlogp.OptionPutCallCode AS OptionPutCallCode,
  vlogp.ExternalKeyFigureValue AS ExternalKeyFigureValue,
  vlogp.OptionDeltaFactor AS OptionDeltaFactor,
  vlogp.DerivativeContrSpecification AS DerivativeContrSpecification,
  vlogp.MarketIdentifierCode AS MarketIdentifierCode,
  vlogp.MaturityKeyDate AS MaturityKeyDate,
  vlogp.CommodityUnit AS CommodityUnit,
  vlogp.PriceIsRealized AS PriceIsRealized,
  vlogp.ImplicitFixationIsRelevant AS ImplicitFixationIsRelevant,
  vlogp.ConditionTermRateIsFixed AS ConditionTermRateIsFixed,
  MaterialStockPriceExposureUnit,
  UnpricedDeliveredCtrExpsrQty,
  UnpricedContrPriceExposureQty,
  PricedUndeliveredContrExpsrQty,
  PricedDeliveredContrExpsrQty,
  PricedContractsExposureQty,
  TodayPricedUndeliveredExpsrQty,
  UndeliveredMarketPrExposureQty,
  DeliveredMarketPrExposureQty,
  UnrlzdMarketPriceExposureQty,
  UnrealizedGoodsRcptPrcExpsrQty,
  UnrealizedGoodsIssPrcExpsrQty,
  MaterialStockExposureQty,
  RealizedMaterialStkPrcExpsrQty,
  OutrightPriceExposureQty,
  vlogp.AdjustedReportingDate AS AdjustedReportingDate,
  vlogp.AdjustedReportingYear AS AdjustedReportingYear,
  vlogp.AdjustedReportingMonth AS AdjustedReportingMonth,
  _CmmdtyMtmMessage[1:Language = :P_Language].SystemMessageText AS SystemMessageText,
  vlogp.HasError AS HasError,
  vlogp.PriceSettingMethod AS PriceSettingMethod,
  vlogp.PriceSettingMethodStatus AS PriceSettingMethodStatus,
  vlogp.ValidToDateTime AS ValidToDateTime,
  vlogp.PricingProcedure AS PricingProcedure,
  vlogp.PricingConditionTerm AS PricingConditionTerm
FROM I_CmmdtyPositionRepQtyCube
;