I_CommodityHedgeSwapHedgeBook

DDL: I_COMMODITYHEDGESWAPHEDGEBOOK SQL: ICMMSWAPHB Type: view COMPOSITE

Hedge Books for Commodity Swap

I_CommodityHedgeSwapHedgeBook is a Composite CDS View that provides data about "Hedge Books for Commodity Swap" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyHdgBookCompleteDetail) and exposes 7 fields with key field FinancialTransactionHedgeBook. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CmmdtyHdgBookCompleteDetail I_CmmdtyHdgBookCompleteDetail from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_DerivativeContractSpecText _DerivativeContractSpecText $projection.FinancialTransactionDCSID = _DerivativeContractSpecText.DerivativeContrSpecification and _DerivativeContractSpecText.Language = $session.system_language
[0..1] I_CmmdtyHdgPlnExpsrHedgeBookT _HedgeBookText $projection.FinancialTransactionHedgeBook = _HedgeBookText.CmmdtyHdgPlanExposureHedgeBook and _HedgeBookText.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ICMMSWAPHB view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
VDM.viewType #COMPOSITE view
EndUserText.label Hedge Books for Commodity Swap view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY FinancialTransactionHedgeBook CommodityHedgeBookIdentifier Hedge Book
FinancialTransactionDCSID DerivativeContrSpecification DCS ID
FinTransProdCatIsCommoditySwap FinTransProdCatIsCommoditySwap Product Category Ind
FinTransProdCatIsCmmdtyForward FinTransProdCatIsCmmdtyForward Product Category Ind
CmmdtyHdgBookAuthznGroup CmmdtyHdgBookAuthznGroup AuthorizGroup
_DerivativeContractSpecText _DerivativeContractSpecText
_HedgeBookText _HedgeBookText

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_CommodityHedgeSwapHedgeBook.
-- 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: ICMMSWAPHB

CREATE VIEW I_CommodityHedgeSwapHedgeBook AS
SELECT
  CommodityHedgeBookIdentifier AS FinancialTransactionHedgeBook,
  DerivativeContrSpecification AS FinancialTransactionDCSID,
  FinTransProdCatIsCommoditySwap,
  FinTransProdCatIsCmmdtyForward,
  CmmdtyHdgBookAuthznGroup
FROM I_CmmdtyHdgBookCompleteDetail
LEFT OUTER JOIN I_DerivativeContractSpecText AS _DerivativeContractSpecText ON FinancialTransactionDCSID = _DerivativeContractSpecText.DerivativeContrSpecification AND _DerivativeContractSpecText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CmmdtyHdgPlnExpsrHedgeBookT AS _HedgeBookText ON FinancialTransactionHedgeBook = _HedgeBookText.CmmdtyHdgPlanExposureHedgeBook AND _HedgeBookText.Language = $session.system_language  -- association [0..1]
;