C_CmmdtyMtmLogCurQry
MtM Current Values Qry for Log. Doc
C_CmmdtyMtmLogCurQry is a Consumption CDS View that provides data about "MtM Current Values Qry for Log. Doc" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyMtmValueCube) and exposes 84 fields with key field PricingKey.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyMtmValueCube | I_CmmdtyMtmValueCube | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_Language | spras | |
| P_TodayDate | cmm_dend_cutdate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCOMTMLCURQRY | 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 Current Values Qry for Log. Doc | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (84)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PricingKey | PricingKey | Pricing Key | |
| CompanyCodeName | ||||
| ProfitCenter | ProfitCenter | Profit Center | ||
| PlantName | _Plant | PlantName | Plant Name | |
| CommodityName | ||||
| ProductName | ||||
| OriginReferenceDocument | OriginReferenceDocument | Root Document | ||
| SourceDocumentItem | SourceDocumentItem | |||
| SourceDocumentBusObjTypeName | ||||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| IncotermsClassificationName | ||||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| ConditionApplication | ConditionApplication | Application | ||
| StatisticsCurrency | StatisticsCurrency | |||
| MTMCalculationGroupName | ||||
| MTMConditionGroupCategoryName | ||||
| DerivativeContractMaturityCode | DerivativeContractMaturityCode | Contr. Maturity Code | ||
| MaturityKeyDate | MaturityKeyDate | Maturity Key Date | ||
| BasisIDName | ||||
| DerivativeContrSpecName | ||||
| MarketIdentifierCodeName | ||||
| PricingStatusName | ||||
| MTMAdjustmentTypeName | ||||
| ConditionTermRateFixation | ConditionTermRateFixation | |||
| QuotationPeriodReferenceDate | QuotationPeriodReferenceDate | |||
| KeyfieldsConditionType | ||||
| SubConditionType | SubConditionType | |||
| CommodityQuantity | CommodityQuantity | Commodity Quantity | ||
| CommodityQuantityInTermUnit | CommodityQuantityInTermUnit | |||
| ConditionTermRate | ConditionTermRate | |||
| MarketToDocExchRate | MarketToDocExchRate | |||
| DocToStatisticalExchRate | DocToStatisticalExchRate | |||
| ConditionTermValueInStstcCrcy | ConditionTermValueInStstcCrcy | |||
| ConditionTermValueInDocCrcy | ConditionTermValueInDocCrcy | |||
| BusinessDocumentCompanyCode | ||||
| PhysicalCommodity | PhysicalCommodity | |||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| Creditor | Creditor | Supplier | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| 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 | |||
| DocToStstcCrcyExchRateEvalDate | DocToStstcCrcyExchRateEvalDate | |||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| IsIntercompanyTransfer | IsIntercompanyTransfer | |||
| CndnTermRateFixationDate | CndnTermRateFixationDate | |||
| CndnTermRateFixationTime | CndnTermRateFixationTime | |||
| CndnTermExchRateFixationDate | CndnTermExchRateFixationDate | |||
| CndnTermExchRateFixationTime | CndnTermExchRateFixationTime | |||
| ConditionTermFactor | ConditionTermFactor | |||
| ExchRateMaturityDate | ExchRateMaturityDate | |||
| BsMktRefDrvtvContrMaturityCode | BsMktRefDrvtvContrMaturityCode | |||
| BasisMarketRefRate | BasisMarketRefRate | |||
| BasisMarketRefAdjustmentSpread | BasisMarketRefAdjustmentSpread | |||
| MarketToDocFrozenExchRate | MarketToDocFrozenExchRate | |||
| ConditionTermRateQuantity | ConditionTermRateQuantity | |||
| ConditionTermRateQuantityUnit | ConditionTermRateQuantityUnit | |||
| OldestQuotationDate | OldestQuotationDate | |||
| MiscellanousfieldsBatch | ||||
| CommodityUnit | CommodityUnit | Order Unit | ||
| SystemMessageText | ||||
| HasError | HasError | TRUE | ||
| CmmdtyForwardIndexTiming | CmmdtyForwardIndexTiming | |||
| CmmdtyForwardIndexTimingText | CmmdtyForwardIndexTimingText | Short Description | ||
| CmmdtyPriceExpsrQtyInMassUnit | CmmdtyPriceExpsrQtyInMassUnit | |||
| CmmdtyPriceExpsrMassUnit | CmmdtyPriceExpsrMassUnit | |||
| CmmdtyPriceExpsrQtyInVolUnit | CmmdtyPriceExpsrQtyInVolUnit | |||
| CmmdtyPriceExpsrVolumeUnit | CmmdtyPriceExpsrVolumeUnit | |||
| PriceSettingMethod | PriceSettingMethod | |||
| PriceSettingMethodStatus | PriceSettingMethodStatus | |||
| ValidToDateTime | ValidToDateTime | Time Stamp | ||
| PricingProcedure | PricingProcedure | Procedure | ||
| PricingConditionTerm | PricingConditionTerm | Term Number |
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_CmmdtyMtmLogCurQry.
-- 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: CCOMTMLCURQRY
-- Parameters: P_Language : spras, P_TodayDate : cmm_dend_cutdate
CREATE VIEW C_CmmdtyMtmLogCurQry AS
SELECT
PricingKey,
ProfitCenter,
_Plant.PlantName AS PlantName,
_PhysicalCmmdty._Text[1:Language = :P_Language].CommodityName AS CommodityName,
_Material._Text[1:Language = :P_Language].ProductName AS ProductName,
OriginReferenceDocument,
SourceDocumentItem,
_SourceDocumentBusObjType._Text[1:Language = :P_Language].BusinessObjectTypeName AS SourceDocumentBusObjTypeName,
ValidityStartDate,
_IncotermsClassification._Text[1:Language = :P_Language].IncotermsClassificationName AS IncotermsClassificationName,
IncotermsTransferLocation,
ConditionApplication,
StatisticsCurrency,
_MTMCalculationGroup._MtmCalculationGroupT[1:Language = :P_Language].MTMCalculationGroupName AS MTMCalculationGroupName,
DerivativeContractMaturityCode,
MaturityKeyDate,
_BasisID._Text[1:Language = :P_Language].BasisIDName AS BasisIDName,
_DerivativeContrSpecification._Text[1:Language = :P_Language].DerivativeContrSpecName AS DerivativeContrSpecName,
_MarketIdentCode._Text[1:Language = :P_Language].MarketIdentifierCodeName AS MarketIdentifierCodeName,
_PricingStatus._Text[1:Language = :P_Language].PricingStatusName AS PricingStatusName,
_MTMAdjustmentType._MtmAdjustmentTypeT[1:Language = :P_Language].MTMAdjustmentTypeName AS MTMAdjustmentTypeName,
ConditionTermRateFixation,
QuotationPeriodReferenceDate,
SubConditionType,
CommodityQuantity,
CommodityQuantityInTermUnit,
ConditionTermRate,
MarketToDocExchRate,
DocToStatisticalExchRate,
ConditionTermValueInStstcCrcy,
ConditionTermValueInDocCrcy,
PhysicalCommodity,
Material,
MaterialGroup,
Plant,
Creditor,
SoldToParty,
_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,
DocToStstcCrcyExchRateEvalDate,
DocumentCurrency,
IsIntercompanyTransfer,
CndnTermRateFixationDate,
CndnTermRateFixationTime,
CndnTermExchRateFixationDate,
CndnTermExchRateFixationTime,
ConditionTermFactor,
ExchRateMaturityDate,
BsMktRefDrvtvContrMaturityCode,
BasisMarketRefRate,
BasisMarketRefAdjustmentSpread,
MarketToDocFrozenExchRate,
ConditionTermRateQuantity,
ConditionTermRateQuantityUnit,
OldestQuotationDate,
CommodityUnit,
_CmmdtyMtmMessage[1:Language = :P_Language].SystemMessageText AS SystemMessageText,
HasError,
CmmdtyForwardIndexTiming,
CmmdtyForwardIndexTimingText,
CmmdtyPriceExpsrQtyInMassUnit,
CmmdtyPriceExpsrMassUnit,
CmmdtyPriceExpsrQtyInVolUnit,
CmmdtyPriceExpsrVolumeUnit,
PriceSettingMethod,
PriceSettingMethodStatus,
ValidToDateTime,
PricingProcedure,
PricingConditionTerm
FROM I_CmmdtyMtmValueCube
;
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