C_ONRRRptgHistPRADetQ

DDL: C_ONRRRPTGHISTPRADETQ SQL: CPVONRRREPHISDQ Type: view CONSUMPTION

ONRR PRA Reporting Details Query

C_ONRRRptgHistPRADetQ (Consumption)

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

Cross Applications

C_ONRRRptgHistPRADetQ is a Consumption CDS View that provides data about "ONRR PRA Reporting Details Query" in SAP S/4HANA. It reads from 1 data source (I_ONRRRptgHistoryPRADetails) and exposes 69 fields.

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentIS-OIL-PRA
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_ONRRRptgHistoryPRADetails I_ONRRRptgHistoryPRADetails from

Annotations (9)

NameValueLevelField
EndUserText.label ONRR PRA Reporting Details Query view
Analytics.query true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AbapCatalog.sqlViewName CPVONRRREPHISDQ view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view

Fields (69)

KeyFieldSource TableSource FieldDescription
SalesDate SalesDate Sales Date / Month
CompanyCode CompanyCode Receiver Company Code
JointVenture JointVenture Joint venture
DivisionOfInterest DivisionOfInterest Division of Interest (DOI)
Well Well Well ID number
WellCompletion WellCompletion Well Completion Number
PRAContract PRAContract Contract Number
VolumeType VolumeType Volume Type Code
Product Product Full three char. product code (Major and Detail Products)
PRAOwner PRAOwner Owner Number
GLAccount GLAccount G/L Account Number
CostCenter CostCenter Cost Center
ONRRBusinessTransactionType ONRRBusinessTransactionType ONRR-2014 - PRA Detail Line Type
ProcessRun ProcessRun Proc 2.0 - Run ID
AgencyReportType AgencyReportType Proc 2.0 - Amended/Current Indicator
PriorPeriodAdjustmentReason PriorPeriodAdjustmentReason Prior Period Adjustment Reason Code
VolumeUnit VolumeUnit Volume Base Unit of Measure
EnergyUnit EnergyUnit Energy Base Unit Of Measure
Currency Currency Valuation Crcy
DeliveryNetwork DeliveryNetwork Delivery network number
MasterDataRecordingLvl MasterDataRecordingLvl ONRR-2014 - Master Level
ONRRPayerCode ONRRPayerCode ONRR-2014 - Payor Code
ONRRLease ONRRLease ONRR-2014 - Lease Number
ONRRAgreement ONRRAgreement ONRR-2014 - Agreement Number
IsCompensatoryRoyalty IsCompensatoryRoyalty ONRR-2014 - Compensatory Royalty Flag
IsSection6LeaseOverride IsSection6LeaseOverride ONRR-2014 - Section 6 Lease Flag
IsShallowWaterRoyaltyRelieved IsShallowWaterRoyaltyRelieved ONRR-2014 - Royalty Relief - Shallow Flag
IsDeepWaterRoyaltyRelieved IsDeepWaterRoyaltyRelieved ONRR-2014 - Royalty Relief - Deep Flag
IsRptgAtAPIWellLvl IsRptgAtAPIWellLvl ONRR-2014 - Report API Well Flag
ONRRLessorType ONRRLessorType ONRR-2014 - Lessor Code
TribalOrAllotteeLeaseType TribalOrAllotteeLeaseType ONRR-2014 - Tribal / Allottee Indicator
RoyaltyPaytDistributeeType RoyaltyPaytDistributeeType ONRR-2014 - Distributee Code
OnOrOffShoreLeaseSale OnOrOffShoreLeaseSale ONRR-2014 - On-Shore/Off-Shore Indicator
IndianIndexZone IndianIndexZone ONRR-2014 - Index Zone
ONRRLeaseName ONRRLeaseName ONRR-2014 - Lease Name
IsSection6Lease IsSection6Lease Section 6
HasTransactionCode37 HasTransactionCode37 Transaction 37
HasTransactionCode38 HasTransactionCode38 Transaction 38
ONRRSalesType ONRRSalesType ONRR-2014 - Sales Type Code
APIWellNumber APIWellNumber ONRR-2014 - API Well Number
ONRRReportedProduct ONRRReportedProduct ONRR-2014 - Product Code
ONRRReportedTransType ONRRReportedTransType ONRR-2014 - Transaction Code
ONRRPaymentMethod ONRRPaymentMethod ONRR-2014 - Payment Method Code
ONRRReportStatus ONRRReportStatus ONRR-2014 - Status
ONRROverrideAdjmtReason ONRROverrideAdjmtReason ONRR-2014 - Override Adjustment Code
IsRejectOverridden IsRejectOverridden ONRR-2014 - Override Reject Flag
OverrideDocument OverrideDocument ONRR-2014 - Override Payor Assigned Document Number
FutureRptHasRoyaltyDueAdjmt FutureRptHasRoyaltyDueAdjmt ONRR-2014: Persist Royalty Due Adjustment
SalesFigureIsToBeRecalculated SalesFigureIsToBeRecalculated ONRR-2014: Recalculate Sales Vol/Val
CreatedByUser CreatedByUser Created By
CreationDateTime CreationDateTime Created On Timestamp
RoyaltyRate RoyaltyRate ONRR-2014 - Royalty Rate
AllocationPercent AllocationPercent ONRR-2014 - Allocation Percent
OverrideRoyaltyRate OverrideRoyaltyRate ONRR-2014 - Override Royalty Rate
OwnerNetAmount OwnerNetAmount Owner Net Value
OwnerNetVolInVolUnit OwnerNetVolInVolUnit Owner Net Volume
OwnerGrossAmount OwnerGrossAmount Owner Gross Value
OwnerEnergyInEnergyUnit OwnerEnergyInEnergyUnit Owner Energy
GrossAmount GrossAmount Gross value
GrossVolInVolUnit GrossVolInVolUnit Total Gross Volume
GrossEnergyInEnergyUnit GrossEnergyInEnergyUnit Gross Energy
TranspAllwncDeductAdjmtAmt TranspAllwncDeductAdjmtAmt ONRR-2014 - Transportation Allowance Deduction Adjustment
ProcgAllwncDeductAdjmtAmt ProcgAllwncDeductAdjmtAmt ONRR-2014 - Processing Allowance Deduction Adjustment
RoyaltyDueAdjustmentAmount RoyaltyDueAdjustmentAmount ONRR-2014 - Royalty Due Adjustment
TranspAllwncDeductAmt TranspAllwncDeductAmt ONRR-2014 - Transportation Allowance Deduction
ProcgAllwncDeductAmt ProcgAllwncDeductAmt ONRR-2014 - Processing Allowance Deduction
TaxAmount TaxAmount Tax Amt in Rptg Crcy
TaxReimbursementAmount TaxReimbursementAmount ONRR-2014 - Tax Reimbursement
MarketingReimbursementAmount MarketingReimbursementAmount ONRR-2014 - Marketing Reimbursement

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 C_ONRRRptgHistPRADetQ.
-- 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: CPVONRRREPHISDQ

