I_PRAWell

DDL: I_PRAWELL Type: view_entity BASIC

I_PRAWell is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (oiu_pr_well) and exposes 40 fields with key field Well. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oiu_pr_well oiu_pr_well from

Associations (8)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _DrillOutDepthUnit $projection.PRADrillOutDepthUnit = _DrillOutDepthUnit.UnitOfMeasure and _DrillOutDepthUnit.UnitOfMeasureDimension = 'LENGTH'
[0..1] I_UnitOfMeasure _TargetDepthUnit $projection.PRATargetDepthUnit = _TargetDepthUnit.UnitOfMeasure and _TargetDepthUnit.UnitOfMeasureDimension = 'LENGTH'
[0..1] I_UnitOfMeasure _LatitudeUnit $projection.LatitudeUnit = _LatitudeUnit.UnitOfMeasure and _LatitudeUnit.UnitOfMeasureDimension = 'AAAADL'
[0..1] I_UnitOfMeasure _GroundLevelElevationUnit $projection.PRAGroundLevelElevationUnit = _GroundLevelElevationUnit.UnitOfMeasure and _GroundLevelElevationUnit.UnitOfMeasureDimension = 'LENGTH'
[0..1] I_UnitOfMeasure _LongitudeUnit $projection.LongitudeUnit = _LongitudeUnit.UnitOfMeasure and _LongitudeUnit.UnitOfMeasureDimension = 'AAAADL'
[0..1] I_PRAWellNumberRangeGroup _PRAWellNumberRangeGroup $projection.PRAWellNumberRangeGroup = _PRAWellNumberRangeGroup.PRAWellNumberRangeGroup
[0..1] I_PRAWellDeviation _PRAWellDeviation $projection.PRAWellDrilledFlag = _PRAWellDeviation.PRAWellDrilledFlag
[1..*] I_PRAWellMsmtDocumentItem _PRAWellMsmtDocumentItem $projection.Well = _PRAWellMsmtDocumentItem.Well

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view
ObjectModel.representativeKey Well view
ObjectModel.sapObjectNodeType.name PRAWell view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY Well wl_no Well
WellName Well Description
APIWellNumber API Well Number
PRAWellDescription shtxt Unit
PRAWellDrilledFlag dev_cd Well drilled
PRAGroundLevelElevationUnit gle_u GLE unit
PRAGroundLvlElevationInQty gle GL elevation
PRASlotNumber slot_no Slot Number
LatitudeUnit
LongitudeUnit
PRAWellLatitudeInQuantity sur_lat_no Latitude
WellLatitudeDirection sur_lat_d_cd Latitude Dir.
PRAWellLongitudeInQuantity sur_lng_no Longitude
WellLongitudeDirection sur_lng_d_cd Longitude Dir.
PRALegalDescription leg_de Legal Desc.
PRADrillOutDepthUnit do_dpth_u DO depth unit
PRADrillOutDepthInQuantity do_dpth Drill-out depth
PRAQuarter1Number qtr_1_no Qtr 1
PRAQuarter2Number qtr_2_no Qtr 2
PRASectionNumber section_no Section
PRATownshipNumber twp_no Township
PRATownshipDirection twp_dir_cd Township dir.
PRARangeNumber rng_no Range
PRARangeDirection rng_dir_cd Range Direction
PRATargetDepthUnit targ_dpth_u TD unit
PRATargetDepthInQuantity targ_dpth Target depth
ONRROwnership mms_owner_cd MMS Ownership
PRAWellNumberRangeGroup wl_grp WL Number Group
PRAWellDocumentNumber docnr Well doc.no.
PRAWellDocumentYear docyr Year
CreatedByUser Created By
CreationDateTime Timestamp
_DrillOutDepthUnit _DrillOutDepthUnit
_TargetDepthUnit _TargetDepthUnit
_LatitudeUnit _LatitudeUnit
_LongitudeUnit _LongitudeUnit
_GroundLevelElevationUnit _GroundLevelElevationUnit
_PRAWellNumberRangeGroup _PRAWellNumberRangeGroup
_PRAWellDeviation _PRAWellDeviation
_PRAWellMsmtDocumentItem _PRAWellMsmtDocumentItem

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_PRAWell.
-- 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_PRAWell AS
SELECT
  wl_no AS Well,
  cast (wl_de as oiu_wl_de preserving type) AS WellName,
  cast (api_no as oiuya_co_wlapi preserving type) AS APIWellNumber,
  shtxt AS PRAWellDescription,
  dev_cd AS PRAWellDrilledFlag,
  gle_u AS PRAGroundLevelElevationUnit,
  gle AS PRAGroundLvlElevationInQty,
  slot_no AS PRASlotNumber,
  cast ( 'DEG' as oiu_uom ) AS LatitudeUnit,
  cast ( 'DEG' as oiu_uom ) AS LongitudeUnit,
  sur_lat_no AS PRAWellLatitudeInQuantity,
  sur_lat_d_cd AS WellLatitudeDirection,
  sur_lng_no AS PRAWellLongitudeInQuantity,
  sur_lng_d_cd AS WellLongitudeDirection,
  leg_de AS PRALegalDescription,
  do_dpth_u AS PRADrillOutDepthUnit,
  do_dpth AS PRADrillOutDepthInQuantity,
  qtr_1_no AS PRAQuarter1Number,
  qtr_2_no AS PRAQuarter2Number,
  section_no AS PRASectionNumber,
  twp_no AS PRATownshipNumber,
  twp_dir_cd AS PRATownshipDirection,
  rng_no AS PRARangeNumber,
  rng_dir_cd AS PRARangeDirection,
  targ_dpth_u AS PRATargetDepthUnit,
  targ_dpth AS PRATargetDepthInQuantity,
  mms_owner_cd AS ONRROwnership,
  wl_grp AS PRAWellNumberRangeGroup,
  docnr AS PRAWellDocumentNumber,
  docyr AS PRAWellDocumentYear,
  cast( oiu_cruser as fclm_bam_created_by ) AS CreatedByUser,
  cast( oiu_timestamp as oiu_vdm_created_on_ts ) AS CreationDateTime
