I_GHOWellWellCompletionTest
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)
| Source | Alias | Join Type |
|---|---|---|
| I_GHOWellCompStandardResults | I_GHOWellCompStandardResults | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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