CREATE VIEW C_ONRRRptgHistPRADetQ AS
SELECT
  SalesDate,
  CompanyCode,
  JointVenture,
  DivisionOfInterest,
  Well,
  WellCompletion,
  PRAContract,
  VolumeType,
  Product,
  PRAOwner,
  GLAccount,
  CostCenter,
  ONRRBusinessTransactionType,
  ProcessRun,
  AgencyReportType,
  PriorPeriodAdjustmentReason,
  VolumeUnit,
  EnergyUnit,
  Currency,
  DeliveryNetwork,
  MasterDataRecordingLvl,
  ONRRPayerCode,
  ONRRLease,
  ONRRAgreement,
  IsCompensatoryRoyalty,
  IsSection6LeaseOverride,
  IsShallowWaterRoyaltyRelieved,
  IsDeepWaterRoyaltyRelieved,
  IsRptgAtAPIWellLvl,
  ONRRLessorType,
  TribalOrAllotteeLeaseType,
  RoyaltyPaytDistributeeType,
  OnOrOffShoreLeaseSale,
  IndianIndexZone,
  ONRRLeaseName,
  IsSection6Lease,
  HasTransactionCode37,
  HasTransactionCode38,
  ONRRSalesType,
  APIWellNumber,
  ONRRReportedProduct,
  ONRRReportedTransType,
  ONRRPaymentMethod,
  ONRRReportStatus,
  ONRROverrideAdjmtReason,
  IsRejectOverridden,
  OverrideDocument,
  FutureRptHasRoyaltyDueAdjmt,
  SalesFigureIsToBeRecalculated,
  CreatedByUser,
  CreationDateTime,
  RoyaltyRate,
  AllocationPercent,
  OverrideRoyaltyRate,
  OwnerNetAmount,
  OwnerNetVolInVolUnit,
  OwnerGrossAmount,
  OwnerEnergyInEnergyUnit,
  GrossAmount,
  GrossVolInVolUnit,
  GrossEnergyInEnergyUnit,
  TranspAllwncDeductAdjmtAmt,
  ProcgAllwncDeductAdjmtAmt,
  RoyaltyDueAdjustmentAmount,
  TranspAllwncDeductAmt,
  ProcgAllwncDeductAmt,
  TaxAmount,
  TaxReimbursementAmount,
  MarketingReimbursementAmount
FROM I_ONRRRptgHistoryPRADetails
;