I_WellCompletion

DDL: I_WELLCOMPLETION SQL: IPVWELLCOMPLTN Type: view BASIC

Well Completion

I_WellCompletion (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

ProductionRevenueAccountingWellCompletion · Cross Applications

I_WellCompletion is a Basic CDS View (Dimension) that provides data about "Well Completion" in SAP S/4HANA. It reads from 1 data source (oiu_pr_wc) and exposes 45 fields with key fields Well, WellCompletion. It has 17 associations to related views. It is exposed through 2 OData services (UI_INTERESTDETAILSDATAMANAGE, UI_INTRSTOWNRDETSDATAMANAGE).

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentIS-OIL-PRA
CapabilitiesData Source in SQL Select, Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source for Data Extraction
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
oiu_pr_wc oiu_pr_wc from

Associations (17)

CardinalityTargetAliasCondition
[0..1] I_Well _Well $projection.Well = _Well.Well
[0..1] I_DevelopmentProgramNmbr _DevelopmentProgramNmbr $projection.DevelopmentProgramNmbr = _DevelopmentProgramNmbr.DevelopmentProgramNmbr
[0..1] I_WellPurpose _WellPurpose $projection.WellPurpose = _WellPurpose.WellPurpose
[0..1] I_WellCompletionHier _WellCompletionHier $projection.WellCompletionHier = _WellCompletionHier.WellCompletionHier
[0..1] I_Country _Country $projection.Country = _Country.Country
[0..1] I_PrimaryGeogrlLocation _PrimaryGeogrlLocation $projection.Country = _PrimaryGeogrlLocation.Country and $projection.PrimaryGeogrlLocation = _PrimaryGeogrlLocation.PrimaryGeogrlLocation
[0..1] I_SecondaryGeogrlLocation _SecondaryGeogrlLocation $projection.Country = _SecondaryGeogrlLocation.Country and $projection.PrimaryGeogrlLocation = _SecondaryGeogrlLocation.PrimaryGeogrlLocation and $projection.SecondaryGeogrlLocation = _SecondaryGeogrlLocation.SecondaryGeogrlLocation
[0..1] I_OffshorePlatform _OffshorePlatform $projection.OffshorePlatform = _OffshorePlatform.OffshorePlatform
[0..1] I_Reservoir _Reservoir $projection.Reservoir = _Reservoir.Reservoir
[0..1] I_ReservoirZone _ReservoirZone $projection.Reservoir = _ReservoirZone.Reservoir and $projection.ReservoirZone = _ReservoirZone.ReservoirZone
[0..1] I_GeologicField _GeologicField $projection.GeologicField = _GeologicField.GeologicField
[0..1] I_OrganizationalUnit _OrganizationalUnit $projection.OrganizationalUnit = _OrganizationalUnit.OrganizationalUnit
[0..1] I_OrganizationalUnit2 _OrganizationalUnit2 $projection.OrganizationalUnit = _OrganizationalUnit2.OrganizationalUnit and $projection.OrganizationalUnit2 = _OrganizationalUnit2.OrganizationalUnit2
[0..1] I_OrganizationalUnit3 _OrganizationalUnit3 $projection.OrganizationalUnit = _OrganizationalUnit3.OrganizationalUnit and $projection.OrganizationalUnit2 = _OrganizationalUnit3.OrganizationalUnit2 and $projection.OrganizationalUnit3 = _OrganizationalUnit3.OrganizationalUnit3
[0..1] I_OrganizationalUnit4 _OrganizationalUnit4 $projection.OrganizationalUnit = _OrganizationalUnit4.OrganizationalUnit and $projection.OrganizationalUnit2 = _OrganizationalUnit4.OrganizationalUnit2 and $projection.OrganizationalUnit3 = _OrganizationalUnit4.OrganizationalUnit3 and $projection.OrganizationalUnit4 = _OrganizationalUnit4.OrganizationalUnit4
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_Indicator _CoalBedMethaneRptgIsEnabled $projection.CoalBedMethaneRptgIsEnabled = _CoalBedMethaneRptgIsEnabled.IndicatorValue

Annotations (15)

NameValueLevelField
EndUserText.label Well Completion view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IPVWELLCOMPLTN view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey WellCompletion view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view

OData Services (2)

ServiceBindingVersionContractRelease
UI_INTERESTDETAILSDATAMANAGE UI_INTRSTDETAILSDATAMANAGE V2 C1 NOT_RELEASED
UI_INTRSTOWNRDETSDATAMANAGE UI_INTRSTOWNRDETSMANAGE V2 C1 NOT_RELEASED

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY Well wl_no Well ID number
KEY WellCompletion wc_no Well Completion Number
WellCompletionName Well Completion Name
APIWellCompletionNumber api_wc_no API well completion number
DevelopmentProgramNmbr dev_pgm_no Development program number
LatitudeUnit Unit of Measure
WellCompletionLatitude lat_no Latitude number
WellCompltnLatitudeDirection lat_dir_cd Latitude direction code
LongitudeUnit Unit of Measure
WellCompletionLongitude lng_no Longitude
WellCompltnLongitudeDirection lng_dir_cd Longitude Direction Code
Country Country/Region Key
PrimaryGeogrlLocation pri_geo_loc Primary Geographical Location
SecondaryGeogrlLocation sec_geo_loc Secondary geographic location
OffshorePlatform pf_no Platform number
Reservoir resrv Reservoir ID
ReservoirZone reszn Reservoir Zone
GeologicField field Logical Field
WellPurpose pur_cd Well purpose code
AlternateWellCompletionKey alt_wc_key Alternate WC Key
WellCompletionHier wc_set Well Completion Hierarchy Group
OrganizationalUnit or1_or_lvl_1_no Org. Level 1 - Company
OrganizationalUnit2 or2_or_lvl_2_no Second-highest organization level number ( Company Code)
OrganizationalUnit3 or3_or_lvl_3_no Third-highest organization level number ( Company Code)
OrganizationalUnit4 or4_or_lvl_4_no Fourth-highest organization level number ( Company Code)
CoalBedMethaneRptgIsEnabled cbm_indicator Coal Bed Methane Indicator
CreatedByUser Created By
CreationDateTime Created On Timestamp
_Well _Well
_DevelopmentProgramNmbr _DevelopmentProgramNmbr
_WellPurpose _WellPurpose
_WellCompletionHier _WellCompletionHier
_Country _Country
_PrimaryGeogrlLocation _PrimaryGeogrlLocation
_SecondaryGeogrlLocation _SecondaryGeogrlLocation
_OffshorePlatform _OffshorePlatform
_Reservoir _Reservoir
_ReservoirZone _ReservoirZone
_GeologicField _GeologicField
_CoalBedMethaneRptgIsEnabled _CoalBedMethaneRptgIsEnabled
_OrganizationalUnit _OrganizationalUnit
_OrganizationalUnit2 _OrganizationalUnit2
_OrganizationalUnit3 _OrganizationalUnit3
_OrganizationalUnit4 _OrganizationalUnit4
_CreatedByUser _CreatedByUser

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_WellCompletion.
-- 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.
-- SQL view name: IPVWELLCOMPLTN

CREATE VIEW I_WellCompletion AS
SELECT
  wl_no AS Well,
  wc_no AS WellCompletion,
  cast (name as oiu_wc_nm preserving type) AS WellCompletionName,
  api_wc_no AS APIWellCompletionNumber,
  dev_pgm_no AS DevelopmentProgramNmbr,
  cast ( 'DEG' as oiu_uom ) AS LatitudeUnit,
  lat_no AS WellCompletionLatitude,
  lat_dir_cd AS WellCompltnLatitudeDirection,
  cast ( 'DEG' as oiu_uom ) AS LongitudeUnit,
  lng_no AS WellCompletionLongitude,
  lng_dir_cd AS WellCompltnLongitudeDirection,
  cast( cntry_cd as land1_gp ) AS Country,
  pri_geo_loc AS PrimaryGeogrlLocation,
  sec_geo_loc AS SecondaryGeogrlLocation,
  pf_no AS OffshorePlatform,
  resrv AS Reservoir,
  reszn AS ReservoirZone,
  field AS GeologicField,
  pur_cd AS WellPurpose,
  alt_wc_key AS AlternateWellCompletionKey,
  wc_set AS WellCompletionHier,
  or1_or_lvl_1_no AS OrganizationalUnit,
  or2_or_lvl_2_no AS OrganizationalUnit2,
  or3_or_lvl_3_no AS OrganizationalUnit3,
  or4_or_lvl_4_no AS OrganizationalUnit4,
  cbm_indicator AS CoalBedMethaneRptgIsEnabled,
  cast( oiu_cruser as fclm_bam_created_by ) AS CreatedByUser,
  cast( oiu_timestamp as oiu_vdm_created_on_ts ) AS CreationDateTime
FROM oiu_pr_wc
LEFT OUTER JOIN I_Well AS _Well ON Well = _Well.Well  -- association [0..1]
LEFT OUTER JOIN I_DevelopmentProgramNmbr AS _DevelopmentProgramNmbr ON DevelopmentProgramNmbr = _DevelopmentProgramNmbr.DevelopmentProgramNmbr  -- association [0..1]
LEFT OUTER JOIN I_WellPurpose AS _WellPurpose ON WellPurpose = _WellPurpose.WellPurpose  -- association [0..1]
LEFT OUTER JOIN I_WellCompletionHier AS _WellCompletionHier ON WellCompletionHier = _WellCompletionHier.WellCompletionHier  -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country  -- association [0..1]
LEFT OUTER JOIN I_PrimaryGeogrlLocation AS _PrimaryGeogrlLocation ON Country = _PrimaryGeogrlLocation.Country AND PrimaryGeogrlLocation = _PrimaryGeogrlLocation.PrimaryGeogrlLocation  -- association [0..1]
LEFT OUTER JOIN I_SecondaryGeogrlLocation AS _SecondaryGeogrlLocation ON Country = _SecondaryGeogrlLocation.Country AND PrimaryGeogrlLocation = _SecondaryGeogrlLocation.PrimaryGeogrlLocation AND SecondaryGeogrlLocation = _SecondaryGeogrlLocation.SecondaryGeogrlLocation  -- association [0..1]
LEFT OUTER JOIN I_OffshorePlatform AS _OffshorePlatform ON OffshorePlatform = _OffshorePlatform.OffshorePlatform  -- association [0..1]
LEFT OUTER JOIN I_Reservoir AS _Reservoir ON Reservoir = _Reservoir.Reservoir  -- association [0..1]
LEFT OUTER JOIN I_ReservoirZone AS _ReservoirZone ON Reservoir = _ReservoirZone.Reservoir AND ReservoirZone = _ReservoirZone.ReservoirZone  -- association [0..1]
LEFT OUTER JOIN I_GeologicField AS _GeologicField ON GeologicField = _GeologicField.GeologicField  -- association [0..1]
LEFT OUTER JOIN I_OrganizationalUnit AS _OrganizationalUnit ON OrganizationalUnit = _OrganizationalUnit.OrganizationalUnit  -- association [0..1]
LEFT OUTER JOIN I_OrganizationalUnit2 AS _OrganizationalUnit2 ON OrganizationalUnit = _OrganizationalUnit2.OrganizationalUnit AND OrganizationalUnit2 = _OrganizationalUnit2.OrganizationalUnit2  -- association [0..1]
LEFT OUTER JOIN I_OrganizationalUnit3 AS _OrganizationalUnit3 ON OrganizationalUnit = _OrganizationalUnit3.OrganizationalUnit AND OrganizationalUnit2 = _OrganizationalUnit3.OrganizationalUnit2 AND OrganizationalUnit3 = _OrganizationalUnit3.OrganizationalUnit3  -- association [0..1]
LEFT OUTER JOIN I_OrganizationalUnit4 AS _OrganizationalUnit4 ON OrganizationalUnit = _OrganizationalUnit4.OrganizationalUnit AND OrganizationalUnit2 = _OrganizationalUnit4.OrganizationalUnit2 AND OrganizationalUnit3 = _OrganizationalUnit4.OrganizationalUnit3 AND OrganizationalUnit4 = _OrganizationalUnit4.OrganizationalUnit4  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _CoalBedMethaneRptgIsEnabled ON CoalBedMethaneRptgIsEnabled = _CoalBedMethaneRptgIsEnabled.IndicatorValue  -- association [0..1]
;