C_CmmdtyMtmStkEodQry
MtM End-of-Day Values Query for Stock
C_CmmdtyMtmStkEodQry is a Consumption CDS View that provides data about "MtM End-of-Day Values Query for Stock" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyMtmValueCube) and exposes 63 fields with key field PricingKey.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyMtmValueCube | I_CmmdtyMtmValueCube | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_EndOfDaySnapshotDate | cmm_dend_cutdate | |
| P_Language | spras |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCOMTMSEODQRY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ObjectModel.representativeKey | PricingKey | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view | |
| EndUserText.label | MtM End-of-Day Values Query for Stock | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | C_CMMDTYSTOCKENDOFDAYQRY | view |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PricingKey | PricingKey | Pricing Key | |
| CompanyCodeName | ||||
| ProfitCenter | ProfitCenter | Profit Center | ||
| PlantName | _Plant | PlantName | Plant Name | |
| StorageLocationName | _StorageLocation | StorageLocationName | Storage Loc. Name | |
| CommodityName | ||||
| ProductName | ||||
| MTMDataSourceTypeName | ||||
| MTMConditionGroupCategoryName | ||||
| MTMCalculationGroupName | ||||
| SourceDocument | SourceDocument | Document | ||
| CommodityQuantity | CommodityQuantity | Commodity Quantity | ||
| ConditionTermRate | ConditionTermRate | |||
| MarketToDocExchRate | MarketToDocExchRate | |||
| DocToStatisticalExchRate | DocToStatisticalExchRate | |||
| ConditionTermValueInStstcCrcy | ConditionTermValueInStstcCrcy | |||
| ConditionTermValueInDocCrcy | ConditionTermValueInDocCrcy | |||
| QuotationPeriodReferenceDate | QuotationPeriodReferenceDate | |||
| keyfieldsConditionType | ||||
| SubConditionType | SubConditionType | |||
| BusinessDocumentCompanyCode | ||||
| PhysicalCommodity | PhysicalCommodity | |||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| GoodsMovementTypeName | ||||
| IncotermsClassificationName | ||||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| SourceDocumentItem | SourceDocumentItem | |||
| OriginReferenceDocument | OriginReferenceDocument | Root Document | ||
| OriginRefDocBusObjTypeName | ||||
| OriginReferenceDocBusObjType | OriginReferenceDocBusObjType | Root (BOR) Obj. Type | ||
| OriginReferenceDocumentItem | OriginReferenceDocumentItem | Root Document Item | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| ReferenceDocBusObjTypeName | ||||
| ReferenceDocBusObjType | ReferenceDocBusObjType | Pred(BOR) Object Typ | ||
| ReferenceDocumentItem | ReferenceDocumentItem | Reference item | ||
| DeliveryYear | DeliveryYear | |||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| DeliveryMonth | DeliveryMonth | |||
| ExpectedPaymentDate | ExpectedPaymentDate | |||
| ExchRateEvaluationDate | ExchRateEvaluationDate | |||
| StatisticsCurrency | StatisticsCurrency | |||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| IsIntercompanyTransfer | IsIntercompanyTransfer | |||
| ConditionTermRateQuantity | ConditionTermRateQuantity | |||
| ConditionTermRateQuantityUnit | ConditionTermRateQuantityUnit | |||
| ConditionTermFactor | ConditionTermFactor | |||
| DerivativeContrSpecName | ||||
| MarketIdentifierCodeName | ||||
| BasisIDName | ||||
| ConditionTermRateFixation | ConditionTermRateFixation | |||
| PricingStatusName | ||||
| MarketPriceCurrency | MarketPriceCurrency | Market Price Crcy | ||
| OldestQuotationDate | OldestQuotationDate | |||
| MiscellanousfieldsBatch | ||||
| CommodityUnit | CommodityUnit | Order Unit | ||
| MTMAdjustmentTypeName | ||||
| SystemMessageText | ||||
| HasError | HasError | TRUE | ||
| CmmdtyForwardIndexTiming | CmmdtyForwardIndexTiming | |||
| CmmdtyForwardIndexTimingText | CmmdtyForwardIndexTimingText | Short Description |
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_CmmdtyMtmStkEodQry.
-- 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: CCOMTMSEODQRY
-- Parameters: P_EndOfDaySnapshotDate : cmm_dend_cutdate, P_Language : spras
CREATE VIEW C_CmmdtyMtmStkEodQry AS
SELECT
PricingKey,
ProfitCenter,
_Plant.PlantName AS PlantName,
_StorageLocation.StorageLocationName AS StorageLocationName,
_PhysicalCmmdty._Text[1:Language = :P_Language].CommodityName AS CommodityName,
_Material._Text[1:Language = :P_Language].ProductName AS ProductName,
_MTMDataSourceType._MtmDataSourceTypT[1:Language = :P_Language].MTMDataSourceTypeName AS MTMDataSourceTypeName,
_MTMCalculationGroup._MtmCalculationGroupT[1:Language = :P_Language].MTMCalculationGroupName AS MTMCalculationGroupName,
SourceDocument,
CommodityQuantity,
ConditionTermRate,
MarketToDocExchRate,
DocToStatisticalExchRate,
ConditionTermValueInStstcCrcy,
ConditionTermValueInDocCrcy,
QuotationPeriodReferenceDate,
SubConditionType,
PhysicalCommodity,
Material,
MaterialGroup,
Plant,
GoodsMovementType,
IncotermsTransferLocation,
SourceDocumentItem,
OriginReferenceDocument,
_OriginReferenceDocBusObjType._Text[1:Language = :P_Language].BusinessObjectTypeName AS OriginRefDocBusObjTypeName,
OriginReferenceDocBusObjType,
OriginReferenceDocumentItem,
ReferenceDocument,
_ReferenceDocBusObjType._Text[1:Language = :P_Language].BusinessObjectTypeName AS ReferenceDocBusObjTypeName,
ReferenceDocBusObjType,
ReferenceDocumentItem,
DeliveryYear,
DeliveryDate,
DeliveryMonth,
ExpectedPaymentDate,
ExchRateEvaluationDate,
StatisticsCurrency,
DocumentCurrency,
IsIntercompanyTransfer,
ConditionTermRateQuantity,
ConditionTermRateQuantityUnit,
ConditionTermFactor,
_MarketIdentCode._Text[1:Language = :P_Language].MarketIdentifierCodeName AS MarketIdentifierCodeName,
_BasisID._Text[1:Language = :P_Language].BasisIDName AS BasisIDName,
ConditionTermRateFixation,
_PricingStatus._Text[1:Language = :P_Language].PricingStatusName AS PricingStatusName,
MarketPriceCurrency,
OldestQuotationDate,
CommodityUnit,
_MTMAdjustmentType._MtmAdjustmentTypeT[1:Language = :P_Language].MTMAdjustmentTypeName AS MTMAdjustmentTypeName,
_CmmdtyMtmMessage[1:Language = :P_Language].SystemMessageText AS SystemMessageText,
HasError,
CmmdtyForwardIndexTiming,
CmmdtyForwardIndexTimingText
FROM I_CmmdtyMtmValueCube
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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