I_HedgingRelationship
Hedging Relationship
I_HedgingRelationship (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Financial Operations
I_HedgingRelationship is a Basic CDS View (Dimension) that provides data about "Hedging Relationship" in SAP S/4HANA. It reads from 1 data source (thxt_hrel) and exposes 19 fields with key field HedgingRelationshipUUID. It has 3 associations to related views.
SAP Help Documentation
| Category | Hedge Accounting |
|---|---|
| Data Category | Dimension |
| Status | Released |
Purpose
This CDS view shows you which hedging relationships exist in the Hedge Accounting for Exposure Items process and gives you detailed information about the hedging relationships. This CDS view provides the prerequisites for answering the following business questions: Which hedging relationships exist? What's the balance sheet recognition date of the hedging relationship? What's the alternative reclassification date of the hedging relationship? What's the snapshot ID of the hedged exposure? What's the relevant hedging area of the hedging relationship? For more information, see also Hedge Accounting for Exposure Items
Prerequisites
Users who want to run reports using this CDS view must have the authorization to display the following data: Hedging relationships The role must grant display authorization for the following authorization objects and fields: Authorization for Hedging Relationship (P-HA) T_HREL_AUT Company Code ( BUKRS ) Valuation Area ( VAL_AREA ) Risk Category ( HR_RISKCAT ), such as FX Risk Hedging Relationship Category ( HR_CAT ), such as Cash Flow Hedge , Fair Value Hedge , and Net Investment Hedge
Structure
The main filters are as follows: Hedging Relationship Number (External/Internal) Fiscal Year of Hedging Relationship Hedging Relationship Description Company Code Treasury Valuation Area Hedging Relationship Status Hedging Profile Measures and attributes Some important measures and attributes are: UUID Representing Hedging Relationship Identification Hedging Relationship Number (External/Internal) Fiscal Year of Hedging Relationship Hedging Relationship Description Company Code Treasury Valuation Area Hedging Relationship Status This status can have the values Created or Revoked . Hedging Profile Risk Currency of Hedging Relationship Rule for Calculating Cost of Hedging Reserve Hedging Area Snapshot ID Split ID Balance Sheet Recognition Date of Hedging Relationship Alternative Reclassification Date
This CDS view shows you which hedging relationships exist in the Hedge Accounting for Exposure Items process and gives you detailed information about the hedging relationships. This CDS view provides the prerequisites for answering the following business questions: Which hedging relationships exist? What's the balance sheet recognition date of the hedging relationship? What's the alternative reclassification date of the hedging relationship? What's the snapshot ID of the hedged exposure? What's the relevant hedging area of the hedging relationship? For more information, see also Hedge Accounting for Exposure Items
Prerequisites
Users who want to run reports using this CDS view must have the authorization to display the following data: Hedging relationships The role must grant display authorization for the following authorization objects and fields: Authorization for Hedging Relationship (P-HA) T_HREL_AUT Company Code ( BUKRS ) Valuation Area ( VAL_AREA ) Risk Category ( HR_RISKCAT ), such as FX Risk Hedging Relationship Category ( HR_CAT ), such as Cash Flow Hedge , Fair Value Hedge , and Net Investment Hedge
Structure
The main filters are as follows: Hedging Relationship Number (External/Internal) Fiscal Year of Hedging Relationship Hedging Relationship Description Company Code Treasury Valuation Area Hedging Relationship Status Hedging Profile Measures and attributes Some important measures and attributes are: UUID Representing Hedging Relationship Identification Hedging Relationship Number (External/Internal) Fiscal Year of Hedging Relationship Hedging Relationship Description Company Code Treasury Valuation Area Hedging Relationship Status This status can have the values Created or Revoked . Hedging Profile Risk Currency of Hedging Relationship Rule for Calculating Cost of Hedging Reserve Hedging Area Snapshot ID Split ID Balance Sheet Recognition Date of Hedging Relationship Alternative Reclassification Date
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | FIN-FSCM-TRM |
| Capabilities | Data Source in SQL Select, Analytical Dimension, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities |
| Package | Financial Operations for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view shows you which hedging relationships exist in the Hedge Accounting for Exposure Items process and gives you detailed information about the hedging relationships.</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which hedging relationships exist?</p></li> <li><p>What's the balance sheet recognition date of the hedging relationship?</p></li> <li><p>What's the alternative reclassification date of the hedging relationship?</p></li> <li><p>What's the snapshot ID of the hedged exposure?</p></li> <li><p>What's the relevant hedging area of the hedging relationship?</p></li> </ul> <p>For more information, see also Hedge Accounting for Exposure Items</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| thxt_hrel | hrel | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_FiscalYearForCompanyCode | _FiscalYear | $projection.HedgingRelationshipFiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode |
| [0..1] | I_TreasuryValuationArea | _TreasuryValuationArea | $projection.TreasuryValuationArea = _TreasuryValuationArea.TreasuryValuationArea |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | IHEDGINGREL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Hedging Relationship | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | HedgingRelationshipUUID | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| Metadata.allowExtensions | true | view | |
| VDM.viewType | #BASIC | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HedgingRelationshipUUID | UUID Representing Hedging Relationship Identification | ||
| HedgingRelationship | thxt_hrel | hrel_number | Hedging Relationship Number (External/Internal) | |
| HedgingRelationshipFiscalYear | Fiscal Year of Hedging Relationship | |||
| HedgingRelationshipName | Hedging Relationship Description | |||
| CompanyCode | Company Code | |||
| TreasuryValuationArea | Treasury Valuation Area | |||
| HedgingRelationshipStatus | Hedging Relationship Status | |||
| HedgingProfile | Hedging Profile | |||
| TrsyHedgingRelshpRiskCurrency | Risk Currency of Hedging Relationship | |||
| TrsyCostHdggRsrvCalcRule | Rule for Calculating Cost of Hedging Reserve | |||
| HedgingArea | thxt_hrel | hrel_hedging_area | Hedging Area | |
| FinNetOpenExposureSnapshot | thxt_hrel | hrel_snapshot_id | Snapshot ID | |
| TrsyHdggRelshpDsgntnSplitID | thxt_hrel | hrel_split_id | Split ID | |
| TrsyHdggRelshpBalShtRecgnDate | Balance Sheet Recognition Date of Hedging Relationship | |||
| TrsyAltvReclassificationDate | Alternative Reclassification Date | |||
| _TrsyHedgingRelshpProfile | _TrsyHedgingRelshpProfile | |||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _TreasuryValuationArea | _TreasuryValuationArea |
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_HedgingRelationship.
-- 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: IHEDGINGREL
CREATE VIEW I_HedgingRelationship AS
SELECT
cast(hrel.os_guid as ftr_gen_hrel_uuid preserving type) AS HedgingRelationshipUUID,
hrel.hrel_number AS HedgingRelationship,
cast(hrel.fiscal_year as ftr_gen_hrel_fiscal_year preserving type) AS HedgingRelationshipFiscalYear,
cast(hrel.description as tpm_hrel_descr preserving type) AS HedgingRelationshipName,
cast(hrel.tr_acc_code as bukrs preserving type) AS CompanyCode,
cast(hrel.valuation_area as tpm_val_area preserving type) AS TreasuryValuationArea,
cast(hrel.hrel_status as ftr_gen_hrel_status preserving type) AS HedgingRelationshipStatus,
cast(hrel.hrel_profile as ftr_gen_hdgg_profile preserving type) AS HedgingProfile,
cast(hrel.hrel_risk_curr as ftr_gen_hrel_risk_currency preserving type) AS TrsyHedgingRelshpRiskCurrency,
cast(hrel.hres_calc_rule as ftr_gen_cost_hres_calc_rule preserving type) AS TrsyCostHdggRsrvCalcRule,
hrel.hrel_hedging_area AS HedgingArea,
hrel.hrel_snapshot_id AS FinNetOpenExposureSnapshot,
hrel.hrel_split_id AS TrsyHdggRelshpDsgntnSplitID,
cast(hrel.hrel_bal_sheet_rec_date as ftr_gen_hrel_bal_sht_recgn_dte preserving type) AS TrsyHdggRelshpBalShtRecgnDate,
cast(hrel.hrel_reclass_st_date as ftr_gen_hrel_altv_reclass_date preserving type) AS TrsyAltvReclassificationDate
FROM thxt_hrel AS hrel
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON HedgingRelationshipFiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_TreasuryValuationArea AS _TreasuryValuationArea ON TreasuryValuationArea = _TreasuryValuationArea.TreasuryValuationArea -- 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