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

C_CmmdtyPosEndOfDayQry

DDL: C_CMMDTYPOSENDOFDAYQRY SQL: CCMMPOSEODQRY Type: view CONSUMPTION

Commodity Position End Of Day Query

C_CmmdtyPosEndOfDayQry (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_CmmdtyPosEndOfDayQry is a Consumption CDS View that provides data about "Commodity Position End Of Day Query" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyPositionRepQtyCube) and exposes 89 fields with key fields CommodityTransactionType, PricingKey, ConditionType, EvaluationDate, CompanyCode.

SAP Help Documentation

CategoryCDS Views for Commodity Management
Data CategoryQuery
StatusReleased
Data Extraction TypeFull (physical deletions are possible in source tables) Delta: <Technical name of data field>
Purpose
This CDS view helps to retrieve end-of-day data relevant for the Commodity Position Reporting of logistics and derivative transactions. This CDS view provides the prerequisites for answering the following business questions: Business question Business question ...

Prerequisites
Users who want to run reports using this CDS view must have a role based on the business role template listed in the table above. In this role, the following restriction types must be set to read access: <Name of restriction type> <Name of restriction type> <Name of restriction type> ... Users who want to run reports using this CDS view must have the authorization to display the following data: ... ... ... The following authorization objects are required: ... ... ...

Structure
Object types This view relates to the following SAP object types: <Name of object type> <Name of object type> ... Main CDS parameters and filters The main CDS parameters are: <Parameter> used to ... <Parameter> used to ... ... The main filters are: <Field> used to ... <Field> used to ... ... Measures and attributes Some important measures and attributes are: Descriptive text on the important measures & attributes Descriptive text on the important measures & attributes ...

SAP Business Warehouse (SAP BW) Extraction
Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. In case you are interested in the details of the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Application Help SAP Library BI Content . For more information on extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .

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 (4)

NameTypeDefault
P_MTMDataSelectionType cmm_vlogp_posrep_consump_type
P_EndOfDaySnapshotFromDate cmm_dend_cutdate
P_DisplayUnitOfMeasure cds_posrep_view_uom
P_Language spras

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CCMMPOSEODQRY view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AbapCatalog.compiler.compareFilter true view
Analytics.query true view
EndUserText.label Commodity Position End Of 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
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor C_CMMDTYPOSENDOFDAYQRY_2 view

Fields (89)

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
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)
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
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 vlogp AdjustedReportingMonth Adjusted Reporting Month
FinInstrExternalReference vlogp FinInstrExternalReference External Reference
ConditionApplication vlogp ConditionApplication Application
FinancialInstrProductCategory FinancialInstrProductCategory Product Category
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_CmmdtyPosEndOfDayQry.
-- 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: CCMMPOSEODQRY
-- Parameters: P_MTMDataSelectionType : cmm_vlogp_posrep_consump_type, P_EndOfDaySnapshotFromDate : cmm_dend_cutdate, P_DisplayUnitOfMeasure : cds_posrep_view_uom, P_Language : spras

CREATE VIEW C_CmmdtyPosEndOfDayQry 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.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.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.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.AdjustedReportingMonth AS AdjustedReportingMonth,
  vlogp.FinInstrExternalReference AS FinInstrExternalReference,
  vlogp.ConditionApplication AS ConditionApplication,
  FinancialInstrProductCategory,
  _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
;