C_CmmdtyPosDayOverDayQry
Commodity Position Day over Day Query
C_CmmdtyPosDayOverDayQry (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Cross Applications
C_CmmdtyPosDayOverDayQry is a Consumption CDS View that provides data about "Commodity Position Day over Day Query" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyPositionRepQtyCube) and exposes 90 fields with key fields CommodityTransactionType, PricingKey, ConditionType, EvaluationDate, CompanyCode. Part of development package LOG_CMM_POSITION_REPORTING.
SAP Help Documentation
| Category | CDS Views for Commodity Management |
|---|---|
| Data Category | Query |
| Status | Released |
This CDS view helps to retrieve day-over-day data relevant for the Commodity Position Reporting of logistics and derivative transactions.
SAP API Hub
| Category | Consumption |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | LO-CMM-BF |
| Capabilities | Analytical Query |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyPositionRepQtyCube | I_CmmdtyPositionRepQtyCube | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_MTMDataSelectionType | cmm_vlogp_posrep_consump_type | |
| P_EndOfDaySnapshotFromDate | cmm_snapshot_start | |
| P_EndOfDaySnapshotToDate | cmm_snapshot_end | |
| P_DisplayUnitOfMeasure | cds_posrep_view_uom | |
| P_Language | spras |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCMMPOSDODQRY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Analytics.query | true | view | |
| EndUserText.label | Commodity Position Day over Day 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 |
Fields (90)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | |
| EndOfDaySnapshotDate | vlogp | EndOfDaySnapshotDate | Snapshot Date | |
| MTMDataSelectionType | vlogp | MTMDataSelectionType | VLOGP Data Selection Type | |
| MTMDataSourceType | vlogp | MTMDataSourceType | Type of Data Record | |
| 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 | 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 | |||
| MTMConditionGroupCategory | vlogp | MTMConditionGroupCategory | Categorization of 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 | |
| CmmdtyForwardIndexTiming | vlogp | CmmdtyForwardIndexTiming | Timing/Periodicity of Commodity Forward Indexes | |
| CmmdtyForwardIndexTimingText | vlogp | CmmdtyForwardIndexTimingText | Short Text for Fixed Values | |
| 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 | Adjusted Reporting Month | |||
| FinInstrExternalReference | vlogp | FinInstrExternalReference | External Reference | |
| 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_CmmdtyPosDayOverDayQry.
-- 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: CCMMPOSDODQRY
-- Parameters: P_MTMDataSelectionType : cmm_vlogp_posrep_consump_type, P_EndOfDaySnapshotFromDate : cmm_snapshot_start, P_EndOfDaySnapshotToDate : cmm_snapshot_end, P_DisplayUnitOfMeasure : cds_posrep_view_uom, P_Language : spras
CREATE VIEW C_CmmdtyPosDayOverDayQry AS
SELECT
CommodityTransactionType,
PricingKey,
ConditionType,
EvaluationDate,
CompanyCode,
CommodityExposureCategory,
vlogp.EndOfDaySnapshotFromDate AS EndOfDaySnapshotFromDate,
vlogp.EndOfDaySnapshotToDate AS EndOfDaySnapshotToDate,
vlogp.EndOfDaySnapshotDate AS EndOfDaySnapshotDate,
vlogp.MTMDataSelectionType AS MTMDataSelectionType,
vlogp.MTMDataSourceType AS MTMDataSourceType,
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.MTMConditionGroupCategory AS MTMConditionGroupCategory,
vlogp.TreasuryPositionLongShortCode AS TreasuryPositionLongShortCode,
vlogp.TimeToMaturity AS TimeToMaturity,
vlogp.CmmdtyForwardIndexTiming AS CmmdtyForwardIndexTiming,
vlogp.CmmdtyForwardIndexTimingText AS CmmdtyForwardIndexTimingText,
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.FinInstrExternalReference AS FinInstrExternalReference,
_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
;
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