I_HedgingRelationship

DDL: I_HEDGINGRELATIONSHIP SQL: IHEDGINGREL Type: view BASIC

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

CategoryHedge Accounting
Data CategoryDimension
StatusReleased
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFIN-FSCM-TRM
CapabilitiesData Source in SQL Select, Analytical Dimension, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageFinancial 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

Data Sources (1)

SourceAliasJoin Type
thxt_hrel hrel from

Associations (3)

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

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

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