I_GHONtwkAllocRules
Network Allocation Rules
I_GHONtwkAllocRules is a Basic CDS View that provides data about "Network Allocation Rules" in SAP S/4HANA. It reads from 1 data source (gho_nwrule_h) and exposes 18 fields with key field NetworkAllocRuleUUID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| gho_nwrule_h | gho_nwrule_h | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_GHONtwkAllocRulesItems | _NtwkAllocRulesItems | $projection.NetworkAllocRuleUUID = _NtwkAllocRulesItems.NetworkAllocRuleUUID |
| [0..*] | I_GhoMediumText | _MediumText | $projection.NetworkMedium = _MediumText.NetworkMedium |
| [0..*] | I_GhoFreqText | _FrequencyText | $projection.AllocationFrequencyCode = _FrequencyText.AllocationFrequencyCode |
| [1..1] | I_GHOProdnNtwkStructure | _ProductionNetworkDetails | $projection.GHONetworkID = _ProductionNetworkDetails.GHONetworkID |
| [0..*] | I_ReadDomainFixedValues | _AllocationBasisText | _AllocationBasisText.SAPDataDictionaryDomain = 'GHO_ALLOC_BASIS' and $projection.NetworkAllocationBasis = _AllocationBasisText.DomainValue |
| [0..*] | I_ReadDomainFixedValues | _TCMText | _TCMText.SAPDataDictionaryDomain = 'GHO_ALLOC_TCM' and $projection.NtwkAllocThrtclCalcMeth = _TCMText.DomainValue |
| [0..*] | I_ReadDomainFixedValues | _GasLiftGasTCMText | _GasLiftGasTCMText.SAPDataDictionaryDomain = 'GHO_ALLOC_TCM' and $projection.NtwkAllocGasLiftThrtclCalcMeth = _GasLiftGasTCMText.DomainValue |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Network Allocation Rules | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | NetworkAllocRuleUUID | nw_rule_id | Network Rule ID | |
| GHONetworkID | Production Flow NW | |||
| NetworkMedium | medium | Medium ID | ||
| AllocationFrequencyCode | frequency | Reporting Frequency | ||
| ValidFrom | valid_from | Validity Start Time | ||
| ValidTo | valid_to | Validity End Time | ||
| NetworkAllocationBasis | alloc_basis | Allocation Basis | ||
| NtwkAllocRuleTolVal | tolerance | Weight Tolerance | ||
| NtwkAllocThrtclCalcMeth | tcm | TCM for Prod | ||
| NtwkAllocNumberOfTests | test_quantity | Test Quantity | ||
| NtwkAllocGasLiftThrtclCalcMeth | glg_tcm | TCM | ||
| _NtwkAllocRulesItems | _NtwkAllocRulesItems | |||
| _MediumText | _MediumText | |||
| _FrequencyText | _FrequencyText | |||
| _AllocationBasisText | _AllocationBasisText | |||
| _TCMText | _TCMText | |||
| _GasLiftGasTCMText | _GasLiftGasTCMText | |||
| _ProductionNetworkDetails | _ProductionNetworkDetails |
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_GHONtwkAllocRules.
-- 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_GHONtwkAllocRules AS
SELECT
nw_rule_id AS NetworkAllocRuleUUID,
cast(net_id as gho_network_id preserving type ) AS GHONetworkID,
medium AS NetworkMedium,
frequency AS AllocationFrequencyCode,
valid_from AS ValidFrom,
valid_to AS ValidTo,
alloc_basis AS NetworkAllocationBasis,
tolerance AS NtwkAllocRuleTolVal,
tcm AS NtwkAllocThrtclCalcMeth,
test_quantity AS NtwkAllocNumberOfTests,
glg_tcm AS NtwkAllocGasLiftThrtclCalcMeth
FROM gho_nwrule_h
LEFT OUTER JOIN I_GHONtwkAllocRulesItems AS _NtwkAllocRulesItems ON NetworkAllocRuleUUID = _NtwkAllocRulesItems.NetworkAllocRuleUUID -- association [0..*]
LEFT OUTER JOIN I_GhoMediumText AS _MediumText ON NetworkMedium = _MediumText.NetworkMedium -- association [0..*]
LEFT OUTER JOIN I_GhoFreqText AS _FrequencyText ON AllocationFrequencyCode = _FrequencyText.AllocationFrequencyCode -- association [0..*]
LEFT OUTER JOIN I_GHOProdnNtwkStructure AS _ProductionNetworkDetails ON GHONetworkID = _ProductionNetworkDetails.GHONetworkID -- association [1..1]
LEFT OUTER JOIN I_ReadDomainFixedValues AS _AllocationBasisText ON _AllocationBasisText.SAPDataDictionaryDomain = 'GHO_ALLOC_BASIS' AND NetworkAllocationBasis = _AllocationBasisText.DomainValue -- association [0..*]
LEFT OUTER JOIN I_ReadDomainFixedValues AS _TCMText ON _TCMText.SAPDataDictionaryDomain = 'GHO_ALLOC_TCM' AND NtwkAllocThrtclCalcMeth = _TCMText.DomainValue -- association [0..*]
LEFT OUTER JOIN I_ReadDomainFixedValues AS _GasLiftGasTCMText ON _GasLiftGasTCMText.SAPDataDictionaryDomain = 'GHO_ALLOC_TCM' AND NtwkAllocGasLiftThrtclCalcMeth = _GasLiftGasTCMText.DomainValue -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA