P_CmmdtyHdgExpsrMaxVersAtDate

DDL: P_CMMDTYHDGEXPSRMAXVERSATDATE Type: view_entity COMPOSITE

P_CmmdtyHdgExpsrMaxVersAtDate is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CommodityHedgeExposureDetail) and exposes 2 fields with key field CommodityHedgePlanExposureID.

Data Sources (1)

SourceAliasJoin Type
I_CommodityHedgeExposureDetail I_CommodityHedgeExposureDetail from

Parameters (1)

NameTypeDefault
p_evaluation_date abap.dats

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CommodityHedgePlanExposureID CommodityHedgePlanExposureID Plan Exposure ID
CmmdtyHedgePlanExposureVersion

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_CmmdtyHdgExpsrMaxVersAtDate.
-- 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_evaluation_date : abap.dats

CREATE VIEW P_CmmdtyHdgExpsrMaxVersAtDate AS
SELECT
  CommodityHedgePlanExposureID,
  max (CmmdtyHedgePlanExposureVersion) AS CmmdtyHedgePlanExposureVersion
FROM I_CommodityHedgeExposureDetail
;