I_GHOAllocMsmtPriorityRules

DDL: I_GHOALLOCMSMTPRIORITYRULES Type: view_entity BASIC

Measurment Priority Allocation Rules

I_GHOAllocMsmtPriorityRules is a Basic CDS View that provides data about "Measurment Priority Allocation Rules" in SAP S/4HANA. It reads from 1 data source (gho_meas_prio_h) and exposes 13 fields with key field MeasurementPriorityIdentifier. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
gho_meas_prio_h gho_meas_prio_h from

Associations (5)

CardinalityTargetAliasCondition
[0..*] I_GHOAllocMsmtPrioRulesItems _MsmtPriorityRulesItems $projection.MeasurementPriorityIdentifier = _MsmtPriorityRulesItems.MeasurementPriorityIdentifier
[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 _MeasurementType _MeasurementType.SAPDataDictionaryDomain = 'GHO_MEAS_TYPE' and $projection.GHOMeasurementType = _MeasurementType.DomainValue

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Measurment Priority 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 (13)

KeyFieldSource TableSource FieldDescription
KEY MeasurementPriorityIdentifier priority_id Meas Priority ID
GHONetworkID Production Flow NW
GHONetworkObjectID Result ID
NetworkMedium medium Medium ID
AllocationFrequencyCode frequency Reporting Frequency
GHOMeasurementType gho_meas_type Measurement Type
ValidFromDateTime valid_from Validity Start Time
ValidToDateTime valid_to Validity End Time
_MsmtPriorityRulesItems _MsmtPriorityRulesItems
_MediumText _MediumText
_FrequencyText _FrequencyText
_ProductionNetworkDetails _ProductionNetworkDetails
_MeasurementType _MeasurementType

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_GHOAllocMsmtPriorityRules.
-- 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_GHOAllocMsmtPriorityRules AS
SELECT
  priority_id AS MeasurementPriorityIdentifier,
  cast(net_id as gho_network_id preserving type ) AS GHONetworkID,
  cast(obj_id as gho_ntwkobj_id preserving type ) AS GHONetworkObjectID,
  medium AS NetworkMedium,
  frequency AS AllocationFrequencyCode,
  gho_meas_type AS GHOMeasurementType,
  valid_from AS ValidFromDateTime,
  valid_to AS ValidToDateTime
FROM gho_meas_prio_h
LEFT OUTER JOIN I_GHOAllocMsmtPrioRulesItems AS _MsmtPriorityRulesItems ON MeasurementPriorityIdentifier = _MsmtPriorityRulesItems.MeasurementPriorityIdentifier  -- 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 _MeasurementType ON _MeasurementType.SAPDataDictionaryDomain = 'GHO_MEAS_TYPE' AND GHOMeasurementType = _MeasurementType.DomainValue  -- association [0..*]
;