P_CmmdtyHdgHedgingRelationship

DDL: P_CMMDTYHDGHEDGINGRELATIONSHIP Type: view COMPOSITE

P_CmmdtyHdgHedgingRelationship is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_PositionIdentifier, I_TreasurySubPosition) and exposes 12 fields with key fields TrsyPositionIdentificationUUID, TreasuryPosition. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_PositionIdentifier PosIdent from
I_TreasurySubPosition SubPos inner

Parameters (1)

NameTypeDefault
P_EvalDate dats

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_CmmdtyHdgHdggRelshpStsByDate _HrelStatus _HrelStatus.HedgingRelationshipUUID = SubPos.HedgingRelationshipUUID and SubPos.HedgingRelationshipUUID is not initial

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PCMMHDGHREL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY TrsyPositionIdentificationUUID I_PositionIdentifier TrsyPositionIdentificationUUID
KEY TreasuryPosition I_PositionIdentifier TreasuryPosition
TreasuryValuationArea I_PositionIdentifier TreasuryValuationArea Valuation Area
CompanyCode
FinancialTransaction I_PositionIdentifier FinancialTransaction Transaction
FinancialInstrumentProductType I_PositionIdentifier FinancialInstrumentProductType Product Type
HedgingRelationshipUUID I_TreasurySubPosition HedgingRelationshipUUID
HedgingRelationship
HedgingRelationshipFiscalYear
_ProductTypeTxt I_PositionIdentifier _FinancialInstrProdTypeText
_FiscalYear
_CompanyCode

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 P_CmmdtyHdgHedgingRelationship.
-- 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.
-- Parameters: P_EvalDate : dats

CREATE VIEW P_CmmdtyHdgHedgingRelationship AS
SELECT
  PosIdent.TrsyPositionIdentificationUUID AS TrsyPositionIdentificationUUID,
  PosIdent.TreasuryPosition AS TreasuryPosition,
  PosIdent.TreasuryValuationArea AS TreasuryValuationArea,
  SubPos._HedgingRelationship.CompanyCode AS CompanyCode,
  PosIdent.FinancialTransaction AS FinancialTransaction,
  PosIdent.FinancialInstrumentProductType AS FinancialInstrumentProductType,
  SubPos.HedgingRelationshipUUID AS HedgingRelationshipUUID,
  SubPos._HedgingRelationship.HedgingRelationship AS HedgingRelationship,
  SubPos._HedgingRelationship.HedgingRelationshipFiscalYear AS HedgingRelationshipFiscalYear,
  PosIdent._FinancialInstrProdTypeText AS _ProductTypeTxt,
  SubPos._HedgingRelationship._FiscalYear AS _FiscalYear,
  SubPos._HedgingRelationship._CompanyCode AS _CompanyCode
FROM I_PositionIdentifier AS PosIdent
INNER JOIN I_TreasurySubPosition AS SubPos ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_CmmdtyHdgHdggRelshpStsByDate AS _HrelStatus ON _HrelStatus.HedgingRelationshipUUID = SubPos.HedgingRelationshipUUID AND SubPos.HedgingRelationshipUUID is not initial  -- association [0..1]
;