I_PRAValnDocTransVolDetail

DDL: I_PRAVALNDOCTRANSVOLDETAIL Type: view_entity BASIC

PRA Valuation Doc trnx volume detail

I_PRAValnDocTransVolDetail (Basic)

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

PRAValnDocTransVolDetail · Cross Applications

I_PRAValnDocTransVolDetail is a Basic CDS View that provides data about "PRA Valuation Doc trnx volume detail" in SAP S/4HANA. It reads from 1 data source (oiurv_doc_voldtl) and exposes 125 fields with key fields ValuationDocumentNumber, ValuationDocumentYear, ValuationDocumentLineNumber, PRAPositionNumber. It has 9 associations to related views.

SAP Help Documentation

CategoryCDS Views for Production and Revenue Accounting (PRA)
Purpose
This CDS view provides details on the volumes for unit ventures that are processed by the valuation document.

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: O_OIU_TXN:ACTVT-03 (Mapping role for PRAValnDocTransVolDetail )

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentIS-OIL-PRA
CapabilitiesData Source in SQL Select
PackageCross Applications for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides details on the volumes for unit ventures that are processed by the valuation document. </p>

Documentation

Data Sources (1)

SourceAliasJoin Type
oiurv_doc_voldtl oiurv_doc_voldtl from

Associations (9)

CardinalityTargetAliasCondition
[0..1] I_PRAOnshoreOffshoreCodeVH _PRAOnshoreOffshoreCodeVH _PRAOnshoreOffshoreCodeVH.PRAJntVntrOnshoreOffshoreCode = $projection.PRAJntVntrOnshoreOffshoreCode
[0..1] I_PRAValnTransSrceCodeVH _PRAValnTransSrcCodeVH _PRAValnTransSrcCodeVH.PRAValnTransSourceCode = $projection.PRAValnTransSourceCode
[0..1] I_OwnerPaymentStatus _OwnerPaymentStatus _OwnerPaymentStatus.OwnerPaymentStatus = $projection.OwnerPaymentStatus
[0..1] I_PRAJointVentureUsageTypeVH _PRAJointVentureUsageTypeVH _PRAJointVentureUsageTypeVH.PRAJointVentureUsageType = $projection.PRAJointVentureUsageType
[0..1] I_PRAContrAllocMethodCodeVH _PRAAllocMethodCodeVH _PRAAllocMethodCodeVH.PRACntrctlAllocMethodCode = $projection.PRACntrctlAllocMethodCode
[0..1] I_PRALevelCodeVH _PRALevelCodeVH _PRALevelCodeVH.PRALevelCode = $projection.PRALevelCode
[0..1] I_VolumeClass _VolumeClass _VolumeClass.VolumeClass = $projection.VolumeClass
[0..1] I_PRADensityTypeVH _PRADensityTypeVH _PRADensityTypeVH.PRADensityType = $projection.PRADensityType
[0..1] I_PRAWetGasBalancingCodeVH _PRAWetGasBalancingCodeVH _PRAWetGasBalancingCodeVH.PRAWetGasBalancingCode = $projection.PRAWetGasBalancingCode

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label PRA Valuation Doc trnx volume detail view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
ObjectModel.sapObjectNodeType.name PRAValnDocTransVolDetail view

Fields (125)

KeyFieldSource TableSource FieldDescription
KEY ValuationDocumentNumber doc_no Val. document number
KEY ValuationDocumentYear doc_year Mat. Doc. Year
KEY ValuationDocumentLineNumber line_no Document Line Number
KEY PRAPositionNumber pos_no Tax doc. item number
Country land1 Country/Region Key
PrimaryGeogrlLocation pri_geo_loc Primary Geographical Location
SecondaryGeogrlLocation sec_geo_loc Secondary geographic location
PRASchoolDistrictCode school_dist_cd School district code
PRATaxClass tax_cls Tax Class
PRAJntVntrOnshoreOffshoreCode ons_ofs_cd Onshore/Offshore codes
PRAValnTransSourceCode system_srce_cd Valuation Transaction Source Code
OwnerPaymentStatus pay_cd Pay Code
PRAJointVentureUsageType vname_type_cd Venture Usage Type
PRAIsThrtclCondensateTxCalc theo_cnd_tax_fl Theoretical Condensate Tax Calculation Flag
PRACntrctlAllocMethodCode ca_alloc_meth_cd Allocation Method Code
PRARelatedContract related_ct Related Contract
PRALevelCode lvl_cd Level Code
PRAWorkingInterestOwner wi_own_no Working Interest Owner
OwnerInterestType wi_int_type_cd Participant Interest Type
OwnerInterestSequence wi_own_isq_no Owner Interest Sequence Number
CompanyCode tr_bukrs Company Code
JointVenture tr_vname Joint venture
DivisionOfInterest tr_doi Division of Interest (DOI)
PRANetInterestOwner ni_own_no Net Interest Owner
NetInterestOwnerInterestType ni_int_type_cd Participant Interest Type
NetIntrstOwnerInterestSequence ni_own_isq_no Owner Interest Sequence Number
PRAInterestFormulaNumber ni_frml_no Formula Number
PRAIsSmmrzAtDivisionOfInterest tr_doi_sum_fl Summarize RD to DOI Level Flag
PRATotGrssRevnIntrstPercent tot_gri_pc Total Gross Interest %
DOITotalNetRevnIntrstRatio tot_nri_pc Total Net Revenue Interest Percentage
PRAContractDecimalPercent ct_decm Contract Decimal
PRARltvContractDecimalPercent rel_ct_decm Relative Contract Decimal
PRASettlementDecimalPercent sett_decm Sett. Div. Decimal Amount
PRATotMktgGrpGrssRevnIntrstPct tot_mkt_grp_gri Total Market Groups GRI
MeasurementPtType mp_type_cd Measurement point type code
OriginatingMeasurementPt orig_mp_no Original measurement point number
SecondMeasurementPointType mp_type_cd2 Measurement point type code
VolumeType vl_type_cd Volume type code
VolumeClass vl_cls_cd Volume class code
PRAIsActual frml_actl_fl Actual indicator
PRAIsEntitled frml_entl_fl Entitled Flag
PRAIsSettlement frml_sett_fl Settlement Flag
PRATotalContractVolume tot_ct_vl Total Contract Volume
PRATotalContractVolumeUnit tot_ct_vl_u Measurement unit
PRATotalGrossVolume tot_gr_vl Total Gross Volume
PRATotalGrossVolumeUnit tot_gr_vl_u Measurement unit
ActualGrossVolume actl_gr_vl Actual Gross Volume Amount
PRAActualGrossVolumeUnit actl_gr_vl_u Measurement unit
EntldGrossVolume entl_gr_vl Entitled Gross Volume Amount
PRAEntitledGrossVolUnit entl_gr_vl_u Measurement unit
PRASettlementGrossVolume sett_gr_vl Settlement Gross Volume Amount
PRASettlementGrossVolUnit sett_gr_vl_u Measurement unit
PRATotalContractEnergy tot_ct_energy Total contract energy
ActualEnergy actl_energy Actual Energy
PRAActualEnergyUnit actl_energy_u Measurement unit
PRAEntitlementEnergy entl_energy Entitlement Energy
PRAEntitledEnergyUnit entl_energy_u Measurement unit
PRASettlementEnergy sett_energy Settlement Amount
PRASettlementEnergyUnit sett_energy_u Measurement unit
PRAUncorrectedGrossVolume uncr_gr_vl Uncorrected Gross Volume
PRAUncorrectedGrossVolumeUnit uncr_gr_vl_u Measurement unit
PRAUncorrectedSettlmtGrssVol uncr_sett_gr_vl Uncorr. Sett. Div. Gross Volume
PRARunTicketNumber run_tkt_no Run Ticket Number
PRATotalTicketDays tot_tkt_days Total Number of Ticket Days
ProductionDays prd_days Days produced
PRASalesToDate sale_dt_to Sales To-Date
PRASalesFromDate sale_dt_from Sales From-Date
PRATransAcctsRblMsmtPt tank_meter Measurement point number
PRADensityAtStdBaseCndnValue grv_am Oil/gas density at standard/base conditions
PRADensityAtStdBaseCndnUnit density_u Unit for densities at standard/base conditions
PRADensityType dntyp Density Type
PRAHeatingValueFactorUnit heat_value_fct_u Measurement unit
PRAActualHeatingFactorQty act_heat_val_fct Actual Heating Factor
PRASettlmtHeatingValueFctrQty set_heat_val_fct Sett. Stmt. Heating Factor
PRAContrHeatingValueFactorQty ct_heat_val_fct Contract Heating Factor
PRAContrHeatingValueFactorUnit ct_heat_va_fct_u Measurement unit
PRA_CreationDateTime vl_timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
Transporter trnsp_no Transporter number
TransporterReference trnsp_ref_no Transporter Reference Number
PRATransporterRouteCode trnsp_rou_cd Transporter route code
PRAGasLiftWell gaslift_wl_no Well ID number
PRAGasLiftWellCompletion gaslift_wc_no Well Completion Number
PRARejectionReasonCode rej_rsn_cd Rejection Reason Code
PRAReservoirFormationPercent ra_pct RA Formation Percent
PRATakeInKindProcgAgrmtPct tik_pa_pc Processing Agreements Percent
PRAWetGasBalancingCode ca_wgb_cd Wet Gas Balancing Code
PRAIsWetLessResidue calc_wlr_fl Calc. WetLesRes
PRAReturnedToLeasePercent pct_ret_lse Percent Returned to Lease
PRAActualWetLessResidueVolume actl_wlr_vl_am Act. Wet-less-Residue Vol. Amount
PRAActlWetLessResidueVolUnit actl_wlr_vl_am_u Measurement unit
PRAEntldWetLessResidueVolume entl_wlr_vl_am Entl. Wet-less-Residue Vol. Amount
PRAEntldWetLessResidueVolUnit entl_wlr_vl_am_u Measurement unit
PRASettlmtWetLessResidueVolume sett_wlr_vl_am Sett. Wet-less-Residue Vol. Amount
SettlmtWetLessResidueVolUnit sett_wlr_vl_am_u Measurement unit
PRAEntldVolAllocPercent ent_vl_alloc_dec Entitled Volume Allocation Decimal
PRAEntldEnergyAllocPercent ent_eng_allc_dec Entitled Energy Allocation Decimal
PRAEntldSettlmtGrossVolume entl_sett_gr_vl Entitled Sett. Gross Volume
PRAEntldSettlmtGrossVolUnit ent_set_gr_vl_u Measurement unit
PRAEntldSettlmtEnergyQuantity entl_sett_energy Entitiled Sett. Energy
PRAEntldSettlmtEnergyUnit entl_sett_eng_u Measurement unit
CostCenter cost_center Posted Cost Center
PRALeaseVolume lse_vol Lease Volume
PRALeaseVolumeUnit lse_vol_u Measurement unit
PRAValnRejectZeroVolumeCode rej_zv_cd Valuation REJ ZV code
GasPlantJointVenture gplt_vname Gas Plant Venture
GasPlantDivisionOfInterest gplt_doi_doi Gasplant DOI No
PRAOriglGrssRevnIntrstPercent orig_gri_pc Total Gross Interest %
PRAEntldContractDecimalPercent entl_ct_decm Contract Decimal
EntldSettlmtWetLessResidueVol e_set_wlr_vl_am Sett. Wet-less-Residue Vol. Amount
EntldSettlmtWetLessResidueUnit e_set_wlr_vl_a_u Measurement unit
PRAActlPlntThrmlReducnVolume actl_ptr_vl_am Act. Plant thermal reduction Amount
PRAActlPlntThrmlReducnUnit actl_ptr_vl_am_u Measurement unit
PRAEntldPlntThrmlReducnVolume entl_ptr_vl_am Entl. Plant thermal reduction Amount
PRAEntldPlntThrmlReducnUnit entl_ptr_vl_am_u Measurement unit
PRASettlmtPlntThrmlReducnVol sett_ptr_vl_am Sett. Plant thermal reduction Amount
PRASettlmtPlntThrmlReducnUnit sett_ptr_vl_am_u Measurement unit
_PRAOnshoreOffshoreCodeVH _PRAOnshoreOffshoreCodeVH
_PRAValnTransSrcCodeVH _PRAValnTransSrcCodeVH
_OwnerPaymentStatus _OwnerPaymentStatus
_PRAJointVentureUsageTypeVH _PRAJointVentureUsageTypeVH
_PRAAllocMethodCodeVH _PRAAllocMethodCodeVH
_PRALevelCodeVH _PRALevelCodeVH
_VolumeClass _VolumeClass
_PRADensityTypeVH _PRADensityTypeVH
_PRAWetGasBalancingCodeVH _PRAWetGasBalancingCodeVH

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_PRAValnDocTransVolDetail.
-- 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_PRAValnDocTransVolDetail AS
SELECT
  doc_no AS ValuationDocumentNumber,
  doc_year AS ValuationDocumentYear,
  line_no AS ValuationDocumentLineNumber,
  pos_no AS PRAPositionNumber,
  land1 AS Country,
  pri_geo_loc AS PrimaryGeogrlLocation,
  sec_geo_loc AS SecondaryGeogrlLocation,
  school_dist_cd AS PRASchoolDistrictCode,
  tax_cls AS PRATaxClass,
  ons_ofs_cd AS PRAJntVntrOnshoreOffshoreCode,
  system_srce_cd AS PRAValnTransSourceCode,
  pay_cd AS OwnerPaymentStatus,
  vname_type_cd AS PRAJointVentureUsageType,
  theo_cnd_tax_fl AS PRAIsThrtclCondensateTxCalc,
  ca_alloc_meth_cd AS PRACntrctlAllocMethodCode,
  related_ct AS PRARelatedContract,
  lvl_cd AS PRALevelCode,
  wi_own_no AS PRAWorkingInterestOwner,
  wi_int_type_cd AS OwnerInterestType,
  wi_own_isq_no AS OwnerInterestSequence,
  tr_bukrs AS CompanyCode,
  tr_vname AS JointVenture,
  tr_doi AS DivisionOfInterest,
  ni_own_no AS PRANetInterestOwner,
  ni_int_type_cd AS NetInterestOwnerInterestType,
  ni_own_isq_no AS NetIntrstOwnerInterestSequence,
  ni_frml_no AS PRAInterestFormulaNumber,
  tr_doi_sum_fl AS PRAIsSmmrzAtDivisionOfInterest,
  tot_gri_pc AS PRATotGrssRevnIntrstPercent,
  tot_nri_pc AS DOITotalNetRevnIntrstRatio,
  ct_decm AS PRAContractDecimalPercent,
  rel_ct_decm AS PRARltvContractDecimalPercent,
  sett_decm AS PRASettlementDecimalPercent,
  tot_mkt_grp_gri AS PRATotMktgGrpGrssRevnIntrstPct,
  mp_type_cd AS MeasurementPtType,
  orig_mp_no AS OriginatingMeasurementPt,
  mp_type_cd2 AS SecondMeasurementPointType,
  vl_type_cd AS VolumeType,
  vl_cls_cd AS VolumeClass,
  frml_actl_fl AS PRAIsActual,
  frml_entl_fl AS PRAIsEntitled,
  frml_sett_fl AS PRAIsSettlement,
  tot_ct_vl AS PRATotalContractVolume,
  tot_ct_vl_u AS PRATotalContractVolumeUnit,
  tot_gr_vl AS PRATotalGrossVolume,
  tot_gr_vl_u AS PRATotalGrossVolumeUnit,
  actl_gr_vl AS ActualGrossVolume,
  actl_gr_vl_u AS PRAActualGrossVolumeUnit,
  entl_gr_vl AS EntldGrossVolume,
  entl_gr_vl_u AS PRAEntitledGrossVolUnit,
  sett_gr_vl AS PRASettlementGrossVolume,
  sett_gr_vl_u AS PRASettlementGrossVolUnit,
  tot_ct_energy AS PRATotalContractEnergy,
  actl_energy AS ActualEnergy,
  actl_energy_u AS PRAActualEnergyUnit,
  entl_energy AS PRAEntitlementEnergy,
  entl_energy_u AS PRAEntitledEnergyUnit,
  sett_energy AS PRASettlementEnergy,
  sett_energy_u AS PRASettlementEnergyUnit,
  uncr_gr_vl AS PRAUncorrectedGrossVolume,
  uncr_gr_vl_u AS PRAUncorrectedGrossVolumeUnit,
  uncr_sett_gr_vl AS PRAUncorrectedSettlmtGrssVol,
  run_tkt_no AS PRARunTicketNumber,
  tot_tkt_days AS PRATotalTicketDays,
  prd_days AS ProductionDays,
  sale_dt_to AS PRASalesToDate,
  sale_dt_from AS PRASalesFromDate,
  tank_meter AS PRATransAcctsRblMsmtPt,
  grv_am AS PRADensityAtStdBaseCndnValue,
  density_u AS PRADensityAtStdBaseCndnUnit,
  dntyp AS PRADensityType,
  heat_value_fct_u AS PRAHeatingValueFactorUnit,
  act_heat_val_fct AS PRAActualHeatingFactorQty,
  set_heat_val_fct AS PRASettlmtHeatingValueFctrQty,
  ct_heat_val_fct AS PRAContrHeatingValueFactorQty,
  ct_heat_va_fct_u AS PRAContrHeatingValueFactorUnit,
  vl_timestamp AS PRA_CreationDateTime,
  trnsp_no AS Transporter,
  trnsp_ref_no AS TransporterReference,
  trnsp_rou_cd AS PRATransporterRouteCode,
  gaslift_wl_no AS PRAGasLiftWell,
  gaslift_wc_no AS PRAGasLiftWellCompletion,
  rej_rsn_cd AS PRARejectionReasonCode,
  ra_pct AS PRAReservoirFormationPercent,
  tik_pa_pc AS PRATakeInKindProcgAgrmtPct,
  ca_wgb_cd AS PRAWetGasBalancingCode,
  calc_wlr_fl AS PRAIsWetLessResidue,
  pct_ret_lse AS PRAReturnedToLeasePercent,
  actl_wlr_vl_am AS PRAActualWetLessResidueVolume,
  actl_wlr_vl_am_u AS PRAActlWetLessResidueVolUnit,
  entl_wlr_vl_am AS PRAEntldWetLessResidueVolume,
  entl_wlr_vl_am_u AS PRAEntldWetLessResidueVolUnit,
  sett_wlr_vl_am AS PRASettlmtWetLessResidueVolume,
  sett_wlr_vl_am_u AS SettlmtWetLessResidueVolUnit,
  ent_vl_alloc_dec AS PRAEntldVolAllocPercent,
  ent_eng_allc_dec AS PRAEntldEnergyAllocPercent,
  entl_sett_gr_vl AS PRAEntldSettlmtGrossVolume,
  ent_set_gr_vl_u AS PRAEntldSettlmtGrossVolUnit,
  entl_sett_energy AS PRAEntldSettlmtEnergyQuantity,
  entl_sett_eng_u AS PRAEntldSettlmtEnergyUnit,
  cost_center AS CostCenter,
  lse_vol AS PRALeaseVolume,
  lse_vol_u AS PRALeaseVolumeUnit,
  rej_zv_cd AS PRAValnRejectZeroVolumeCode,
  gplt_vname AS GasPlantJointVenture,
  gplt_doi_doi AS GasPlantDivisionOfInterest,
  orig_gri_pc AS PRAOriglGrssRevnIntrstPercent,
  entl_ct_decm AS PRAEntldContractDecimalPercent,
  e_set_wlr_vl_am AS EntldSettlmtWetLessResidueVol,
  e_set_wlr_vl_a_u AS EntldSettlmtWetLessResidueUnit,
  actl_ptr_vl_am AS PRAActlPlntThrmlReducnVolume,
  actl_ptr_vl_am_u AS PRAActlPlntThrmlReducnUnit,
  entl_ptr_vl_am AS PRAEntldPlntThrmlReducnVolume,
  entl_ptr_vl_am_u AS PRAEntldPlntThrmlReducnUnit,
  sett_ptr_vl_am AS PRASettlmtPlntThrmlReducnVol,
  sett_ptr_vl_am_u AS PRASettlmtPlntThrmlReducnUnit
