P_CmmdtyHdgHedgingRelationship
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PositionIdentifier | PosIdent | from |
| I_TreasurySubPosition | SubPos | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_EvalDate | dats |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_CmmdtyHdgHdggRelshpStsByDate | _HrelStatus | _HrelStatus.HedgingRelationshipUUID = SubPos.HedgingRelationshipUUID and SubPos.HedgingRelationshipUUID is not initial |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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