I_GHONetworkMasterDetail

DDL: I_GHONETWORKMASTERDETAIL Type: view_entity COMPOSITE

Network Master details of Allocation run

I_GHONetworkMasterDetail is a Composite CDS View that provides data about "Network Master details of Allocation run" in SAP S/4HANA. It reads from 1 data source (I_GHOProdnAllocationResults) and exposes 20 fields with key field AllocationRunID. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_GHOProdnAllocationResults a from

Associations (4)

CardinalityTargetAliasCondition
[0..1] C_GHODefermentAnalysis _DefermentAnalysis $projection.GHONetworkID = _DefermentAnalysis.GHONetworkID and $projection.NetworkMedium = _DefermentAnalysis.NetworkMedium and $projection.AllocationFrequencyCode = _DefermentAnalysis.AllocationFrequencyCode and $projection.ProductionAllocationDate = _DefermentAnalysis.ProductionDate and $projection.ProductionAllocationTime = _DefermentAnalysis.UpstreamProductionTime and $projection.AllocationRuleUnitOfMsmt = _DefermentAnalysis.AllocationRuleUnitOfMsmt
[0..1] I_GHONtwkObjVarblData _NetworkVarblData $projection.GHONetworkID = _NetworkVarblData.ProductionNetworkID and $projection.ProdnAllocDateTime between _NetworkVarblData.ValidFrom and _NetworkVarblData.ValidTo
[0..1] I_GHOAllocationRunVersion _AllocationRunVersion $projection.GHONetworkID = _AllocationRunVersion.GHONetworkID and $projection.NetworkMedium = _AllocationRunVersion.NetworkMedium and $projection.AllocationFrequencyCode = _AllocationRunVersion.AllocationFrequencyCode and $projection.ProductionAllocationDate = _AllocationRunVersion.ProductionAllocationDate and $projection.ProductionAllocationTime = _AllocationRunVersion.ProductionAllocationTime and $projection.ProductionAllocationType = _AllocationRunVersion.ProductionAllocationType and $projection.NetworkAllocationPurpose = _AllocationRunVersion.NetworkAllocationPurpose and $projection.NetworkAllocationStatus = _AllocationRunVersion.NetworkAllocationStatus
[0..1] I_User _LastChangedByUser _LastChangedByUser.UserID = $projection.LastChangedByUser

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Network Master details of Allocation run view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY AllocationRunID I_GHOProdnAllocationResults AllocationRunID Allocation Run ID
GHONetworkID I_GHOProdnAllocationResults GHONetworkID Netw Object ID
NetworkMedium I_GHOProdnAllocationResults NetworkMedium Medium ID
ProductionAllocationType I_GHOProdnAllocationResults ProductionAllocationType Allocation Type
AllocationFrequencyCode I_GHOProdnAllocationResults AllocationFrequencyCode Frequency ID
ProductionAllocationDate I_GHOProdnAllocationResults ProductionAllocationDate Prod. Start Dt
ProductionAllocationTime I_GHOProdnAllocationResults ProductionAllocationTime Prod St Tme
NetworkAllocationPurpose I_GHOProdnAllocationResults NetworkAllocationPurpose Allocation Purpose
NetworkAllocationStatus I_GHOProdnAllocationResults NetworkAllocationStatus Alloc Run Status
GHOCreatedOnDateTime I_GHOProdnAllocationResults GHOCreatedOnDateTime Req Created Time
GHOChangedOnDateTime I_GHOProdnAllocationResults GHOChangedOnDateTime Changed On
LastChangedByUser
AllocationRuleUnitOfMsmt b AllocationRuleUnitOfMsmt
AllocUnitOfMsmtGroup b AllocUnitOfMsmtGroup
AllocConversionGroup b AllocConversionGroup
_ProductionNetworkDetails I_GHOProdnAllocationResults _ProductionNetworkDetails
_DefermentAnalysis _DefermentAnalysis
_NetworkVarblData _NetworkVarblData
_AllocationRunVersion _AllocationRunVersion
_LastChangedByUser _LastChangedByUser

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_GHONetworkMasterDetail.
-- 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_GHONetworkMasterDetail AS
SELECT
  a.AllocationRunID AS AllocationRunID,
  a.GHONetworkID AS GHONetworkID,
  a.NetworkMedium AS NetworkMedium,
  a.ProductionAllocationType AS ProductionAllocationType,
  a.AllocationFrequencyCode AS AllocationFrequencyCode,
  a.ProductionAllocationDate AS ProductionAllocationDate,
  a.ProductionAllocationTime AS ProductionAllocationTime,
  a.NetworkAllocationPurpose AS NetworkAllocationPurpose,
  a.NetworkAllocationStatus AS NetworkAllocationStatus,
  a.GHOCreatedOnDateTime AS GHOCreatedOnDateTime,
  a.GHOChangedOnDateTime AS GHOChangedOnDateTime,
  case when a.LastChangedByUser is not initial then a.LastChangedByUser else a.CreatedByUser end AS LastChangedByUser,
  b.AllocationRuleUnitOfMsmt AS AllocationRuleUnitOfMsmt,
  b.AllocUnitOfMsmtGroup AS AllocUnitOfMsmtGroup,
  b.AllocConversionGroup AS AllocConversionGroup,
  a._ProductionNetworkDetails AS _ProductionNetworkDetails
FROM I_GHOProdnAllocationResults AS a
LEFT OUTER JOIN C_GHODefermentAnalysis AS _DefermentAnalysis ON GHONetworkID = _DefermentAnalysis.GHONetworkID AND NetworkMedium = _DefermentAnalysis.NetworkMedium AND AllocationFrequencyCode = _DefermentAnalysis.AllocationFrequencyCode AND ProductionAllocationDate = _DefermentAnalysis.ProductionDate AND ProductionAllocationTime = _DefermentAnalysis.UpstreamProductionTime AND AllocationRuleUnitOfMsmt = _DefermentAnalysis.AllocationRuleUnitOfMsmt  -- association [0..1]
LEFT OUTER JOIN I_GHONtwkObjVarblData AS _NetworkVarblData ON GHONetworkID = _NetworkVarblData.ProductionNetworkID AND ProdnAllocDateTime between _NetworkVarblData.ValidFrom AND _NetworkVarblData.ValidTo  -- association [0..1]
LEFT OUTER JOIN I_GHOAllocationRunVersion AS _AllocationRunVersion ON GHONetworkID = _AllocationRunVersion.GHONetworkID AND NetworkMedium = _AllocationRunVersion.NetworkMedium AND AllocationFrequencyCode = _AllocationRunVersion.AllocationFrequencyCode AND ProductionAllocationDate = _AllocationRunVersion.ProductionAllocationDate AND ProductionAllocationTime = _AllocationRunVersion.ProductionAllocationTime AND ProductionAllocationType = _AllocationRunVersion.ProductionAllocationType AND NetworkAllocationPurpose = _AllocationRunVersion.NetworkAllocationPurpose AND NetworkAllocationStatus = _AllocationRunVersion.NetworkAllocationStatus  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON _LastChangedByUser.UserID = LastChangedByUser  -- association [0..1]
;