I_GHOWellWellCompletionTest

DDL: I_GHOWELLWELLCOMPLETIONTEST Type: view_entity COMPOSITE

Well and Well Completion test

I_GHOWellWellCompletionTest is a Composite CDS View that provides data about "Well and Well Completion test" in SAP S/4HANA. It reads from 1 data source (I_GHOWellCompStandardResults) and exposes 23 fields with key fields InspectionLot, GHONetworkID, GHOWellCompletionID, GHOWellID, AllocationRuleUnitOfMsmt. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_GHOWellCompStandardResults I_GHOWellCompStandardResults from

Associations (5)

CardinalityTargetAliasCondition
[0..*] I_GHOUnitOfMsmtRuleExpanded _UnitOfMsmtRule $projection.GHONetworkID = _UnitOfMsmtRule.GHONetworkID and ( $projection.ValidFromDateTime >= _UnitOfMsmtRule.ValidFromDateTime and $projection.ValidToDateTime <= _UnitOfMsmtRule.ValidToDateTime ) and _UnitOfMsmtRule.NetworkMedium = $projection.networkmedium and _UnitOfMsmtRule.AllocationRuleUnitOfMsmt = $projection.allocationruleunitofmsmt
[0..*] I_GHOAllocMsmtPrioRuleExpanded _WellPriorityRules $projection.GHOWellID = _WellPriorityRules.GHONetworkObjectID and $projection.GHONetworkID = _WellPriorityRules.GHONetworkID and ( $projection.ValidFromDateTime >= _WellPriorityRules.ValidFromDateTime and $projection.ValidToDateTime <= _WellPriorityRules.ValidToDateTime ) and $projection.ghowelltestcategoryid = _WellPriorityRules.GHOMeasurementCategoryID
[0..*] I_GHOAllocMsmtPrioRuleExpanded _WellCompPriorityRules $projection.GHOWellCompletionID = _WellCompPriorityRules.GHONetworkObjectID and $projection.GHONetworkID = _WellCompPriorityRules.GHONetworkID and ( $projection.ValidFromDateTime >= _WellCompPriorityRules.ValidFromDateTime and $projection.ValidToDateTime <= _WellCompPriorityRules.ValidToDateTime ) and $projection.ghowelltestcategoryid = _WellCompPriorityRules.GHOMeasurementCategoryID
[0..*] I_GHOAllocMsmtPrioRuleExpanded _AllocMsmtPriorityRules $projection.GHONetworkID = _AllocMsmtPriorityRules.GHONetworkID and ( $projection.ValidFromDateTime >= _AllocMsmtPriorityRules.ValidFromDateTime and $projection.ValidToDateTime <= _AllocMsmtPriorityRules.ValidToDateTime ) and $projection.ghowelltestcategoryid = _AllocMsmtPriorityRules.GHOMeasurementCategoryID
[0..*] I_GHOMsmtCategoryText _MsmtCategoryText $projection.ghowelltestcategoryid = _MsmtCategoryText.GHOMeasurementCategoryID

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Well and Well Completion test 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 (23)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot InspectionLot Inspection Lot
KEY GHONetworkID GHONetworkID Netw Object ID
KEY GHOWellCompletionID GHOWellCompletionID
KEY GHOWellID GHOWellID
KEY AllocationRuleUnitOfMsmt _WellCompStandardItems AllocationRuleUnitOfMsmt
GHOWellTestCategoryID _WellTestPriority GHOWellTestCategoryID
ValidFromDateTime ValidFromDateTime Time Stamp
ValidToDateTime ValidToDateTime Time Stamp
EffectiveFromDateTime EffectiveFromDateTime Valid From Timestamp
EffectiveToDateTime EffectiveToDateTime Valid To Timestamp
MeasurementGroup _WellCompStandardItems MeasurementGroup
AllocationRuleMsmtValue _WellCompStandardItems AllocationRuleMsmtValue
NetworkMedium
_MeasurementGroupText _WellCompStandardItems _MeasurementGroupText
_MediumText
_ProductionNetworkDetails _ProductionNetworkDetails
_WellCompletionID _WellCompletionID
_WellID _WellID
_UnitOfMsmtRule _UnitOfMsmtRule
_WellPriorityRules _WellPriorityRules
_WellCompPriorityRules _WellCompPriorityRules
_AllocMsmtPriorityRules _AllocMsmtPriorityRules
_MsmtCategoryText _MsmtCategoryText

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_GHOWellWellCompletionTest.
-- 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_GHOWellWellCompletionTest AS
SELECT
  InspectionLot,
  GHONetworkID,
  GHOWellCompletionID,
  GHOWellID,
  _WellCompStandardItems.AllocationRuleUnitOfMsmt AS AllocationRuleUnitOfMsmt,
  _WellTestPriority.GHOWellTestCategoryID AS GHOWellTestCategoryID,
  ValidFromDateTime,
  ValidToDateTime,
  EffectiveFromDateTime,
  EffectiveToDateTime,
  _WellCompStandardItems.MeasurementGroup AS MeasurementGroup,
  _WellCompStandardItems.AllocationRuleMsmtValue AS AllocationRuleMsmtValue,
  _WellCompStandardItems._MsmtMappedToMedium.NetworkMedium AS NetworkMedium,
  _WellCompStandardItems._MeasurementGroupText AS _MeasurementGroupText,
  _WellCompStandardItems._MsmtMappedToMedium._MediumText AS _MediumText
FROM I_GHOWellCompStandardResults
LEFT OUTER JOIN I_GHOUnitOfMsmtRuleExpanded AS _UnitOfMsmtRule ON GHONetworkID = _UnitOfMsmtRule.GHONetworkID AND ( ValidFromDateTime >= _UnitOfMsmtRule.ValidFromDateTime AND ValidToDateTime <= _UnitOfMsmtRule.ValidToDateTime ) AND _UnitOfMsmtRule.NetworkMedium = networkmedium AND _UnitOfMsmtRule.AllocationRuleUnitOfMsmt = allocationruleunitofmsmt  -- association [0..*]
LEFT OUTER JOIN I_GHOAllocMsmtPrioRuleExpanded AS _WellPriorityRules ON GHOWellID = _WellPriorityRules.GHONetworkObjectID AND GHONetworkID = _WellPriorityRules.GHONetworkID AND ( ValidFromDateTime >= _WellPriorityRules.ValidFromDateTime AND ValidToDateTime <= _WellPriorityRules.ValidToDateTime ) AND ghowelltestcategoryid = _WellPriorityRules.GHOMeasurementCategoryID  -- association [0..*]
LEFT OUTER JOIN I_GHOAllocMsmtPrioRuleExpanded AS _WellCompPriorityRules ON GHOWellCompletionID = _WellCompPriorityRules.GHONetworkObjectID AND GHONetworkID = _WellCompPriorityRules.GHONetworkID AND ( ValidFromDateTime >= _WellCompPriorityRules.ValidFromDateTime AND ValidToDateTime <= _WellCompPriorityRules.ValidToDateTime ) AND ghowelltestcategoryid = _WellCompPriorityRules.GHOMeasurementCategoryID  -- association [0..*]
LEFT OUTER JOIN I_GHOAllocMsmtPrioRuleExpanded AS _AllocMsmtPriorityRules ON GHONetworkID = _AllocMsmtPriorityRules.GHONetworkID AND ( ValidFromDateTime >= _AllocMsmtPriorityRules.ValidFromDateTime AND ValidToDateTime <= _AllocMsmtPriorityRules.ValidToDateTime ) AND ghowelltestcategoryid = _AllocMsmtPriorityRules.GHOMeasurementCategoryID  -- association [0..*]
LEFT OUTER JOIN I_GHOMsmtCategoryText AS _MsmtCategoryText ON ghowelltestcategoryid = _MsmtCategoryText.GHOMeasurementCategoryID  -- association [0..*]
;