I_CmmdtyHdgBookCompleteDetail

DDL: I_CMMDTYHDGBOOKCOMPLETEDETAIL SQL: ICMMHEDGBOOK Type: view_entity BASIC

Commodity Hedge Book

I_CmmdtyHdgBookCompleteDetail is a Basic CDS View that provides data about "Commodity Hedge Book" in SAP S/4HANA. It reads from 1 data source (cmmt_hb) and exposes 18 fields with key field CommodityHedgeBookIdentifier. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
cmmt_hb cmmt_hb from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CmmdtyHdgBookDescriptionText _CmmdtyHdgBookText $projection.CommodityHedgeBookIdentifier = _CmmdtyHdgBookText.CommodityHedgeBookIdentifier

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
EndUserText.label Commodity Hedge Book view
VDM.viewType #BASIC view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY CommodityHedgeBookIdentifier hb_id Hedge Book
CommodityHedgePricingPeriod pricing_period Pricing Period Length In Months
DerivativeContrSpecification dcs_id DCS ID
CmmdtyHedgeShiftDeliveryPeriod shift_delivery_period Delivery Latency Period In Months
CommodityHedgeDeliveryPeriod Delivery Period Length In Months
CmmdtyHdgRefDelivPerdShift reference_delivery_perd_shift Delivery Period Shifted By Months
CmmdtyHdgBookAuthznGroup authorizationgroup AuthorizGroup
CmmdtyHedgeBookCreatedByUser Version Created By
CmmdtyHdgBookCreationDateTime created_at Uploaded On
CmmdtyHedgeBookChangedByUser User Name
CmmdtyHdgBookChangedAtDateTime changed_at Timestamp
CmmdtyHdgBookIsDeprecatedFlag is_deprecated Deprecated
FinTransProdCatIsCommoditySwap product_cat_swap Product Category Ind
FinTransProdCatIsCmmdtyForward product_cat_fwd Product Category Ind
FinTransProdCatIsCmmdtyOption product_cat_otc Product Category Ind
FinTransProdCatIsListedOption product_cat_lopt Product Category Ind
FinTransProdCategoryIsFuture product_cat_fut Product Category Ind
_CmmdtyHdgBookText _CmmdtyHdgBookText

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_CmmdtyHdgBookCompleteDetail.
-- 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: ICMMHEDGBOOK

CREATE VIEW I_CmmdtyHdgBookCompleteDetail AS
SELECT
  hb_id AS CommodityHedgeBookIdentifier,
  pricing_period AS CommodityHedgePricingPeriod,
  dcs_id AS DerivativeContrSpecification,
  shift_delivery_period AS CmmdtyHedgeShiftDeliveryPeriod,
  cast(delivery_period as abap.char(10)) AS CommodityHedgeDeliveryPeriod,
  reference_delivery_perd_shift AS CmmdtyHdgRefDelivPerdShift,
  authorizationgroup AS CmmdtyHdgBookAuthznGroup,
  cast( created_by as cmm_hdg_crtd_by ) AS CmmdtyHedgeBookCreatedByUser,
  created_at AS CmmdtyHdgBookCreationDateTime,
  cast( changed_by as cmm_hdg_crtd_by ) AS CmmdtyHedgeBookChangedByUser,
  changed_at AS CmmdtyHdgBookChangedAtDateTime,
  is_deprecated AS CmmdtyHdgBookIsDeprecatedFlag,
  product_cat_swap AS FinTransProdCatIsCommoditySwap,
  product_cat_fwd AS FinTransProdCatIsCmmdtyForward,
  product_cat_otc AS FinTransProdCatIsCmmdtyOption,
  product_cat_lopt AS FinTransProdCatIsListedOption,
  product_cat_fut AS FinTransProdCategoryIsFuture
FROM cmmt_hb
LEFT OUTER JOIN I_CmmdtyHdgBookDescriptionText AS _CmmdtyHdgBookText ON CommodityHedgeBookIdentifier = _CmmdtyHdgBookText.CommodityHedgeBookIdentifier  -- association [0..*]
;