I_DerivativeExpsrPosition

DDL: I_DERIVATIVEEXPSRPOSITION SQL: IVFINDCUBE Type: view COMPOSITE

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)

SourceAliasJoin Type
I_DrvtvPosInterfaceLayer I_DrvtvPosInterfaceLayer from

Parameters (7)

NameTypeDefault
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)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 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,
  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]
;