I_GHOAllocationSummary

DDL: I_GHOALLOCATIONSUMMARY Type: view_entity COMPOSITE

Allocation summary of allocation run

I_GHOAllocationSummary is a Composite CDS View that provides data about "Allocation summary of allocation run" in SAP S/4HANA. It reads from 1 data source (I_GHOProdnAllocationResults) and exposes 7 fields with key field AllocationRunID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_GHOProdnAllocationResults I_GHOProdnAllocationResults from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_GHOAllocSmmryBsdOnQtyCat _PrevAllocPeriod $projection.GHONetworkID = _PrevAllocPeriod.GHONetworkID and $projection.NetworkMedium = _PrevAllocPeriod.NetworkMedium and $projection.AllocationFrequencyCode = _PrevAllocPeriod.AllocationFrequencyCode and _PrevAllocPeriod.ProdnAllocDateTime <= $projection.ProdnAllocDateTime and _PrevAllocPeriod.AllocationRunID <> $projection.AllocationRunID

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Allocation summary of allocation run view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY AllocationRunID AllocationRunID
GHONetworkID GHONetworkID Netw Object ID
NetworkMedium NetworkMedium Medium ID
AllocationFrequencyCode AllocationFrequencyCode Frequency ID
ProdnAllocDateTime ProdnAllocUTCDteTme
_ProductionNetworkDetails _ProductionNetworkDetails
_PrevAllocPeriod _PrevAllocPeriod

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_GHOAllocationSummary.
-- 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.

CREATE VIEW I_GHOAllocationSummary AS
SELECT
  AllocationRunID,
  GHONetworkID,
  NetworkMedium,
  AllocationFrequencyCode,
  ProdnAllocUTCDteTme AS ProdnAllocDateTime
FROM I_GHOProdnAllocationResults
LEFT OUTER JOIN I_GHOAllocSmmryBsdOnQtyCat AS _PrevAllocPeriod ON GHONetworkID = _PrevAllocPeriod.GHONetworkID AND NetworkMedium = _PrevAllocPeriod.NetworkMedium AND AllocationFrequencyCode = _PrevAllocPeriod.AllocationFrequencyCode AND _PrevAllocPeriod.ProdnAllocDateTime <= ProdnAllocDateTime AND _PrevAllocPeriod.AllocationRunID <> AllocationRunID  -- association [0..*]
;