P_CMMDTYHDGSPECMINORDER

DDL: P_CMMDTYHDGSPECMINORDER SQL: PCMMHDGSPORDMIN Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_CmmdtyHdgSpecOrderComposite I_CmmdtyHdgSpecOrderComposite from

Parameters (3)

NameTypeDefault
P_CmmdtyHdgSpecificationID cmm_hs_id
P_Version cmm_hs_version
P_CmmdtyHdgSpecOrderYear cmm_hs_year

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PCMMHDGSPORDMIN 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 (5)

KeyFieldSource TableSource FieldDescription
KEY CmmdtyHdgSpecificationID CmmdtyHdgSpecificationID
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_CMMDTYHDGSPECMINORDER.
-- 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: PCMMHDGSPORDMIN
-- Parameters: P_CmmdtyHdgSpecificationID : cmm_hs_id, P_Version : cmm_hs_version, P_CmmdtyHdgSpecOrderYear : cmm_hs_year

CREATE VIEW P_CMMDTYHDGSPECMINORDER AS
SELECT
  CmmdtyHdgSpecificationID,
  min(CmmdtyHdgSpecQuotaOrderID) AS CmmdtyHdgSpecQuotaOrderID,
  CmmdtyHdgSpecOrderYear,
  CmmdtyHedgeSpecificationUUID,
  CmmdtyHdgSpecQuotaPeriodNumber
FROM I_CmmdtyHdgSpecOrderComposite
;