I_CmmdtyPosValueAtRiskCube
Commodity Position Interface Cube
I_CmmdtyPosValueAtRiskCube is a Composite CDS View (Cube) that provides data about "Commodity Position Interface Cube" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyPosValueAtRiskCnvrsn) and exposes 212 fields with key fields CommodityTransactionType, PricingKey, Version, PricingDocumentItem, ConditionType. It has 32 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyPosValueAtRiskCnvrsn | I_CmmdtyPosValueAtRiskCnvrsn | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| P_DisplayUnitOfMeasure | cds_view_uom | |
| P_EndOfDaySnapshotFromDate | cds_evaluation_date | |
| P_EndOfDaySnapshotToDate | cds_evaluation_date_comp | |
| P_MTMDataSelectionType | cmm_vlogp_consumptiontype | |
| P_OptionDeltaMethod | cds_option_delta_method | |
| P_OptionDeltaThreshold | cds_option_delta_threshold |
Associations (32)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_BusinessObjType | _SourceDocumentBusObjType | $projection.SourceDocumentBusObjType = _SourceDocumentBusObjType.BusinessObjectType |
| [0..1] | I_UnitOfMeasure | _CommodityUnit | $projection.CommodityUnit = _CommodityUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _MaterialStockUnit | $projection.MaterialStockPriceExposureUnit = _MaterialStockUnit.UnitOfMeasure |
| [0..1] | I_PricingStatus | _PricingStatus | $projection.PricingStatus = _PricingStatus.PricingStatus |
| [0..1] | I_DerivativeContrSpec | _DerivativeContrSpecification | $projection.DerivativeContrSpecification = _DerivativeContrSpecification.DerivativeContrSpecification |
| [0..1] | I_CmmdtyDrvtvContrSpec | _ContrSpecificationCommodity | $projection.DerivativeContrSpecification = _ContrSpecificationCommodity.CommodityCurveDrvtvContrSpec and $projection.EvaluationDate >= _ContrSpecificationCommodity.ValidFrom |
| [0..1] | I_DrvtvContrStstcCurrency | _DerivativeStatCurrency | $projection.CompanyCode = _DerivativeStatCurrency.CompanyCode |
| [0..1] | I_FinancialTransaction | _PartnerDetails | $projection.CompanyCode = _PartnerDetails.CompanyCode and $projection.SourceDocument = _PartnerDetails.FinancialTransaction |
| [0..1] | I_MarketIdentCode | _MarketIdentifierCode | $projection.MarketIdentifierCode = _MarketIdentifierCode.MarketIdentifierCode |
| [0..1] | I_Cmmdty | _PhysicalCommodity | $projection.PhysicalCommodity = _PhysicalCommodity.Commodity |
| [0..1] | I_FinAssetsMgntProductType | _FinAssetsMgmtProductType | $projection.FinancialAssetsMgmtProductType = _FinAssetsMgmtProductType.FinancialAssetsMgmtProductType |
| [0..*] | I_ProfitCenter | _ProfitCenter | $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter |
| [1..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_MtmDataSourceType | _MTMDataSourceType | $projection.MTMDataSourceType = _MTMDataSourceType.MTMDataSourceType |
| [0..1] | I_MtmConditionGroup | _MTMConditionGroup | $projection.MTMConditionGroup = _MTMConditionGroup.MTMConditionGroup |
| [0..1] | I_Mtmconditiongroupcategory | _MTMConditionGroupCategory | $projection.MTMConditionGroupCategory = _MTMConditionGroupCategory.MTMConditionGroupCategory |
| [0..1] | I_MtmAdjustmentType | _MTMAdjustmentType | $projection.MTMAdjustmentType = _MTMAdjustmentType.MTMAdjustmentType |
| [0..1] | I_MtmCalculationGroup | _MTMCalculationGroup | $projection.MTMCalculationGroup = _MTMCalculationGroup.MTMCalculationGroup |
| [0..1] | I_BasisID | _BasisID | $projection.BasisID = _BasisID.BasisID |
| [0..1] | I_BusinessObjType | _ReferenceDocBusObjType | $projection.ReferenceDocBusObjType = _ReferenceDocBusObjType.BusinessObjectType |
| [0..1] | I_BusinessObjType | _OriginReferenceDocBusObjType | $projection.OriginReferenceDocBusObjType = _OriginReferenceDocBusObjType.BusinessObjectType |
| [0..1] | I_Supplier | _Creditor | $projection.Creditor = _Creditor.Supplier |
| [0..1] | I_Customer | _SoldToParty | $projection.SoldToParty = _SoldToParty.Customer |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_IncotermsClassification | _IncotermsClassification | $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification |
| [0..*] | I_CmmdtyMtmMessage | _CommodityMarkToMarketMsg | $projection.SystemMessageNumber = _CommodityMarkToMarketMsg.SystemMessageNumber |
| [0..1] | I_AssgmtExchMktIdfrCode | _MicHandpl | $projection.MarketIdentifierCode = _MicHandpl.MarketIdentifierCode |
| [0..1] | I_CmmdtyLatestMarketData | _CommodityCurveValue | $projection.EvaluationDate >= _CommodityCurveValue.CommodityCurveValidFromDate and $projection.ExposureDueDate = _CommodityCurveValue.ForwardQuotationDate and I_CmmdtyPosValueAtRiskCnvrsn.CommodityCurve = _CommodityCurveValue.CommodityCurve |
| [0..1] | I_NearbyMaturityKeyDate | _NearbyMaturityKeyDate | $projection.DerivativeContrSpecification = _NearbyMaturityKeyDate.DerivativeContrSpecification and $projection.DCSPeriodType = _NearbyMaturityKeyDate.DCSPeriodType and $projection.MaturitySelectionType = _NearbyMaturityKeyDate.MaturitySelectionType and $projection.MaturitySelectionRoutine = _NearbyMaturityKeyDate.MaturitySelectionRoutine and $projection.CmmdtyForwardIndexTiming = _NearbyMaturityKeyDate.CmmdtyForwardIndexTiming and SubstitutePriceQuotationDate between _NearbyMaturityKeyDate.NearbyMaturityStartDate and _NearbyMaturityKeyDate.NearbyMaturityEndDate |
| [0..1] | I_CmmdtyValueAtRiskPriceType | _PriceType | $projection.CompanyCode = _PriceType.CompanyCode and $projection.FinancialAssetsMgmtProductType = _PriceType.FinancialAssetsMgmtProductType |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Commodity Position Interface Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ICMMPOSVALRSKCUB | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_CMMDTYPOSVALATRISKCUBE_2 | view |
Fields (212)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CommodityTransactionType | CommodityTransactionType | ||
| KEY | PricingKey | PricingKey | Pricing Key | |
| KEY | Version | |||
| KEY | PricingDocumentItem | PricingDocumentItem | Item | |
| KEY | ConditionType | ConditionType | Condition type | |
| KEY | SubConditionType | SubConditionType | ||
| KEY | VersStockRecordUUID | VersStockRecordUUID | ||
| KEY | EvaluationDate | EvaluationDate | ||
| KEY | PriceQuotationDate | PriceQuotationDate | ||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | CommodityPriceExposure | CommodityPriceExposure | Exposure ID | |
| KEY | CommodityExposureCategory | CommodityExposureCategory | ||
| KEY | CommodityPriceSubExposure | CommodityPriceSubExposure | ||
| EndOfDaySnapshotFromDate | EndOfDaySnapshotFromDate | |||
| EndOfDaySnapshotToDate | EndOfDaySnapshotToDate | |||
| MTMDataSourceType | MTMDataSourceType | Type of Data Record | ||
| EndOfDaySnapshotDateTimeFrom | EndOfDaySnapshotDateTimeFrom | |||
| EndOfDaySnapshotDateTimeTo | EndOfDaySnapshotDateTimeTo | |||
| MaximumVersion | MaximumVersion | Highest Version | ||
| PreviousVersion | PreviousVersion | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| Creditor | Creditor | Supplier | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| Material | Material | Vehicle Model | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Batch | Batch | Lot No. | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| ConditionApplication | ConditionApplication | Application | ||
| SourceDocument | SourceDocument | Document | ||
| SourceDocumentBusObjType | SourceDocumentBusObjType | |||
| OriginReferenceDocumentItem | OriginReferenceDocumentItem | Root Document Item | ||
| OriginReferenceDocBusObjType | OriginReferenceDocBusObjType | Root (BOR) Obj. Type | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| ReferenceDocumentItem | ReferenceDocumentItem | Reference item | ||
| ReferenceDocBusObjType | ReferenceDocBusObjType | Pred(BOR) Object Typ | ||
| ExpectedPaymentDate | ExpectedPaymentDate | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| _ControllingArea | _ControllingArea | |||
| ProfitCenter | ProfitCenter | Profit Center | ||
| _ProfitCenter | _ProfitCenter | |||
| BusinessArea | BusinessArea | Business Area | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| IsIntercompanyTransfer | IsIntercompanyTransfer | |||
| ConditionTermRate | ConditionTermRate | |||
| CommodityPriceFixationStatus | CommodityPriceFixationStatus | |||
| ConditionTermRateCurrency | _ContrSpecificationCommodity | ConditionTermRateMktCurrency | ||
| ConditionTermRateQuantity | ConditionTermRateQuantity | |||
| ConditionTermRateQuantityUnit | ConditionTermRateQuantityUnit | |||
| ConditionTermValue | ConditionTermValue | |||
| ConditionTermValueCurrency | ConditionTermValueCurrency | |||
| ConditionTermRateMktCurrency | ConditionTermRateMktCurrency | |||
| ConditionTermName | ConditionTermName | |||
| ConditionTermStatus | ConditionTermStatus | |||
| RoundingDecimalPlaces | RoundingDecimalPlaces | |||
| ConditionTermRateIsRounded | ConditionTermRateIsRounded | |||
| ConditionTermRateNmrtr | ConditionTermRateNmrtr | |||
| ConditionTermRateDnmntr | ConditionTermRateDnmntr | |||
| ConditionTermExtensionUsage | ConditionTermExtensionUsage | |||
| MaturitySelectionType | MaturitySelectionType | |||
| QuotationPeriodReferenceDate | QuotationPeriodReferenceDate | |||
| CommodityCurve | CommodityCurve | |||
| QuotationKeyType | QuotationKeyType | |||
| QuotationDateList | QuotationDateList | |||
| QuotationPeriodStartDate | QuotationPeriodStartDate | |||
| QuotationPeriodEndDate | QuotationPeriodEndDate | |||
| BasisType | BasisType | Basis Type | ||
| BasisID | BasisID | Basis ID | ||
| QuotationGroup | QuotationGroup | |||
| QuotationGroupCalculationRule | QuotationGroupCalculationRule | |||
| PricingStatus | PricingStatus | |||
| ConditionTermRateFixation | ConditionTermRateFixation | |||
| CndnTermRateFixationDate | CndnTermRateFixationDate | |||
| CndnTermRateFixationTime | CndnTermRateFixationTime | |||
| CndnTermExchRateFixationDate | CndnTermExchRateFixationDate | |||
| CndnTermExchRateFixationTime | CndnTermExchRateFixationTime | |||
| FixedExchRateDate | FixedExchRateDate | |||
| ExchRateMaturityDate | ExchRateMaturityDate | |||
| MaturitySelectionRoutine | MaturitySelectionRoutine | |||
| DCSPeriodType | DCSPeriodType | |||
| CommodityQuantityInTermUnit | CommodityQuantityInTermUnit | |||
| QuantitySign | QuantitySign | Sign of Quantity | ||
| MTMConditionGroupCategory | MTMConditionGroupCategory | |||
| MTMConditionGroup | MTMConditionGroup | |||
| MTMCalculationGroup | MTMCalculationGroup | |||
| MTMAdjustmentType | MTMAdjustmentType | |||
| MTMCalcGrpMarketPriceCondition | MTMCalcGrpMarketPriceCondition | |||
| PriceIsRealized | PriceIsRealized | |||
| ContrPriceExposureIsExecuted | ContrPriceExposureIsExecuted | |||
| ImplicitFixationIsRelevant | ImplicitFixationIsRelevant | |||
| MinimumConditionTermLimitRate | MinimumConditionTermLimitRate | |||
| MaximumConditionTermLimitRate | MaximumConditionTermLimitRate | |||
| ConditionTermLimitRateCurrency | ConditionTermLimitRateCurrency | |||
| ConditionTermLimitRateQuantity | ConditionTermLimitRateQuantity | |||
| CndnTermLimitRateQuantityUnit | CndnTermLimitRateQuantityUnit | |||
| ConditionTermLimitRateStatus | ConditionTermLimitRateStatus | |||
| AdjustedReportingDate | AdjustedReportingDate | |||
| AdjustedReportingYear | AdjustedReportingYear | |||
| AdjustedReportingMonth | AdjustedReportingMonth | |||
| GoodsMovement | GoodsMovement | |||
| MaterialStockPriceExposureUnit | MaterialStockPriceExposureUnit | |||
| ExposureDueDate | ExposureDueDate | |||
| SubstitutePriceQuotationDate | SubstitutePriceQuotationDate | |||
| CashFlowDirection | CashFlowDirection | |||
| TreasuryPositionLongShortCode | TreasuryPositionLongShortCode | |||
| TimeToMaturity | TimeToMaturity | Time to Maturity | ||
| CmmdtyForwardIndexTiming | CmmdtyForwardIndexTiming | |||
| DerivativeContractMaturityCode | DerivativeContractMaturityCode | Contr. Maturity Code | ||
| FinancialInstrProductCategory | FinancialInstrProductCategory | |||
| FinancialAssetsMgmtProductType | FinancialAssetsMgmtProductType | |||
| FinInstrTransactionCategory | FinInstrTransactionCategory | |||
| FinancialInstrumentProductType | FinancialInstrumentProductType | |||
| FinancialInstrActivityCategory | FinancialInstrActivityCategory | |||
| FinancialObject | FinancialObject | |||
| TermStartDate | TermStartDate | |||
| TermEndDate | TermEndDate | |||
| NumberOfCommodityContracts | ||||
| TreasuryPositionAccount | TreasuryPositionAccount | |||
| DerivativeContract | DerivativeContract | |||
| OptionStrikePrice | ||||
| OptionStrikeCurrency | OptionStrikeCurrency | |||
| OptionPutCallCode | OptionPutCallCode | |||
| EndOfDaySnapshotDateTime | EndOfDaySnapshotDateTime | |||
| MTMDataSelectionType | MTMDataSelectionType | |||
| EndOfDaySnapshotDate | EndOfDaySnapshotDate | |||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityStartTime | ValidityStartTime | Valid From Time | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ValidityEndTime | ValidityEndTime | Valid To Time | ||
| ValidityStartDateTime | ValidityStartDateTime | Valid From Timestamp | ||
| ValidityEndDateTime | ValidityEndDateTime | Valid To Timestamp | ||
| PhysicalCommodity | PhysicalCommodity | |||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| DerivativeContrSpecification | DerivativeContrSpecification | DCS ID | ||
| DerivativeContractSpecCategory | _DerivativeContrSpecification | DerivativeContractSpecCategory | ||
| MarketIdentifierCode | MarketIdentifierCode | MIC | ||
| DisplayView | DisplayView | |||
| ConditionTermRateIsFixed | ConditionTermRateIsFixed | |||
| ReportingDate | ReportingDate | |||
| ReportingYear | ReportingYear | |||
| ReportingMonth | ReportingMonth | |||
| HasError | HasError | TRUE | ||
| SystemMessageNumber | SystemMessageNumber | Message Number | ||
| CommodityUnit | CommodityUnit | Order Unit | ||
| CommodityPriceExposureQuantity | CommodityPriceExposureQuantity | |||
| PricedUndeliveredContrExpsrQty | PricedUndeliveredContrExpsrQty | |||
| UnpricedUndeliveredCtrExpsrQty | UnpricedUndeliveredCtrExpsrQty | |||
| UndeliveredMarketPrExposureQty | UndeliveredMarketPrExposureQty | |||
| UnpricedDeliveredCtrExpsrQty | UnpricedDeliveredCtrExpsrQty | |||
| PricedDeliveredContrExpsrQty | PricedDeliveredContrExpsrQty | |||
| DeliveredMarketPrExposureQty | DeliveredMarketPrExposureQty | |||
| UnpricedContrPriceExposureQty | UnpricedContrPriceExposureQty | |||
| UnrlzdMarketPriceExposureQty | UnrlzdMarketPriceExposureQty | |||
| OutrightPriceExposureQty | OutrightPriceExposureQty | |||
| PricedContractsExposureQty | PricedContractsExposureQty | |||
| MaterialStockExposureQty | MaterialStockExposureQty | |||
| UnrealizedGoodsRcptPrcExpsrQty | UnrealizedGoodsRcptPrcExpsrQty | |||
| UnrealizedGoodsIssPrcExpsrQty | UnrealizedGoodsIssPrcExpsrQty | |||
| RealizedMaterialStkPrcExpsrQty | RealizedMaterialStkPrcExpsrQty | |||
| TodayPricedUndeliveredExpsrQty | TodayPricedUndeliveredExpsrQty | |||
| UnrealizedPriceExposureQty | UnrealizedPriceExposureQty | |||
| UnpricedUnrealizedPrcExpsrQty | UnpricedUnrealizedPrcExpsrQty | |||
| TodayUnpricedUnrlzdCtrExpsrQty | TodayUnpricedUnrlzdCtrExpsrQty | |||
| ReducnNoPrcEstablishedExpsrQty | ReducnNoPrcEstablishedExpsrQty | |||
| NoFutureEstabPurchaseContrQty | NoFutureEstabPurchaseContrQty | |||
| NoFutureEstabSalesContrQty | NoFutureEstabSalesContrQty | |||
| FlatPricedContractsQty | FlatPricedContractsQty | |||
| NoFutrEstablishedContrExpsrQty | NoFutrEstablishedContrExpsrQty | |||
| NoBsEstablishedContrExpsrQty | NoBsEstablishedContrExpsrQty | |||
| NoPrcEstablishedContrExpsrQty | NoPrcEstablishedContrExpsrQty | |||
| FixPricedDelivsPriceExpsrQty | FixPricedDelivsPriceExpsrQty | |||
| UndeliveredFixPrCtrPrExpsrQty | UndeliveredFixPrCtrPrExpsrQty | |||
| UnpricedUnrlzdGdsIssExpsrQty | UnpricedUnrlzdGdsIssExpsrQty | |||
| UnpricedUnrlzdGdsRcptExpsrQty | UnpricedUnrlzdGdsRcptExpsrQty | |||
| FixPricedContrPriceExpsrQty | FixPricedContrPriceExpsrQty | |||
| TodayPricedContractsExpsrQty | TodayPricedContractsExpsrQty | |||
| InventoryAndContractsQty | InventoryAndContractsQty | |||
| TotalPhysicalPositionQty | TotalPhysicalPositionQty | |||
| ImpliedFuturesPositionQty | ImpliedFuturesPositionQty | |||
| BasisPositionQty | BasisPositionQty | |||
| _SourceDocumentBusObjType | _SourceDocumentBusObjType | |||
| _CommodityUnit | _CommodityUnit | |||
| _MaterialStockUnit | _MaterialStockUnit | |||
| _PricingStatus | _PricingStatus | |||
| _Companycode | _Companycode | |||
| _DerivativeContrSpecification | _DerivativeContrSpecification | |||
| _ContrSpecificationCommodity | _ContrSpecificationCommodity | |||
| _FinAssetsMgmtProductType | _FinAssetsMgmtProductType | |||
| _MarketIdentifierCode | _MarketIdentifierCode | |||
| _PhysicalCommodity | _PhysicalCommodity | |||
| _MTMDataSourceType | _MTMDataSourceType | |||
| _MTMConditionGroup | _MTMConditionGroup | |||
| _MTMConditionGroupCategory | _MTMConditionGroupCategory | |||
| _MTMAdjustmentType | _MTMAdjustmentType | |||
| _MTMCalculationGroup | _MTMCalculationGroup | |||
| _BasisID | _BasisID | |||
| _ReferenceDocBusObjType | _ReferenceDocBusObjType | |||
| _OriginReferenceDocBusObjType | _OriginReferenceDocBusObjType | |||
| _Creditor | _Creditor | |||
| _SoldToParty | _SoldToParty | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _Material | _Material | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _NearbyMaturityKeyDate | _NearbyMaturityKeyDate | |||
| _CommodityCurveValue | _CommodityCurveValue | |||
| _CommodityMarkToMarketMsg | _CommodityMarkToMarketMsg | |||
| _PriceType | _PriceType |
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 I_CmmdtyPosValueAtRiskCube.
-- 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: ICMMPOSVALRSKCUB
-- Parameters: P_DisplayUnitOfMeasure : cds_view_uom, P_EndOfDaySnapshotFromDate : cds_evaluation_date, P_EndOfDaySnapshotToDate : cds_evaluation_date_comp, P_MTMDataSelectionType : cmm_vlogp_consumptiontype, P_OptionDeltaMethod : cds_option_delta_method, P_OptionDeltaThreshold : cds_option_delta_threshold
CREATE VIEW I_CmmdtyPosValueAtRiskCube AS
SELECT
CommodityTransactionType,
PricingKey,
' ' AS Version,
PricingDocumentItem,
ConditionType,
SubConditionType,
VersStockRecordUUID,
EvaluationDate,
PriceQuotationDate,
CompanyCode,
CommodityPriceExposure,
CommodityExposureCategory,
CommodityPriceSubExposure,
EndOfDaySnapshotFromDate,
EndOfDaySnapshotToDate,
MTMDataSourceType,
EndOfDaySnapshotDateTimeFrom,
EndOfDaySnapshotDateTimeTo,
MaximumVersion,
PreviousVersion,
SalesOrganization,
DistributionChannel,
Division,
Creditor,
SoldToParty,
Material,
Plant,
StorageLocation,
Batch,
IncotermsClassification,
IncotermsTransferLocation,
ConditionApplication,
SourceDocument,
SourceDocumentBusObjType,
OriginReferenceDocumentItem,
OriginReferenceDocBusObjType,
ReferenceDocument,
ReferenceDocumentItem,
ReferenceDocBusObjType,
ExpectedPaymentDate,
ControllingArea,
ProfitCenter,
BusinessArea,
PurchasingOrganization,
MaterialGroup,
IsIntercompanyTransfer,
ConditionTermRate,
CommodityPriceFixationStatus,
_ContrSpecificationCommodity.ConditionTermRateMktCurrency AS ConditionTermRateCurrency,
ConditionTermRateQuantity,
ConditionTermRateQuantityUnit,
ConditionTermValue,
ConditionTermValueCurrency,
ConditionTermRateMktCurrency,
ConditionTermName,
ConditionTermStatus,
RoundingDecimalPlaces,
ConditionTermRateIsRounded,
ConditionTermRateNmrtr,
ConditionTermRateDnmntr,
ConditionTermExtensionUsage,
MaturitySelectionType,
QuotationPeriodReferenceDate,
CommodityCurve,
QuotationKeyType,
QuotationDateList,
QuotationPeriodStartDate,
QuotationPeriodEndDate,
BasisType,
BasisID,
QuotationGroup,
QuotationGroupCalculationRule,
PricingStatus,
ConditionTermRateFixation,
CndnTermRateFixationDate,
CndnTermRateFixationTime,
CndnTermExchRateFixationDate,
CndnTermExchRateFixationTime,
FixedExchRateDate,
ExchRateMaturityDate,
MaturitySelectionRoutine,
DCSPeriodType,
CommodityQuantityInTermUnit,
QuantitySign,
MTMConditionGroupCategory,
MTMConditionGroup,
MTMCalculationGroup,
MTMAdjustmentType,
MTMCalcGrpMarketPriceCondition,
PriceIsRealized,
ContrPriceExposureIsExecuted,
ImplicitFixationIsRelevant,
MinimumConditionTermLimitRate,
MaximumConditionTermLimitRate,
ConditionTermLimitRateCurrency,
ConditionTermLimitRateQuantity,
CndnTermLimitRateQuantityUnit,
ConditionTermLimitRateStatus,
AdjustedReportingDate,
AdjustedReportingYear,
AdjustedReportingMonth,
GoodsMovement,
MaterialStockPriceExposureUnit,
ExposureDueDate,
SubstitutePriceQuotationDate,
CashFlowDirection,
TreasuryPositionLongShortCode,
TimeToMaturity,
CmmdtyForwardIndexTiming,
DerivativeContractMaturityCode,
FinancialInstrProductCategory,
FinancialAssetsMgmtProductType,
FinInstrTransactionCategory,
FinancialInstrumentProductType,
FinancialInstrActivityCategory,
FinancialObject,
TermStartDate,
TermEndDate,
cast( NumberOfCommodityContracts as cmm_contracts_number ) AS NumberOfCommodityContracts,
TreasuryPositionAccount,
DerivativeContract,
cast(OptionStrikePrice as cmm_option_strike_price) AS OptionStrikePrice,
OptionStrikeCurrency,
OptionPutCallCode,
EndOfDaySnapshotDateTime,
MTMDataSelectionType,
EndOfDaySnapshotDate,
ValidityStartDate,
ValidityStartTime,
ValidityEndDate,
ValidityEndTime,
ValidityStartDateTime,
ValidityEndDateTime,
PhysicalCommodity,
DeliveryDate,
DerivativeContrSpecification,
_DerivativeContrSpecification.DerivativeContractSpecCategory AS DerivativeContractSpecCategory,
MarketIdentifierCode,
DisplayView,
ConditionTermRateIsFixed,
ReportingDate,
ReportingYear,
ReportingMonth,
HasError,
SystemMessageNumber,
CommodityUnit,
CommodityPriceExposureQuantity,
PricedUndeliveredContrExpsrQty,
UnpricedUndeliveredCtrExpsrQty,
UndeliveredMarketPrExposureQty,
UnpricedDeliveredCtrExpsrQty,
PricedDeliveredContrExpsrQty,
DeliveredMarketPrExposureQty,
UnpricedContrPriceExposureQty,
UnrlzdMarketPriceExposureQty,
OutrightPriceExposureQty,
PricedContractsExposureQty,
MaterialStockExposureQty,
UnrealizedGoodsRcptPrcExpsrQty,
UnrealizedGoodsIssPrcExpsrQty,
RealizedMaterialStkPrcExpsrQty,
TodayPricedUndeliveredExpsrQty,
UnrealizedPriceExposureQty,
UnpricedUnrealizedPrcExpsrQty,
TodayUnpricedUnrlzdCtrExpsrQty,
ReducnNoPrcEstablishedExpsrQty,
NoFutureEstabPurchaseContrQty,
NoFutureEstabSalesContrQty,
FlatPricedContractsQty,
NoFutrEstablishedContrExpsrQty,
NoBsEstablishedContrExpsrQty,
NoPrcEstablishedContrExpsrQty,
FixPricedDelivsPriceExpsrQty,
UndeliveredFixPrCtrPrExpsrQty,
UnpricedUnrlzdGdsIssExpsrQty,
UnpricedUnrlzdGdsRcptExpsrQty,
FixPricedContrPriceExpsrQty,
TodayPricedContractsExpsrQty,
InventoryAndContractsQty,
TotalPhysicalPositionQty,
ImpliedFuturesPositionQty,
BasisPositionQty
FROM I_CmmdtyPosValueAtRiskCnvrsn
LEFT OUTER JOIN I_BusinessObjType AS _SourceDocumentBusObjType ON SourceDocumentBusObjType = _SourceDocumentBusObjType.BusinessObjectType -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _CommodityUnit ON CommodityUnit = _CommodityUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MaterialStockUnit ON MaterialStockPriceExposureUnit = _MaterialStockUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_PricingStatus AS _PricingStatus ON PricingStatus = _PricingStatus.PricingStatus -- association [0..1]
LEFT OUTER JOIN I_DerivativeContrSpec AS _DerivativeContrSpecification ON DerivativeContrSpecification = _DerivativeContrSpecification.DerivativeContrSpecification -- association [0..1]
LEFT OUTER JOIN I_CmmdtyDrvtvContrSpec AS _ContrSpecificationCommodity ON DerivativeContrSpecification = _ContrSpecificationCommodity.CommodityCurveDrvtvContrSpec AND EvaluationDate >= _ContrSpecificationCommodity.ValidFrom -- association [0..1]
LEFT OUTER JOIN I_DrvtvContrStstcCurrency AS _DerivativeStatCurrency ON CompanyCode = _DerivativeStatCurrency.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_FinancialTransaction AS _PartnerDetails ON CompanyCode = _PartnerDetails.CompanyCode AND SourceDocument = _PartnerDetails.FinancialTransaction -- association [0..1]
LEFT OUTER JOIN I_MarketIdentCode AS _MarketIdentifierCode ON MarketIdentifierCode = _MarketIdentifierCode.MarketIdentifierCode -- association [0..1]
LEFT OUTER JOIN I_Cmmdty AS _PhysicalCommodity ON PhysicalCommodity = _PhysicalCommodity.Commodity -- association [0..1]
LEFT OUTER JOIN I_FinAssetsMgntProductType AS _FinAssetsMgmtProductType ON FinancialAssetsMgmtProductType = _FinAssetsMgmtProductType.FinancialAssetsMgmtProductType -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter -- association [0..*]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [1..1]
LEFT OUTER JOIN I_MtmDataSourceType AS _MTMDataSourceType ON MTMDataSourceType = _MTMDataSourceType.MTMDataSourceType -- association [0..1]
LEFT OUTER JOIN I_MtmConditionGroup AS _MTMConditionGroup ON MTMConditionGroup = _MTMConditionGroup.MTMConditionGroup -- association [0..1]
LEFT OUTER JOIN I_Mtmconditiongroupcategory AS _MTMConditionGroupCategory ON MTMConditionGroupCategory = _MTMConditionGroupCategory.MTMConditionGroupCategory -- association [0..1]
LEFT OUTER JOIN I_MtmAdjustmentType AS _MTMAdjustmentType ON MTMAdjustmentType = _MTMAdjustmentType.MTMAdjustmentType -- association [0..1]
LEFT OUTER JOIN I_MtmCalculationGroup AS _MTMCalculationGroup ON MTMCalculationGroup = _MTMCalculationGroup.MTMCalculationGroup -- association [0..1]
LEFT OUTER JOIN I_BasisID AS _BasisID ON BasisID = _BasisID.BasisID -- association [0..1]
LEFT OUTER JOIN I_BusinessObjType AS _ReferenceDocBusObjType ON ReferenceDocBusObjType = _ReferenceDocBusObjType.BusinessObjectType -- association [0..1]
LEFT OUTER JOIN I_BusinessObjType AS _OriginReferenceDocBusObjType ON OriginReferenceDocBusObjType = _OriginReferenceDocBusObjType.BusinessObjectType -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Creditor ON Creditor = _Creditor.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassification AS _IncotermsClassification ON IncotermsClassification = _IncotermsClassification.IncotermsClassification -- association [0..1]
LEFT OUTER JOIN I_CmmdtyMtmMessage AS _CommodityMarkToMarketMsg ON SystemMessageNumber = _CommodityMarkToMarketMsg.SystemMessageNumber -- association [0..*]
LEFT OUTER JOIN I_AssgmtExchMktIdfrCode AS _MicHandpl ON MarketIdentifierCode = _MicHandpl.MarketIdentifierCode -- association [0..1]
LEFT OUTER JOIN I_CmmdtyLatestMarketData AS _CommodityCurveValue ON EvaluationDate >= _CommodityCurveValue.CommodityCurveValidFromDate AND ExposureDueDate = _CommodityCurveValue.ForwardQuotationDate AND I_CmmdtyPosValueAtRiskCnvrsn.CommodityCurve = _CommodityCurveValue.CommodityCurve -- association [0..1]
LEFT OUTER JOIN I_NearbyMaturityKeyDate AS _NearbyMaturityKeyDate ON DerivativeContrSpecification = _NearbyMaturityKeyDate.DerivativeContrSpecification AND DCSPeriodType = _NearbyMaturityKeyDate.DCSPeriodType AND MaturitySelectionType = _NearbyMaturityKeyDate.MaturitySelectionType AND MaturitySelectionRoutine = _NearbyMaturityKeyDate.MaturitySelectionRoutine AND CmmdtyForwardIndexTiming = _NearbyMaturityKeyDate.CmmdtyForwardIndexTiming AND SubstitutePriceQuotationDate between _NearbyMaturityKeyDate.NearbyMaturityStartDate AND _NearbyMaturityKeyDate.NearbyMaturityEndDate -- association [0..1]
LEFT OUTER JOIN I_CmmdtyValueAtRiskPriceType AS _PriceType ON CompanyCode = _PriceType.CompanyCode AND FinancialAssetsMgmtProductType = _PriceType.FinancialAssetsMgmtProductType -- association [0..1]
;
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