I_PRARoyaltyTexasGLODetail
Royalty 2 TX GLO Royalty PRA Details
I_PRARoyaltyTexasGLODetail (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRATexasRoyaltyAllocReport · Cross Applications
I_PRARoyaltyTexasGLODetail is a Basic CDS View that provides data about "Royalty 2 TX GLO Royalty PRA Details" in SAP S/4HANA. It reads from 1 data source (/pra/r3_prdta) and exposes 91 fields with key fields ProcessRun, CompanyCode, SalesDate, PRAProduct, Well. It has 18 associations to related views.
SAP Help Documentation
| Category | CDS Views for Production and Revenue Accounting (PRA) |
|---|
This CDS view is a report required by the state of Texas agencies to verify the gross production, disposition, and market value of the oil and condensate, gas, and other products produced by them at the lease level.
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: O_OIU_TXN:ACTVT-03,O_OIU_TXN:OIU_TCODE-/PRA/RP_WORKPLACE (Mapping role for PRATexasRoyaltyAllocReport )
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | IS-OIL-PRA |
| Capabilities | Data Source in SQL Select |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view is a report required by the state of Texas agencies to verify the gross production, disposition, and market value of the oil and condensate, gas, and other products produced by them at the lease level. </p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /pra/r3_prdta | /pra/r3_prdta | from |
Associations (18)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _CompanyCode | _CompanyCode.CompanyCode = $projection.CompanyCode |
| [1..1] | I_PRAProduct | _Product | _Product.Product = $projection.PRAProduct |
| [0..1] | I_Well | _Well | _Well.Well = $projection.Well |
| [0..1] | I_WellCompletion | _WellCompletion | _WellCompletion.Well = $projection.Well and _WellCompletion.WellCompletion = $projection.WellCompletion |
| [0..1] | I_MeasurementPoint | _MeasurementPoint | _MeasurementPoint.MeasurementPoint = $projection.MeasurementPoint |
| [0..1] | I_PRAJointVenture | _UnitJointVenture | _UnitJointVenture.PRAJointVenture = $projection.UnitJointVenture and _UnitJointVenture.CompanyCode = $projection.CompanyCode |
| [1..1] | I_PRAJointVenture | _PRAJointVenture | _PRAJointVenture.PRAJointVenture = $projection.PRAJointVenture and _PRAJointVenture.CompanyCode = $projection.CompanyCode |
| [1..1] | I_PRAMaintDOI | _PRAMaintDOI | _PRAMaintDOI.CompanyCode = $projection.CompanyCode and _PRAMaintDOI.PRAJointVenture = $projection.PRAJointVenture and _PRAMaintDOI.DivisionOfInterest = $projection.DivisionOfInterest |
| [1..1] | I_DeliveryNetwork | _DeliveryNetwork | _DeliveryNetwork.DeliveryNetwork = $projection.DeliveryNetwork |
| [1..1] | I_PRAContract | _PRAContract | _PRAContract.PRAContract = $projection.PRAContract |
| [1..1] | I_OwnerPaymentStatus | _OwnerPaymentStatus | _OwnerPaymentStatus.OwnerPaymentStatus = $projection.OwnerPaymentStatus |
| [1..1] | I_PRARoytyTXGLOAgencyRptType | _PRARoytyTXGLOAgencyRptType | _PRARoytyTXGLOAgencyRptType.AgencyReportType = $projection.AgencyReportType |
| [1..1] | I_PRARoytyTXGLOGasDsposType | _PRARoytyTXGLOGasDsposType | _PRARoytyTXGLOGasDsposType.AgencyGasDispositionType = $projection.AgencyGasDispositionType |
| [1..1] | I_AgencyPayOrReportType | _AgencyPayOrReportType | _AgencyPayOrReportType.AgencyPayOrReportType = $projection.AgencyPayOrReportType |
| [1..1] | I_VolumeType | _VolumeType | _VolumeType.VolumeType = $projection.VolumeType |
| [1..1] | I_TaxRptgRvslOrBkgOrAdjmtCode | _TaxRptgRvslOrBkgOrAdjmt | _TaxRptgRvslOrBkgOrAdjmt.TaxRptgRvslOrBkgOrAdjmt = $projection.TaxRptgRvslOrBkgOrAdjmt |
| [0..1] | I_UnitOfMeasure | _BaseUnit | _BaseUnit.UnitOfMeasure = $projection.BaseUnit |
| [0..1] | I_Currency | _Currency | _Currency.Currency = $projection.CompanyCodeCurrency |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Royalty 2 TX GLO Royalty PRA Details | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.sapObjectNodeType.name | PRATexasRoyaltyAllocReport | view |
Fields (91)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProcessRun | run_id | Run ID of Tax Report | |
| KEY | CompanyCode | bukrs | Company Code | |
| KEY | SalesDate | sales_dt | Sales Date / Month | |
| KEY | PRAProduct | pdcd | Full three char. product code (Major and Detail Products) | |
| KEY | Well | wl_no | Well ID number | |
| KEY | WellCompletion | wc_no | Well Completion Number | |
| KEY | MeasurementPoint | mp_no | Measurement point number | |
| KEY | PRAJointVenture | vname | Volatility Name | |
| KEY | DivisionOfInterest | doi_no | Division of Interest (DOI) | |
| KEY | DeliveryNetwork | dn_no | Delivery network number | |
| KEY | PRAContract | ct_no | Contract Number | |
| KEY | VolumeType | vl_type_cd | Volume type code | |
| KEY | UniqueOwnerReference | owner_identifier | Royalty 2.0 - Owner Identifier | |
| KEY | PRALeaseIdentifier | lease_identifier | Royalty 2.0 - TX GLO/TAMU - Lease Identifier | |
| KEY | TaxRptgRvslOrBkgOrAdjmt | rev_book_adj_ind | Royalty 2.0 - TX - Reversal/Booking/Reversal Adjustment/Adjs | |
| PRAIsOutOfStatute | out_of_statute | Out of Statute | ||
| PRAImmaterialRecord | immaterial | Royalty 2.0 - TX GLO - Immaterial record | ||
| UnitJointVenture | unit_vname | Joint venture | ||
| GLAccount | acct_no | G/L Account Number | ||
| PRACostCenter | chv_rpt_cd | Template Cost Center | ||
| BaseUnit | uom | Measurement unit | ||
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| PressureBaseQty | ps_base_qy | Pressure Base | ||
| APIGravityRatio | grv_qy | Oil/gas density at standard/base conditions | ||
| OwnerPaymentStatus | pay_cd | Pay Code | ||
| NetRevenueInterestRatio | own_int_decm_qy | Royalty 2.0 - TX GLO - Owner NRI | ||
| DisbursementDecimalRatio | own_bal_decm_qy | Owner Disbursement (Balance) Decimal | ||
| Purchaser | pu_no | Purchaser Number | ||
| IsAffiliatedSale | affiliated_sale | Royalty 2.0 - TX GLO - Affiliated Sale Indicator | ||
| GrossVolInBaseUnit | gr_qy | Gross Volume | ||
| PRAGrossAmount | gr_am | Gross Value | ||
| OwnerGrossValInCoCodeCrcy | txn_val_am | Royalty 2.0 - TX GLO - Owner Gross Value | ||
| PRATransactionAmount | trans_am | JE Transaction Amount | ||
| PRATransactionQuantity | trans_qy | JE Transaction Quantity | ||
| OwnerEnergyInMMBTU | mmbtu_ovl_am | Owner MMBTU | ||
| PRAGrossPlantVolReducnAmt | plt_vl_gred_am | Gross Plant Volume Reduction amount | ||
| PRAOwnerPlantVolReducnAmt | plt_vl_ored_am | Owner Plant Volume Reduction amount | ||
| PRADeductionReimbmtAmt | ded_rmb_am | Deduction/Reimbursement Amount | ||
| PRATaxRoytyRptgNetTranspAmount | net_transp_am | Marketing Cost | ||
| OtherMktgCostInCoCodeCrcy | net_oth_mk_am | Marketing Cost | ||
| PRATaxReimbmtAmount | tax_rmb_am | Tax Reimbursement Amount | ||
| PRATaxAmount | tax_am | Tax Amount | ||
| TransacQtyInBaseUnit | trans_qy_ex | JE Transaction Quantity | ||
| HeatingValue | btu_qy | BTU quantity | ||
| AgencyReportType | original_report | Royalty 2.0 - TX GLOTAMU - Original Report | ||
| AgencyGasDispositionType | gas_disp_code | Royalty 2.0 - TX GLO/TAMU - Royalty Gas Disposition Code | ||
| PRAMasterLevel | master_level | Royalty 2.0 - TX GLO - Master Level | ||
| RailRoadCommsnMstrDataRecgLvl | rrc_level | Royalty 2.0 - TX GLO - RRC Master Level | ||
| PurchaserIDByAgency | purchaser_id | Royalty 2.0 - Texas GLO/TAMU - Purchaser ID | ||
| PRAOperatorIdentifier | operator_id | Royalty 2.0 - TX GLO - Operator ID | ||
| ReportingAgencyLease | glo_lease | Royalty 2.0 - TX GLO/TAMU Lease | ||
| UnitNumberByAgency | glo_unit_no | Royalty 2.0 - Texas GLO/TAMU - Unit Number | ||
| AgencyNetRevenueInterestRatio | royalty_decimal | Royalty 2.0 - Texas GLO - Royalty Decimal | ||
| JointVentureIsUnit | unit_vname_flag | Roy 2.0 - Texas GLO/TAMU - Unit Venture | ||
| PRAAllocationPercent | alloc_percent | Royalty 2.0 - TX GLO/TAMU - Allocation Percent | ||
| PRATractParticipationFactor | tract_part_fact | Royalty 2.0 - Texas GLO - Tract Participation Factor | ||
| PRAIsCountyLease | county_lse_ind | Royalty 2.0 - TX GLO/TAMU County Lease Indicator | ||
| TexasRailRoadCommsnDistrict | rrc_district_no | Royalty 2.0 - TX GLO/TAMU - District Number | ||
| TexasRailRoadCommsnOilLease | rrc_oil_lease_no | Royalty 2.0 - TX GLO/TAMU - RRC Oil Lease Number | ||
| TexasRailRoadCommsnGasWell | rrc_gas_well_id | Royalty 2.0 - TX GLO/TAMU - RRC Gas Well ID | ||
| TexasRailRoadCommsnDrillPermit | rrc_drill_permit | Royalty 2.0 - TX GLO/TAMU - RRC Drilling Permit | ||
| TexasRailRoadCommsnFieldName | rrc_field_name | Royalty 2.0 - TX GLO/TAMU - RRC Field Name | ||
| TexasRailRoadCommsnLeaseName | rrc_lease_name | Royalty 2.0 - TX GLO/TAMU - RRC Lease Name | ||
| PRAPropertyAliasName | prop_alias_name | Royalty 2.0 - TX GLO/TAMU - Property Alias Name | ||
| PRAOperator | operator_no | Operator Number | ||
| AgencyPayOrReportType | pay_report_flag | Royalty 2.0 - TX GLO/TAMU - Pay/Report Flag | ||
| ValuationDocumentNumber | doc_no | Val. document number | ||
| PRAWellDocumentYear | doc_year | Mat. Doc. Year | ||
| PRAIsInterface | interface_fl | Royalty 2.0 - TX GLO - Interface Flag | ||
| PRAReferenceRunID | reference_run_id | Run ID of Tax Report | ||
| HeatingValueExtQty | btu_qy_ext | BTU Quantity | ||
| CreatedByUser | oiu_cruser | Name of Person Responsible for Creating the Object | ||
| CreationDateTime | oiu_timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| _CompanyCode | _CompanyCode | |||
| _Product | _Product | |||
| _Well | _Well | |||
| _WellCompletion | _WellCompletion | |||
| _MeasurementPoint | _MeasurementPoint | |||
| _UnitJointVenture | _UnitJointVenture | |||
| _PRAJointVenture | _PRAJointVenture | |||
| _PRAMaintDOI | _PRAMaintDOI | |||
| _DeliveryNetwork | _DeliveryNetwork | |||
| _PRAContract | _PRAContract | |||
| _OwnerPaymentStatus | _OwnerPaymentStatus | |||
| _PRARoytyTXGLOAgencyRptType | _PRARoytyTXGLOAgencyRptType | |||
| _PRARoytyTXGLOGasDsposType | _PRARoytyTXGLOGasDsposType | |||
| _AgencyPayOrReportType | _AgencyPayOrReportType | |||
| _VolumeType | _VolumeType | |||
| _TaxRptgRvslOrBkgOrAdjmt | _TaxRptgRvslOrBkgOrAdjmt | |||
| _BaseUnit | _BaseUnit | |||
| _Currency | _Currency |
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_PRARoyaltyTexasGLODetail.
-- 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_PRARoyaltyTexasGLODetail AS
SELECT
run_id AS ProcessRun,
bukrs AS CompanyCode,
sales_dt AS SalesDate,
pdcd AS PRAProduct,
wl_no AS Well,
wc_no AS WellCompletion,
mp_no AS MeasurementPoint,
vname AS PRAJointVenture,
doi_no AS DivisionOfInterest,
dn_no AS DeliveryNetwork,
ct_no AS PRAContract,
vl_type_cd AS VolumeType,
owner_identifier AS UniqueOwnerReference,
lease_identifier AS PRALeaseIdentifier,
rev_book_adj_ind AS TaxRptgRvslOrBkgOrAdjmt,
out_of_statute AS PRAIsOutOfStatute,
immaterial AS PRAImmaterialRecord,
unit_vname AS UnitJointVenture,
acct_no AS GLAccount,
chv_rpt_cd AS PRACostCenter,
uom AS BaseUnit,
_CompanyCode.Currency AS CompanyCodeCurrency,
ps_base_qy AS PressureBaseQty,
grv_qy AS APIGravityRatio,
pay_cd AS OwnerPaymentStatus,
own_int_decm_qy AS NetRevenueInterestRatio,
own_bal_decm_qy AS DisbursementDecimalRatio,
pu_no AS Purchaser,
affiliated_sale AS IsAffiliatedSale,
gr_qy AS GrossVolInBaseUnit,
gr_am AS PRAGrossAmount,
txn_val_am AS OwnerGrossValInCoCodeCrcy,
trans_am AS PRATransactionAmount,
trans_qy AS PRATransactionQuantity,
mmbtu_ovl_am AS OwnerEnergyInMMBTU,
plt_vl_gred_am AS PRAGrossPlantVolReducnAmt,
plt_vl_ored_am AS PRAOwnerPlantVolReducnAmt,
ded_rmb_am AS PRADeductionReimbmtAmt,
net_transp_am AS PRATaxRoytyRptgNetTranspAmount,
net_oth_mk_am AS OtherMktgCostInCoCodeCrcy,
tax_rmb_am AS PRATaxReimbmtAmount,
tax_am AS PRATaxAmount,
trans_qy_ex AS TransacQtyInBaseUnit,
btu_qy AS HeatingValue,
original_report AS AgencyReportType,
gas_disp_code AS AgencyGasDispositionType,
master_level AS PRAMasterLevel,
rrc_level AS RailRoadCommsnMstrDataRecgLvl,
purchaser_id AS PurchaserIDByAgency,
operator_id AS PRAOperatorIdentifier,
glo_lease AS ReportingAgencyLease,
glo_unit_no AS UnitNumberByAgency,
royalty_decimal AS AgencyNetRevenueInterestRatio,
unit_vname_flag AS JointVentureIsUnit,
alloc_percent AS PRAAllocationPercent,
tract_part_fact AS PRATractParticipationFactor,
county_lse_ind AS PRAIsCountyLease,
rrc_district_no AS TexasRailRoadCommsnDistrict,
rrc_oil_lease_no AS TexasRailRoadCommsnOilLease,
rrc_gas_well_id AS TexasRailRoadCommsnGasWell,
rrc_drill_permit AS TexasRailRoadCommsnDrillPermit,
rrc_field_name AS TexasRailRoadCommsnFieldName,
rrc_lease_name AS TexasRailRoadCommsnLeaseName,
prop_alias_name AS PRAPropertyAliasName,
operator_no AS PRAOperator,
pay_report_flag AS AgencyPayOrReportType,
doc_no AS ValuationDocumentNumber,
doc_year AS PRAWellDocumentYear,
interface_fl AS PRAIsInterface,
reference_run_id AS PRAReferenceRunID,
btu_qy_ext AS HeatingValueExtQty,
oiu_cruser AS CreatedByUser,
oiu_timestamp AS CreationDateTime
FROM /pra/r3_prdta
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = CompanyCode -- association [1..1]
LEFT OUTER JOIN I_PRAProduct AS _Product ON _Product.Product = PRAProduct -- association [1..1]
LEFT OUTER JOIN I_Well AS _Well ON _Well.Well = Well -- association [0..1]
LEFT OUTER JOIN I_WellCompletion AS _WellCompletion ON _WellCompletion.Well = Well AND _WellCompletion.WellCompletion = WellCompletion -- association [0..1]
LEFT OUTER JOIN I_MeasurementPoint AS _MeasurementPoint ON _MeasurementPoint.MeasurementPoint = MeasurementPoint -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _UnitJointVenture ON _UnitJointVenture.PRAJointVenture = UnitJointVenture AND _UnitJointVenture.CompanyCode = CompanyCode -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _PRAJointVenture ON _PRAJointVenture.PRAJointVenture = PRAJointVenture AND _PRAJointVenture.CompanyCode = CompanyCode -- association [1..1]
LEFT OUTER JOIN I_PRAMaintDOI AS _PRAMaintDOI ON _PRAMaintDOI.CompanyCode = CompanyCode AND _PRAMaintDOI.PRAJointVenture = PRAJointVenture AND _PRAMaintDOI.DivisionOfInterest = DivisionOfInterest -- association [1..1]
LEFT OUTER JOIN I_DeliveryNetwork AS _DeliveryNetwork ON _DeliveryNetwork.DeliveryNetwork = DeliveryNetwork -- association [1..1]
LEFT OUTER JOIN I_PRAContract AS _PRAContract ON _PRAContract.PRAContract = PRAContract -- association [1..1]
LEFT OUTER JOIN I_OwnerPaymentStatus AS _OwnerPaymentStatus ON _OwnerPaymentStatus.OwnerPaymentStatus = OwnerPaymentStatus -- association [1..1]
LEFT OUTER JOIN I_PRARoytyTXGLOAgencyRptType AS _PRARoytyTXGLOAgencyRptType ON _PRARoytyTXGLOAgencyRptType.AgencyReportType = AgencyReportType -- association [1..1]
LEFT OUTER JOIN I_PRARoytyTXGLOGasDsposType AS _PRARoytyTXGLOGasDsposType ON _PRARoytyTXGLOGasDsposType.AgencyGasDispositionType = AgencyGasDispositionType -- association [1..1]
LEFT OUTER JOIN I_AgencyPayOrReportType AS _AgencyPayOrReportType ON _AgencyPayOrReportType.AgencyPayOrReportType = AgencyPayOrReportType -- association [1..1]
LEFT OUTER JOIN I_VolumeType AS _VolumeType ON _VolumeType.VolumeType = VolumeType -- association [1..1]
LEFT OUTER JOIN I_TaxRptgRvslOrBkgOrAdjmtCode AS _TaxRptgRvslOrBkgOrAdjmt ON _TaxRptgRvslOrBkgOrAdjmt.TaxRptgRvslOrBkgOrAdjmt = TaxRptgRvslOrBkgOrAdjmt -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON _BaseUnit.UnitOfMeasure = BaseUnit -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON _Currency.Currency = CompanyCodeCurrency -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA