I_CmmdtyHdgBookCompleteDetail
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)
| Source | Alias | Join Type |
|---|---|---|
| cmmt_hb | cmmt_hb | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CmmdtyHdgBookDescriptionText | _CmmdtyHdgBookText | $projection.CommodityHedgeBookIdentifier = _CmmdtyHdgBookText.CommodityHedgeBookIdentifier |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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