FROM oiu_pr_well
LEFT OUTER JOIN I_UnitOfMeasure AS _DrillOutDepthUnit ON PRADrillOutDepthUnit = _DrillOutDepthUnit.UnitOfMeasure AND _DrillOutDepthUnit.UnitOfMeasureDimension = 'LENGTH'  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TargetDepthUnit ON PRATargetDepthUnit = _TargetDepthUnit.UnitOfMeasure AND _TargetDepthUnit.UnitOfMeasureDimension = 'LENGTH'  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _LatitudeUnit ON LatitudeUnit = _LatitudeUnit.UnitOfMeasure AND _LatitudeUnit.UnitOfMeasureDimension = 'AAAADL'  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _GroundLevelElevationUnit ON PRAGroundLevelElevationUnit = _GroundLevelElevationUnit.UnitOfMeasure AND _GroundLevelElevationUnit.UnitOfMeasureDimension = 'LENGTH'  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _LongitudeUnit ON LongitudeUnit = _LongitudeUnit.UnitOfMeasure AND _LongitudeUnit.UnitOfMeasureDimension = 'AAAADL'  -- association [0..1]
LEFT OUTER JOIN I_PRAWellNumberRangeGroup AS _PRAWellNumberRangeGroup ON PRAWellNumberRangeGroup = _PRAWellNumberRangeGroup.PRAWellNumberRangeGroup  -- association [0..1]
LEFT OUTER JOIN I_PRAWellDeviation AS _PRAWellDeviation ON PRAWellDrilledFlag = _PRAWellDeviation.PRAWellDrilledFlag  -- association [0..1]
LEFT OUTER JOIN I_PRAWellMsmtDocumentItem AS _PRAWellMsmtDocumentItem ON Well = _PRAWellMsmtDocumentItem.Well  -- association [1..*]
;