I_DerivativeExpsrPosition
Derivative Position Derivative Cube
I_DerivativeExpsrPosition is a Composite CDS View (Cube) that provides data about "Derivative Position Derivative Cube" in SAP S/4HANA. It reads from 1 data source (I_DrvtvPosInterfaceLayer) and exposes 88 fields with key fields CompanyCode, CommodityPriceExposure, CommodityExposureCategory, CommodityPriceSubExposure, CommodityPriceExposureVersion. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DrvtvPosInterfaceLayer | I_DrvtvPosInterfaceLayer | from |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| P_DisplayUnitOfMeasure | cds_view_uom | |
| P_EvaluationDate | 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 | |
| P_CommodityViewSelectionType | cmm_view_type |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CmmdtyMtmMessage | _CmmdtyMtmMessage | $projection.SystemMessageNumber = _CmmdtyMtmMessage.SystemMessageNumber |
| [0..1] | I_CmmdtyPriceFixationStatus | _CommodityPriceFixationStatus | $projection.CommodityPriceFixationStatus = _CommodityPriceFixationStatus.CommodityPriceFixationStatus |
| [0..1] | I_FinancialinstrProductType | _ProductType | $projection.FinancialAssetsMgmtProductType = _ProductType.FinancialInstrumentProductType |
| [0..1] | I_FinancialInstrTransType | _FinInstrumentProductType | $projection.FinancialAssetsMgmtProductType = _FinInstrumentProductType.FinancialInstrumentProductType and $projection.FinancialInstrumentProductType = _FinInstrumentProductType.FinancialInstrTransactionType |
| [0..1] | I_FinancialTransaction | _FinancialTransaction | $projection.CompanyCode = _FinancialTransaction.CompanyCode and $projection.CommodityPriceExposure = _FinancialTransaction.FinancialTransaction |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Derivative Position Derivative Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IVFINDCUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AbapCatalog.preserveKey | true | view | |
| Metadata.allowExtensions | true | view |
Fields (88)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | CommodityPriceExposure | CommodityPriceExposure | Exposure ID | |
| KEY | CommodityExposureCategory | CommodityExposureCategory | ||
| KEY | CommodityPriceSubExposure | CommodityPriceSubExposure | ||
| KEY | CommodityPriceExposureVersion | CommodityPriceExposureVersion | Exposure Version | |
| CommodityViewTypeText | CommodityViewTypeText | |||
| CommodityViewSelectionType | CommodityViewSelectionType | |||
| ValidityStartDateTime | ValidityStartDateTime | Valid From Timestamp | ||
| ValidityEndDateTime | ValidityEndDateTime | Valid To Timestamp | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityStartTime | ValidityStartTime | Valid From Time | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ValidityEndTime | ValidityEndTime | Valid To Time | ||
| MaximumVersion | MaximumVersion | Highest Version | ||
| RiskAnalyzerVersionUUID | RiskAnalyzerVersionUUID | Version GUID | ||
| ExposureDueDate | ExposureDueDate | |||
| ReportingDate | ReportingDate | |||
| Commodity | Commodity | Commodity Code | ||
| CashFlowDirection | CashFlowDirection | |||
| TreasuryPositionLongShortCode | TreasuryPositionLongShortCode | |||
| DerivativeContrSpecification | DerivativeContrSpecification | DCS ID | ||
| MarketIdentifierCode | MarketIdentifierCode | MIC | ||
| TimeToMaturity | TimeToMaturity | Time to Maturity | ||
| CmmdtyForwardIndexTiming | CmmdtyForwardIndexTiming | |||
| MaturityKeyDate | MaturityKeyDate | Maturity Key Date | ||
| DerivativeContractMaturityCode | DerivativeContractMaturityCode | Contr. Maturity Code | ||
| FinancialInstrProductCategory | FinancialInstrProductCategory | |||
| FinancialAssetsMgmtProductType | FinancialAssetsMgmtProductType | |||
| FinInstrTransactionCategory | FinInstrTransactionCategory | |||
| FinancialInstrumentProductType | FinancialInstrumentProductType | |||
| FinancialInstrActivityCategory | FinancialInstrActivityCategory | |||
| FinancialObject | FinancialObject | |||
| HasError | HasError | TRUE | ||
| SystemMessageNumber | SystemMessageNumber | Message Number | ||
| _CmmdtyMtmMessage | _CmmdtyMtmMessage | |||
| TermStartDate | TermStartDate | |||
| TermEndDate | TermEndDate | |||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| NumberOfCommodityContracts | ||||
| CommodityPriceFixationStatus | ||||
| TreasuryPositionAccount | TreasuryPositionAccount | |||
| DerivativeContract | DerivativeContract | |||
| OptionStrikePrice | ||||
| OptionStrikeCurrency | OptionStrikeCurrency | |||
| OptionPutCallCode | OptionPutCallCode | |||
| OptionExerciseType | OptionExerciseType | |||
| OptionDeltaFactorKeyFigure | OptionDeltaFactorKeyFigure | |||
| OptionThetaKeyFigureValue | OptionThetaKeyFigureValue | |||
| OptionGammaKeyFigureValue | OptionGammaKeyFigureValue | |||
| OptionVegaKeyFigureValue | OptionVegaKeyFigureValue | |||
| OptionRhoKeyFigureValue | OptionRhoKeyFigureValue | |||
| ExternalKeyFigureValue | ExternalKeyFigureValue | |||
| OptionDeltaFactor | OptionDeltaFactor | |||
| OptionThetaValue | OptionThetaValue | |||
| OptionGammaValue | OptionGammaValue | |||
| OptionVegaValue | OptionVegaValue | |||
| OptionRhoValue | OptionRhoValue | |||
| ReportingMonth | ReportingMonth | |||
| ReportingYear | ReportingYear | |||
| EvaluationDate | EvaluationDate | |||
| EndOfDaySnapshotDate | EndOfDaySnapshotDate | |||
| EndOfDaySnapshotDateTime | EndOfDaySnapshotDateTime | |||
| MTMDataSelectionType | MTMDataSelectionType | |||
| FinInstrExternalReference | FinInstrExternalReference | |||
| DisplayView | DisplayView | |||
| TradedDrvtvContrSpecification | TradedDrvtvContrSpecification | |||
| ParDrvtvContractSpecification | ParDrvtvContractSpecification | |||
| RiskViewIsNotRelevant | RiskViewIsNotRelevant | |||
| CommodityPriceExposureUnit | CommodityPriceExposureUnit | |||
| PricedFinancialPositionQty | PricedFinancialPositionQty | |||
| UnpricedFinancialPositionQty | UnpricedFinancialPositionQty | |||
| DueInPastUnpricedFinPosQty | DueInPastUnpricedFinPosQty | |||
| DueMktOnClsUnpricedFinPosQty | DueMktOnClsUnpricedFinPosQty | |||
| DueInFutureUnpricedFinPosQty | DueInFutureUnpricedFinPosQty | |||
| UnpricedContrPriceExposureQty | UnpricedContrPriceExposureQty | |||
| UndeliveredMarketPrExposureQty | UndeliveredMarketPrExposureQty | |||
| OutrightPriceExposureQty | OutrightPriceExposureQty | |||
| FinancialPositionQty | FinancialPositionQty | |||
| _CommodityPriceFixationStatus | _CommodityPriceFixationStatus | |||
| _CompanyCode | _CompanyCode | |||
| _DerivativeContrSpecification | _DerivativeContrSpecification | |||
| _FinAssetsMgmtProductType | _FinAssetsMgmtProductType | |||
| _MarketIdentifierCode | _MarketIdentifierCode | |||
| _PhysicalCommodity | _PhysicalCommodity | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _FinInstrumentProductType | _FinInstrumentProductType | |||
| _ProductType | _ProductType | |||
| _FinancialTransaction | _FinancialTransaction |
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_DerivativeExpsrPosition.
-- 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: IVFINDCUBE
-- Parameters: P_DisplayUnitOfMeasure : cds_view_uom, P_EvaluationDate : 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, P_CommodityViewSelectionType : cmm_view_type
CREATE VIEW I_DerivativeExpsrPosition AS
SELECT
CompanyCode,
CommodityPriceExposure,
CommodityExposureCategory,
CommodityPriceSubExposure,
CommodityPriceExposureVersion,
CommodityViewTypeText,
CommodityViewSelectionType,
ValidityStartDateTime,
ValidityEndDateTime,
ValidityStartDate,
ValidityStartTime,
ValidityEndDate,
ValidityEndTime,
MaximumVersion,
RiskAnalyzerVersionUUID,
ExposureDueDate,
ReportingDate,
Commodity,
CashFlowDirection,
TreasuryPositionLongShortCode,
DerivativeContrSpecification,
MarketIdentifierCode,
TimeToMaturity,
CmmdtyForwardIndexTiming,
MaturityKeyDate,
DerivativeContractMaturityCode,
FinancialInstrProductCategory,
FinancialAssetsMgmtProductType,
FinInstrTransactionCategory,
FinancialInstrumentProductType,
FinancialInstrActivityCategory,
FinancialObject,
HasError,
SystemMessageNumber,
TermStartDate,
TermEndDate,
DeliveryDate,
cast( NumberOfCommodityContracts as cmm_contracts_number) AS NumberOfCommodityContracts,
cast ( CommodityPriceFixationStatus as cmm_fbfix_status ) AS CommodityPriceFixationStatus,
TreasuryPositionAccount,
DerivativeContract,
cast( OptionStrikePrice as cmm_option_strike_price) AS OptionStrikePrice,
OptionStrikeCurrency,
OptionPutCallCode,
OptionExerciseType,
OptionDeltaFactorKeyFigure,
OptionThetaKeyFigureValue,
OptionGammaKeyFigureValue,
OptionVegaKeyFigureValue,
OptionRhoKeyFigureValue,
ExternalKeyFigureValue,
OptionDeltaFactor,
OptionThetaValue,
OptionGammaValue,
OptionVegaValue,
OptionRhoValue,
ReportingMonth,
ReportingYear,
EvaluationDate,
EndOfDaySnapshotDate,
EndOfDaySnapshotDateTime,
MTMDataSelectionType,
FinInstrExternalReference,
DisplayView,
TradedDrvtvContrSpecification,
ParDrvtvContractSpecification,
RiskViewIsNotRelevant,
CommodityPriceExposureUnit,
PricedFinancialPositionQty,
UnpricedFinancialPositionQty,
DueInPastUnpricedFinPosQty,
DueMktOnClsUnpricedFinPosQty,
DueInFutureUnpricedFinPosQty,
UnpricedContrPriceExposureQty,
UndeliveredMarketPrExposureQty,
OutrightPriceExposureQty,
FinancialPositionQty
FROM I_DrvtvPosInterfaceLayer
LEFT OUTER JOIN I_CmmdtyMtmMessage AS _CmmdtyMtmMessage ON SystemMessageNumber = _CmmdtyMtmMessage.SystemMessageNumber -- association [0..*]
LEFT OUTER JOIN I_CmmdtyPriceFixationStatus AS _CommodityPriceFixationStatus ON CommodityPriceFixationStatus = _CommodityPriceFixationStatus.CommodityPriceFixationStatus -- association [0..1]
LEFT OUTER JOIN I_FinancialinstrProductType AS _ProductType ON FinancialAssetsMgmtProductType = _ProductType.FinancialInstrumentProductType -- association [0..1]
LEFT OUTER JOIN I_FinancialInstrTransType AS _FinInstrumentProductType ON FinancialAssetsMgmtProductType = _FinInstrumentProductType.FinancialInstrumentProductType AND FinancialInstrumentProductType = _FinInstrumentProductType.FinancialInstrTransactionType -- association [0..1]
LEFT OUTER JOIN I_FinancialTransaction AS _FinancialTransaction ON CompanyCode = _FinancialTransaction.CompanyCode AND CommodityPriceExposure = _FinancialTransaction.FinancialTransaction -- association [0..1]
;
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