C_CmmdtyPosCurrentDateQry_2
Commodity Position Current Day Report
C_CmmdtyPosCurrentDateQry_2 is a Consumption CDS View that provides data about "Commodity Position Current Day Report" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyPositionRepQtyCube_2) and exposes 97 fields with key fields PricingKey, ConditionType, EvaluationDate, CompanyCode, CommodityExposureCategory. Part of development package LOG_CMM_RISK_REPORTING_POS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyPositionRepQtyCube_2 | I_CmmdtyPositionRepQtyCube_2 | from |
Parameters (10)
| Name | Type | Default |
|---|---|---|
| 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 | |
| P_MinEndOfDayFromDateTime | cmm_min_eod_from_datetime | |
| P_MaxEndOfDayToDateTime | cmm_max_eod_to_datetime | |
| P_MinEODaySnapshotDate | cmm_min_eod_snapshot_date | |
| P_MinPriceQuotationDate | cmm_min_price_quotation_date | |
| P_MaxPriceQuotationDate | cmm_max_price_quotation_date |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCMMPOSCURQRY2 | 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 Day Report | 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 (97)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| resultElementMinimumEndOfDayFromDateTime | ||||
| resultElementMaximumEndOfDayToDateTime | ||||
| resultElementMinimumEndOfDaySnapshotDate | ||||
| resultElementMinimumPriceQuotationDate | ||||
| resultElementMaximumPriceQuotationDate | ||||
| P_OptionDeltaMethod2 | ||||
| P_OptionDeltaThreshold1 | ||||
| KEY | PricingKey | PricingKey | Pricing Key | |
| KEY | ConditionType | ConditionType | Condition type | |
| KEY | EvaluationDate | EvaluationDate | ||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | CommodityExposureCategory | CommodityExposureCategory | ||
| EndOfDaySnapshotFromDate | vlogp | EndOfDaySnapshotFromDate | ||
| EndOfDaySnapshotToDate | vlogp | EndOfDaySnapshotToDate | ||
| MTMDataSelectionType | vlogp | MTMDataSelectionType | ||
| MTMDataSourceType | vlogp | MTMDataSourceType | Type of Data Record | |
| FinInstrExternalReference | vlogp | FinInstrExternalReference | ||
| SalesOrganization | ||||
| DistributionChannel | vlogp | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | vlogp | Division | Internal Division ID | |
| Creditor | vlogp | Creditor | Supplier | |
| SoldToParty | vlogp | SoldToParty | Sold-to Party | |
| PhysicalCommodity | vlogp | PhysicalCommodity | ||
| Material | vlogp | Material | Vehicle Model | |
| Plant | vlogp | Plant | Valuation Area | |
| StorageLocation | vlogp | StorageLocation | StorageLocation | |
| Batch | vlogp | Batch | Lot No. | |
| IncotermsClassification | vlogp | IncotermsClassification | Incoterms | |
| IncotermsTransferLocation | vlogp | IncotermsTransferLocation | Incoterms 2 | |
| ConditionApplication | vlogp | ConditionApplication | Application | |
| SourceDocumentShortNumber | vlogp | SourceDocumentShortNumber | ||
| SourceDocumentItem | vlogp | SourceDocumentItem | Document Item | |
| SourceDocumentBusObjType | ||||
| SourceDocumentBusObjTypeName | ||||
| OriginReferenceDocument | vlogp | OriginReferenceDocument | Root Document | |
| OrignRefDocumentShortNumber | vlogp | OrignRefDocumentShortNumber | ||
| OriginReferenceDocumentItem | vlogp | OriginReferenceDocumentItem | Root Document Item | |
| OriginReferenceDocBusObjType | vlogp | OriginReferenceDocBusObjType | Root (BOR) Obj. Type | |
| ReferenceDocumentLongNumber | vlogp | ReferenceDocumentLongNumber | ||
| ReferenceDocumentItem | vlogp | ReferenceDocumentItem | Reference item | |
| ReferenceDocBusObjType | vlogp | ReferenceDocBusObjType | Pred(BOR) Object Typ | |
| DeliveryDate | vlogp | DeliveryDate | Delivery Date | |
| ExpectedPaymentDate | vlogp | ExpectedPaymentDate | ||
| ProfitCenter | ||||
| ProfitCenterName | ProfitCenterName | Profit Center Name | ||
| BusinessArea | vlogp | BusinessArea | Business Area | |
| PurchasingOrganization | vlogp | PurchasingOrganization | Purchasing Organization | |
| MaterialGroup | vlogp | MaterialGroup | Product Group | |
| IsIntercompanyTransfer | vlogp | IsIntercompanyTransfer | ||
| MTMConditionGroup | ||||
| ExposureDueDate | ||||
| TreasuryPositionLongShortCode | vlogp | TreasuryPositionLongShortCode | ||
| TimeToMaturity | vlogp | TimeToMaturity | Time to Maturity | |
| CmmdtyForwardIndexTimingText | vlogp | CmmdtyForwardIndexTimingText | Timing | |
| CmmdtyForwardIndexTiming | vlogp | CmmdtyForwardIndexTiming | ||
| DerivativeContractMaturityCode | vlogp | DerivativeContractMaturityCode | Contr. Maturity Code | |
| FinancialAssetsMgmtProductType | vlogp | FinancialAssetsMgmtProductType | ||
| FinInstrTransactionCategory | vlogp | FinInstrTransactionCategory | ||
| FinancialInstrumentProductType | vlogp | FinancialInstrumentProductType | ||
| OptionStrikeCurrencyUnit | vlogp | OptionStrikeCurrencyUnit | ||
| OptionStrikeAmount | vlogp | OptionStrikeAmount | ||
| OptionPutCallCode | vlogp | OptionPutCallCode | ||
| ExternalKeyFigureValue | vlogp | ExternalKeyFigureValue | ||
| OptionDeltaFactor | vlogp | OptionDeltaFactor | ||
| DerivativeContrSpecification | vlogp | DerivativeContrSpecification | DCS ID | |
| MarketIdentifierCode | vlogp | MarketIdentifierCode | MIC | |
| MaturityKeyDate | vlogp | MaturityKeyDate | Maturity Key Date | |
| CommodityUnit | vlogp | CommodityUnit | Order Unit | |
| PriceIsRealized | vlogp | PriceIsRealized | ||
| ImplicitFixationIsRelevant | vlogp | ImplicitFixationIsRelevant | ||
| ConditionTermRateIsFixed | vlogp | ConditionTermRateIsFixed | ||
| MaterialStockPriceExposureUnit | MaterialStockPriceExposureUnit | |||
| KeyFiguresUnpricedUndeliveredCtrExpsrQty | ||||
| UnpricedDeliveredCtrExpsrQty | UnpricedDeliveredCtrExpsrQty | |||
| UnpricedContrPriceExposureQty | UnpricedContrPriceExposureQty | |||
| PricedUndeliveredContrExpsrQty | PricedUndeliveredContrExpsrQty | |||
| PricedDeliveredContrExpsrQty | PricedDeliveredContrExpsrQty | |||
| PricedContractsExposureQty | PricedContractsExposureQty | |||
| TodayPricedUndeliveredExpsrQty | TodayPricedUndeliveredExpsrQty | |||
| UndeliveredMarketPrExposureQty | UndeliveredMarketPrExposureQty | |||
| DeliveredMarketPrExposureQty | DeliveredMarketPrExposureQty | |||
| UnrlzdMarketPriceExposureQty | UnrlzdMarketPriceExposureQty | |||
| UnrealizedGoodsRcptPrcExpsrQty | UnrealizedGoodsRcptPrcExpsrQty | |||
| UnrealizedGoodsIssPrcExpsrQty | UnrealizedGoodsIssPrcExpsrQty | |||
| MaterialStockExposureQty | MaterialStockExposureQty | |||
| RealizedMaterialStkPrcExpsrQty | RealizedMaterialStkPrcExpsrQty | |||
| OutrightPriceExposureQty | OutrightPriceExposureQty | |||
| AdjustedReportingDate | vlogp | AdjustedReportingDate | ||
| AdjustedReportingYear | vlogp | AdjustedReportingYear | Reporting Year | |
| AdjustedReportingMonth | vlogp | AdjustedReportingMonth | Reporting Period | |
| SystemMessageText | ||||
| HasError | vlogp | HasError | TRUE | |
| PriceSettingMethod | vlogp | PriceSettingMethod | ||
| PriceSettingMethodStatus | vlogp | PriceSettingMethodStatus | ||
| ValidToDateTime | vlogp | ValidToDateTime | Time Stamp | |
| PricingProcedure | vlogp | PricingProcedure | Procedure | |
| PricingConditionTerm | vlogp | 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_CmmdtyPosCurrentDateQry_2.
-- 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: CCMMPOSCURQRY2
-- 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, P_MinEndOfDayFromDateTime : cmm_min_eod_from_datetime, P_MaxEndOfDayToDateTime : cmm_max_eod_to_datetime, P_MinEODaySnapshotDate : cmm_min_eod_snapshot_date, P_MinPriceQuotationDate : cmm_min_price_quotation_date, P_MaxPriceQuotationDate : cmm_max_price_quotation_date
CREATE VIEW C_CmmdtyPosCurrentDateQry_2 AS
SELECT
resultElement: 'MinimumEndOfDayFromDateTime' AS resultElementMinimumEndOfDayFromDateTime,
resultElement: 'MaximumEndOfDayToDateTime' AS resultElementMaximumEndOfDayToDateTime,
resultElement: 'MinimumEndOfDaySnapshotDate' AS resultElementMinimumEndOfDaySnapshotDate,
resultElement: 'MinimumPriceQuotationDate' AS resultElementMinimumPriceQuotationDate,
resultElement: 'MaximumPriceQuotationDate' AS resultElementMaximumPriceQuotationDate,
P_OptionDeltaMethod : '2' AS P_OptionDeltaMethod2,
P_OptionDeltaThreshold : 1 AS P_OptionDeltaThreshold1,
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.SourceDocumentShortNumber AS SourceDocumentShortNumber,
vlogp.SourceDocumentItem AS SourceDocumentItem,
_SourceDocumentBusObjType._Text[1:Language = :P_Language].BusinessObjectTypeName AS SourceDocumentBusObjTypeName,
vlogp.OriginReferenceDocument AS OriginReferenceDocument,
vlogp.OrignRefDocumentShortNumber AS OrignRefDocumentShortNumber,
vlogp.OriginReferenceDocumentItem AS OriginReferenceDocumentItem,
vlogp.OriginReferenceDocBusObjType AS OriginReferenceDocBusObjType,
vlogp.ReferenceDocumentLongNumber AS ReferenceDocumentLongNumber,
vlogp.ReferenceDocumentItem AS ReferenceDocumentItem,
vlogp.ReferenceDocBusObjType AS ReferenceDocBusObjType,
vlogp.DeliveryDate AS DeliveryDate,
vlogp.ExpectedPaymentDate AS ExpectedPaymentDate,
ProfitCenterName,
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.OptionStrikeCurrencyUnit AS OptionStrikeCurrencyUnit,
vlogp.OptionStrikeAmount AS OptionStrikeAmount,
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_2
;
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