I_CmmdtyHdgExpsrLtstRelByDate

DDL: I_CMMDTYHDGEXPSRLTSTRELBYDATE SQL: ICMMEXPLSTRLDDTE Type: view COMPOSITE

Exposure Latest Release By Date

I_CmmdtyHdgExpsrLtstRelByDate is a Composite CDS View that provides data about "Exposure Latest Release By Date" in SAP S/4HANA. It reads from 1 data source (I_CmHdgExpsrLtstRelByValidFrom) and exposes 7 fields with key fields CommodityHedgePlanExposureID, CmmdtyHdgPlnExpsrValidFromDate. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_CmHdgExpsrLtstRelByValidFrom I_CmHdgExpsrLtstRelByValidFrom from

Parameters (1)

NameTypeDefault
P_EvalDate dats

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CmmdtyHedgeReleasedExposure _ReleasedExposure $projection.CommodityHedgePlanExposureID = _ReleasedExposure.CommodityHedgePlanExposureID and $projection.CmmdtyHdgPlnExpsrValidFromDate = _ReleasedExposure.CmmdtyHdgPlnExpsrValidFromDate

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICMMEXPLSTRLDDTE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Exposure Latest Release By Date view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CommodityHedgePlanExposureID CommodityHedgePlanExposureID Plan Exposure ID
KEY CmmdtyHdgPlnExpsrValidFromDate CmmdtyHdgPlnExpsrValidFromDate Valid-From Date
CmmdtyHdgPlnExpsrLastDateTime
CmmdtyHdgPlnExpsrCompanyCode CmmdtyHdgPlnExpsrCompanyCode Company Code
CmmdtyHedgePlanExposureDCSID CmmdtyHedgePlanExposureDCSID DCS ID
CmmdtyHdgBookAuthznGroup CmmdtyHdgBookAuthznGroup
PhysicalCommodity PhysicalCommodity

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

CREATE VIEW I_CmmdtyHdgExpsrLtstRelByDate AS
SELECT
  CommodityHedgePlanExposureID,
  CmmdtyHdgPlnExpsrValidFromDate,
  cast( max( _ReleasedExposure.CmmdtyHdgPlnExpsrChgDateTime ) as timestampl preserving type ) AS CmmdtyHdgPlnExpsrLastDateTime,
  CmmdtyHdgPlnExpsrCompanyCode,
  CmmdtyHedgePlanExposureDCSID,
  CmmdtyHdgBookAuthznGroup,
  PhysicalCommodity
FROM I_CmHdgExpsrLtstRelByValidFrom
LEFT OUTER JOIN I_CmmdtyHedgeReleasedExposure AS _ReleasedExposure ON CommodityHedgePlanExposureID = _ReleasedExposure.CommodityHedgePlanExposureID AND CmmdtyHdgPlnExpsrValidFromDate = _ReleasedExposure.CmmdtyHdgPlnExpsrValidFromDate  -- association [0..*]
;