I_PRAWellCompletionDated

DDL: I_PRAWELLCOMPLETIONDATED Type: view_entity BASIC

Well Completion Variable Data

I_PRAWellCompletionDated (Basic)

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

PRAWellCompletionDated · Cross Applications

I_PRAWellCompletionDated is a Basic CDS View that provides data about "Well Completion Variable Data" in SAP S/4HANA. It reads from 1 data source (oiu_pr_wcvd) and exposes 32 fields with key fields Well, WellCompletion, EffectiveFromDate. It has 12 associations to related views.

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentIS-OIL-PRA
CapabilitiesAnalytical Dimension, Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source for Data Extraction
PackageCross Applications for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view defines details about a well completion that are effective within a specified date range. This is used for situations in which you want to create a well completion ID specific to a set date range.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
oiu_pr_wcvd oiu_pr_wcvd from

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_PRACrudeType _CrudeType $projection.PRACrudeTypeCode = _CrudeType.PRACrudeTypeCode
[0..1] I_PRACalorificValueClassVH _HeatingValueClass $projection.HeatingValueClass = _HeatingValueClass.PRACalorificValueClass
[0..1] I_Indicator _NetworkIsOperated $projection.NetworkIsOperated = _NetworkIsOperated.IndicatorValue
[0..1] I_Customer _Operator $projection.Operator = _Operator.Customer
[0..1] I_PRAProducingMethodCodeVH _ProducingMethodCode $projection.ProducingMethod = _ProducingMethodCode.ProducingMethod
[0..1] I_WBSElementBasicData _WBSElement $projection.PRAWellCompletionWBSIdentifier = _WBSElement.WBSElementInternalID
[0..1] I_PRAWellClassCodeVH _WellClassCode $projection.PRAWellClassCode = _WellClassCode.PRAWellClassCode
[1..1] I_PRAWell _Well $projection.Well = _Well.Well
[1..1] I_PRAWellCompletion _WellCompletion $projection.Well = _WellCompletion.Well and $projection.WellCompletion = _WellCompletion.WellCompletion
[0..1] I_PRAWellCompletionStatusVH _WellCompletionStatus $projection.PRAWellCompltnStatus = _WellCompletionStatus.PRAWellCompltnStatus

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Well Completion Variable Data view
ObjectModel.representativeKey WellCompletion view
ObjectModel.sapObjectNodeType.name PRAWellCompletionDated view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY Well wl_no Well ID number
KEY WellCompletion wc_no Well Completion Number
KEY EffectiveFromDate eff_from_dt Effective From Date
EffectiveToDate eff_to_dt Effective To Date
HeatingValueClass hvcls Heating Value Class (calorific value class)
PRACrudeTypeCode crud_type_cd Crude type code
NetworkIsOperated op_fl Operated flag
CycleIsContinuous contn_fl Continuous Flag
PRAWellCount wl_count Well Count
ProducingMethod prd_mth_cd Producing method code
PRAWellClassCode wl_class_cd Well class code
CompanyCode bukrs Company Code
CostCenter cost_center Posted Cost Center
Operator operator Type of OPTION component in row type of a Ranges type
PRAWellCompltnStatus status_cd Well completion status code
PRAWellCompletionWBSIdentifier WBS Element
PRAWellCompletionWBSElement WBS Element
PRAExternalLossPercent ext_loss_pc Ext. Loss Percentage
CreatedByUser oiu_cruser Name of Person Responsible for Creating the Object
CreationDateTime oiu_timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
_CompanyCode _CompanyCode
_CreatedByUser _CreatedByUser
_CrudeType _CrudeType
_HeatingValueClass _HeatingValueClass
_NetworkIsOperated _NetworkIsOperated
_Operator _Operator
_ProducingMethodCode _ProducingMethodCode
_WBSElement _WBSElement
_Well _Well
_WellClassCode _WellClassCode
_WellCompletion _WellCompletion
_WellCompletionStatus _WellCompletionStatus

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_PRAWellCompletionDated.
-- 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_PRAWellCompletionDated AS
SELECT
  wl_no AS Well,
  wc_no AS WellCompletion,
  eff_from_dt AS EffectiveFromDate,
  eff_to_dt AS EffectiveToDate,
  hvcls AS HeatingValueClass,
  crud_type_cd AS PRACrudeTypeCode,
  op_fl AS NetworkIsOperated,
  contn_fl AS CycleIsContinuous,
  wl_count AS PRAWellCount,
  prd_mth_cd AS ProducingMethod,
  wl_class_cd AS PRAWellClassCode,
  bukrs AS CompanyCode,
  cost_center AS CostCenter,
  Operator,
  status_cd AS PRAWellCompltnStatus,
  cast ( pspnr as ps_s4_pspnr preserving type ) AS PRAWellCompletionWBSIdentifier,
  cast ( _WBSElement.WBSElement as ps_s4_posid preserving type ) AS PRAWellCompletionWBSElement,
  ext_loss_pc AS PRAExternalLossPercent,
  oiu_cruser AS CreatedByUser,
  oiu_timestamp AS CreationDateTime
FROM oiu_pr_wcvd
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_PRACrudeType AS _CrudeType ON PRACrudeTypeCode = _CrudeType.PRACrudeTypeCode  -- association [0..1]
LEFT OUTER JOIN I_PRACalorificValueClassVH AS _HeatingValueClass ON HeatingValueClass = _HeatingValueClass.PRACalorificValueClass  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _NetworkIsOperated ON NetworkIsOperated = _NetworkIsOperated.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Operator ON Operator = _Operator.Customer  -- association [0..1]
LEFT OUTER JOIN I_PRAProducingMethodCodeVH AS _ProducingMethodCode ON ProducingMethod = _ProducingMethodCode.ProducingMethod  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON PRAWellCompletionWBSIdentifier = _WBSElement.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_PRAWellClassCodeVH AS _WellClassCode ON PRAWellClassCode = _WellClassCode.PRAWellClassCode  -- association [0..1]
LEFT OUTER JOIN I_PRAWell AS _Well ON Well = _Well.Well  -- association [1..1]
LEFT OUTER JOIN I_PRAWellCompletion AS _WellCompletion ON Well = _WellCompletion.Well AND WellCompletion = _WellCompletion.WellCompletion  -- association [1..1]
LEFT OUTER JOIN I_PRAWellCompletionStatusVH AS _WellCompletionStatus ON PRAWellCompltnStatus = _WellCompletionStatus.PRAWellCompltnStatus  -- association [0..1]
;