FROM oiurv_doc_voldtl
LEFT OUTER JOIN I_PRAOnshoreOffshoreCodeVH AS _PRAOnshoreOffshoreCodeVH ON _PRAOnshoreOffshoreCodeVH.PRAJntVntrOnshoreOffshoreCode = PRAJntVntrOnshoreOffshoreCode  -- association [0..1]
LEFT OUTER JOIN I_PRAValnTransSrceCodeVH AS _PRAValnTransSrcCodeVH ON _PRAValnTransSrcCodeVH.PRAValnTransSourceCode = PRAValnTransSourceCode  -- association [0..1]
LEFT OUTER JOIN I_OwnerPaymentStatus AS _OwnerPaymentStatus ON _OwnerPaymentStatus.OwnerPaymentStatus = OwnerPaymentStatus  -- association [0..1]
LEFT OUTER JOIN I_PRAJointVentureUsageTypeVH AS _PRAJointVentureUsageTypeVH ON _PRAJointVentureUsageTypeVH.PRAJointVentureUsageType = PRAJointVentureUsageType  -- association [0..1]
LEFT OUTER JOIN I_PRAContrAllocMethodCodeVH AS _PRAAllocMethodCodeVH ON _PRAAllocMethodCodeVH.PRACntrctlAllocMethodCode = PRACntrctlAllocMethodCode  -- association [0..1]
LEFT OUTER JOIN I_PRALevelCodeVH AS _PRALevelCodeVH ON _PRALevelCodeVH.PRALevelCode = PRALevelCode  -- association [0..1]
LEFT OUTER JOIN I_VolumeClass AS _VolumeClass ON _VolumeClass.VolumeClass = VolumeClass  -- association [0..1]
LEFT OUTER JOIN I_PRADensityTypeVH AS _PRADensityTypeVH ON _PRADensityTypeVH.PRADensityType = PRADensityType  -- association [0..1]
LEFT OUTER JOIN I_PRAWetGasBalancingCodeVH AS _PRAWetGasBalancingCodeVH ON _PRAWetGasBalancingCodeVH.PRAWetGasBalancingCode = PRAWetGasBalancingCode  -- association [0..1]
;