I_PRATstBslnProdnRslts

DDL: I_PRATSTBSLNPRODNRSLTS SQL: IPRATBPR Type: view BASIC

PRA Test validation - Baseline production result

I_PRATstBslnProdnRslts is a Basic CDS View that provides data about "PRA Test validation - Baseline production result" in SAP S/4HANA. It reads from 1 data source (oiutv_wcdvlh_b) and exposes 41 fields with key fields PRATstAllocVersion, WellCompltnVolDoc, WellCompltnVolDocYr.

Data Sources (1)

SourceAliasJoin Type
oiutv_wcdvlh_b oiutv_wcdvlh_b from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPRATBPR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label PRA Test validation - Baseline production result view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (41)

KeyFieldSource TableSource FieldDescription
KEY PRATstAllocVersion pr_version_id VERSION_ID
KEY WellCompltnVolDoc wcdvlh_no Document No.
KEY WellCompltnVolDocYr doc_year Mat. Doc. Year
Well wl_no Well
WellCompletion wc_no Well Completion
DeliveryNetwork dn_no Delivery network ID
EffectiveValidityStartDate eff_from_dt Effective From Date
EffectiveValidityEndDate eff_to_dt Effective To Date
ProductionDate prd_dt Production Date
ReclassifiedMaterial prd_matnr Material
BaselineMaterial matnr Vehicle Model
AllocationFrequency freq_cd Frequency
TankBatteryMeasurementPt tkbtry_mp_no Tk.Batt. MP.No.
VolumeType vt_cd Volume Type
VolumeClass vc_cd Volume Class
VolumeSource vs_cd Volume Source
Transporter trnsp_no Transporter nbr
TransporterReference trnsp_ref_no Trsprt.Ref.
BslnNmbrOfDaysProduced Days produced
TicketNumber tkt_no Ticket Number
TicketDateTime tkt_timestamp Ticket timestp
OriginatingMeasurementPt orig_mp_no Originating MP
ThrtclVolUnit theo_u Theo. unit
TheoreticalVolume theo Theo. volume
ConversionGroup conv_grp Conv. Grp.
StandardVolUnit std_vol_u Unit
BaselineStandardVolume std_vol Volume
EnergyUnit energy_u UoM
BaselineEnergy energy Energy Qty.
HeatingValUnit heat_val_u HV Unit
BaselineHeatingValue heat_val Heat.val.factor
BaselineStandardDensity base_density Std. density
StandardDensityUnit base_density_u Unit
DensityType dentyp Dens. Type
GasMolarVolume mol_volume Ratio/Mole %
InventoryDate invt_dt Inventory date
CrossRefWell xref_wl_no Crossref.Wl.No.
CrossRefWellCompletion xref_wc_no Crossref.WC.No.
CreatedByUser oiu_cruser Created By
CreationDateTime oiu_timestamp Timestamp
SequenceNumber

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_PRATstBslnProdnRslts.
-- 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: IPRATBPR

CREATE VIEW I_PRATstBslnProdnRslts AS
SELECT
  pr_version_id AS PRATstAllocVersion,
  wcdvlh_no AS WellCompltnVolDoc,
  doc_year AS WellCompltnVolDocYr,
  wl_no AS Well,
  wc_no AS WellCompletion,
  dn_no AS DeliveryNetwork,
  eff_from_dt AS EffectiveValidityStartDate,
  eff_to_dt AS EffectiveValidityEndDate,
  prd_dt AS ProductionDate,
  prd_matnr AS ReclassifiedMaterial,
  matnr AS BaselineMaterial,
  freq_cd AS AllocationFrequency,
  tkbtry_mp_no AS TankBatteryMeasurementPt,
  vt_cd AS VolumeType,
  vc_cd AS VolumeClass,
  vs_cd AS VolumeSource,
  trnsp_no AS Transporter,
  trnsp_ref_no AS TransporterReference,
  cast( days_prod as oiu_vdm_int_days_of_prod ) AS BslnNmbrOfDaysProduced,
  tkt_no AS TicketNumber,
  tkt_timestamp AS TicketDateTime,
  orig_mp_no AS OriginatingMeasurementPt,
  theo_u AS ThrtclVolUnit,
  theo AS TheoreticalVolume,
  conv_grp AS ConversionGroup,
  std_vol_u AS StandardVolUnit,
  std_vol AS BaselineStandardVolume,
  energy_u AS EnergyUnit,
  energy AS BaselineEnergy,
  heat_val_u AS HeatingValUnit,
  heat_val AS BaselineHeatingValue,
  base_density AS BaselineStandardDensity,
  base_density_u AS StandardDensityUnit,
  dentyp AS DensityType,
  mol_volume AS GasMolarVolume,
  invt_dt AS InventoryDate,
  xref_wl_no AS CrossRefWell,
  xref_wc_no AS CrossRefWellCompletion,
  oiu_cruser AS CreatedByUser,
  oiu_timestamp AS CreationDateTime,
  cast( '001' as abap.numc(3) ) AS SequenceNumber
FROM oiutv_wcdvlh_b
;