P_CMMDTYHDGSPECMAXORDER

DDL: P_CMMDTYHDGSPECMAXORDER SQL: PCMMHDGSPORDMAX Type: view COMPOSITE

P_CMMDTYHDGSPECMAXORDER is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CmmdtyHdgSpecOrderComposite) and exposes 6 fields with key field CmmdtyHdgSpecificationID.

Data Sources (1)

SourceAliasJoin Type
I_CmmdtyHdgSpecOrderComposite I_CmmdtyHdgSpecOrderComposite from

Annotations (10)

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

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CmmdtyHdgSpecificationID CmmdtyHdgSpecificationID
ValidFrom
CmmdtyHdgSpecQuotaOrderID CmmdtyHdgSpecQuotaOrderID
CmmdtyHdgSpecOrderYear CmmdtyHdgSpecOrderYear
CmmdtyHedgeSpecificationUUID CmmdtyHedgeSpecificationUUID
CmmdtyHdgSpecQuotaPeriodNumber CmmdtyHdgSpecQuotaPeriodNumber

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_CMMDTYHDGSPECMAXORDER.
-- 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: PCMMHDGSPORDMAX

CREATE VIEW P_CMMDTYHDGSPECMAXORDER AS
SELECT
  CmmdtyHdgSpecificationID,
  max(ValidityStartDateTime) AS ValidFrom,
  CmmdtyHdgSpecQuotaOrderID,
  CmmdtyHdgSpecOrderYear,
  CmmdtyHedgeSpecificationUUID,
  CmmdtyHdgSpecQuotaPeriodNumber
FROM I_CmmdtyHdgSpecOrderComposite
;