I_PRATaxRptgHistWYConsvn
PRA Tax Reporting Hist WY Conservation
I_PRATaxRptgHistWYConsvn (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRA Wyoming Consvn Tax Reporting History · Cross Applications
I_PRATaxRptgHistWYConsvn is a Basic CDS View (Cube) that provides data about "PRA Tax Reporting Hist WY Conservation" in SAP S/4HANA. It reads from 1 data source (oiux6_wy_ctaxhst) and exposes 79 fields with key fields CompanyCode, SalesDate, Product, Well, WellCompletion. It has 26 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | IS-OIL-PRA |
| Capabilities | Data Source in SQL Select, Data Provider for Analytical Queries, Data Source for Defining CDS Entities |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
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 |
|---|---|---|
| oiux6_wy_ctaxhst | oiux6_wy_ctaxhst | from |
Associations (26)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_PRAProduct | _Product | $projection.Product = _Product.Product |
| [0..1] | I_Well | _Well | $projection.Well = _Well.Well |
| [0..1] | I_WellCompletion | _WellCompletion | $projection.Well = _WellCompletion.Well and $projection.WellCompletion = _WellCompletion.WellCompletion |
| [0..1] | I_MeasurementPoint | _MeasurementPoint | $projection.MeasurementPoint = _MeasurementPoint.MeasurementPoint |
| [0..1] | I_PRAJointVenture | _PRAJointVenture | $projection.CompanyCode = _PRAJointVenture.CompanyCode and $projection.JointVenture = _PRAJointVenture.PRAJointVenture |
| [0..1] | I_DivisionOfInterest | _DivisionOfInterest | $projection.CompanyCode = _DivisionOfInterest.CompanyCode and $projection.JointVenture = _DivisionOfInterest.JointVenture and $projection.DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest |
| [0..1] | I_DeliveryNetwork | _DeliveryNetwork | $projection.DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork |
| [0..1] | I_PRAContract | _PRAContract | $projection.PRAContract = _PRAContract.PRAContract |
| [0..1] | I_VolumeType | _VolumeType | $projection.VolumeType = _VolumeType.VolumeType |
| [0..1] | I_TaxClassification | _TaxClassification | $projection.Country = _TaxClassification.Country and $projection.PrimaryGeogrlLocation = _TaxClassification.PrimaryGeogrlLocation and $projection.TaxClassification = _TaxClassification.TaxClassification |
| [0..1] | I_PRAJointVenture | _UnitJointVenture | $projection.CompanyCode = _UnitJointVenture.CompanyCode and $projection.UnitJointVenture = _UnitJointVenture.PRAJointVenture |
| [0..1] | I_Indicator | _HasSeveranceTaxPaytOblgn | $projection.HasSeveranceTaxPaytOblgn = _HasSeveranceTaxPaytOblgn.IndicatorValue |
| [0..1] | I_Indicator | _SeveranceTaxRptgType | $projection.SeveranceTaxRptgType = _SeveranceTaxRptgType.IndicatorValue |
| [0..1] | I_TaxRptgRvslOrBkgOrAdjmtCode | _TaxRptgRvslOrBkgOrAdjmt | $projection.TaxRptgRvslOrBkgOrAdjmt = _TaxRptgRvslOrBkgOrAdjmt.TaxRptgRvslOrBkgOrAdjmt |
| [0..1] | I_Indicator | _EntityIsCompanyOperated | $projection.EntityIsCompanyOperated = _EntityIsCompanyOperated.IndicatorValue |
| [0..1] | I_PRATaxMstrDataRecgLvl | _MasterDataRecordingLvl | $projection.MasterDataRecordingLvl = _MasterDataRecordingLvl.MasterDataRecordingLvl |
| [0..1] | I_Country | _Country | $projection.Country = _Country.Country |
| [0..1] | I_PrimaryGeogrlLocation | _PrimaryGeogrlLocation | $projection.Country = _PrimaryGeogrlLocation.Country and $projection.PrimaryGeogrlLocation = _PrimaryGeogrlLocation.PrimaryGeogrlLocation |
| [0..1] | I_Currency | _Currency | $projection.CompanyCodeCurrency = _Currency.Currency |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasure | $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure |
| [0..1] | I_ProducerOrPurchaserCode | _ProducerOrPurchaserCode | $projection.ProducerOrPurchaserCode = _ProducerOrPurchaserCode.ProducerOrPurchaserCode |
| [0..1] | I_SecondaryGeogrlLocation | _County | $projection.Country = _County.Country and $projection.PrimaryGeogrlLocation = _County.PrimaryGeogrlLocation and $projection.County = _County.SecondaryGeogrlLocation |
| [0..1] | I_PRATaxWYProductType | _ProductType | $projection.ProductType = _ProductType.ProductType |
| [0..1] | I_CalendarYear | _ValuationDocumentYear | $projection.ValuationDocumentYear = _ValuationDocumentYear.CalendarYear |
| [0..1] | I_ValuationDocumentHdr | _ValuationDocumentHdr | $projection.ValuationDocumentNumber = _ValuationDocumentHdr.ValuationDocumentNumber and $projection.ValuationDocumentYear = _ValuationDocumentHdr.ValuationDocumentYear |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | PRA Tax Reporting Hist WY Conservation | view | |
| Analytics.dataCategory | #CUBE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IPVTXRPTGHWYC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.sapObjectNodeType.name | PRAWyomingConsvnTaxRptgHist | view |
Fields (79)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | Company Code | ||
| KEY | SalesDate | sales_dt | Sales Date / Month | |
| KEY | Product | 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 | JointVenture | 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 | TaxClassification | tax_cls | Tax Class | |
| KEY | TaxRptgRvslOrBkgOrAdjmt | rev_book_adj_ind | Tax 2.0 - Reversal/Booking/Reversal Adjustment/Adjustment | |
| ProducerOrPurchaserCode | prod_purc_ind | Producer or Purchaser | ||
| UnitJointVenture | unit_vname | Joint venture | ||
| HasSeveranceTaxPaytOblgn | pay_fl | Tax Severance Tax Calculation Payment Obligations Types | ||
| SeveranceTaxRptgType | rpt_fl | State Severance Tax Reporting Indicators | ||
| BaseUnit | uom | Measurement unit | ||
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| ReturnedProductRatio | ret_lse_pc | Percent Returned to Lease | ||
| County | county | Tax 2.0 - Wyoming County Identifier | ||
| APIWellNumber | api_well_number | Tax 2.0 - Wyoming API Well Number | ||
| WyomingTaxRptgSideTrackNmbr | side_track_no | Tax 2.0 - Wyoming Side Track Number | ||
| Reservoir | reservoir | Tax 2.0 - Wyoming Reservoir | ||
| TaxRptgGroupNumber | rpt_grp_no | Tax 2.0 - Wyoming Report Group Number | ||
| GeologicFieldName | field_name | Tax 2.0 - Wyoming Field Name | ||
| AgencyLeaseOrUnitName | lease_unit_name | Tax 2.0 - Wyoming Lease Unit Name / API | ||
| EntityIsCompanyOperated | operated_flag | Tax 2.0 - Operated Flag | ||
| District | tax_district | Tax 2.0 - Wyoming Tax District | ||
| PlantName | gas_plant_name | Tax 2.0 - WY Gas Plant Name | ||
| MasterDataRecordingLvl | master_level | Texas Master Data Level | ||
| OperatorIDByAgency | operator_id | Tax 2.0 - Wyoming Operator ID | ||
| OperatorName | operator_name | Tax 2.0 - Operator Name | ||
| PurchaserName | purchaser_name | Tax 2.0 - Purchaser Name | ||
| ProductType | ogind | Oil and Gas Indicator | ||
| ValuationDocumentNumber | doc_no | Val. document number | ||
| ValuationDocumentYear | doc_year | Mat. Doc. Year | ||
| Operator | operator | Type of OPTION component in row type of a Ranges type | ||
| Purchaser | purchaser | Master Record | ||
| CreatedByUser | Created By | |||
| CreationDateTime | Created On Timestamp | |||
| Country | Country/Region Key | |||
| PrimaryGeogrlLocation | Primary Geographical Location | |||
| OriginTransaction | Source Transaction ID | |||
| GrossVolInBaseUnit | gross_vol | Gross Volume | ||
| TaxableVolInBaseUnit | tax_vol | Taxable Volume | ||
| TaxableValInCoCodeCrcy | tax_val | Taxable Value | ||
| TaxExmptVolInBaseUnit | exempt_vol | Exempt Volume | ||
| GrossTaxAmtInCoCodeCrcy | tax_amt | Tax Amount | ||
| TaxReimbmtAmtInCoCodeCrcy | tax_reimb | Tax Reimbursement | ||
| WetGasLessResidueGasVolInMCF | wet_less_res | Tax 2.0 - Wet Less Residue Volume (MCF) | ||
| GrossSalesVolInBaseUnit | blps_gross_vol | Tax 2.0 - Wyoming Before Lease Plant Split Gross Volume | ||
| PlantProcgVolInBaseUnit | plant_proc_vol | Tax 2.0 - Wyoming Plant Processing Volume | ||
| _CompanyCode | _CompanyCode | |||
| _Product | _Product | |||
| _Well | _Well | |||
| _WellCompletion | _WellCompletion | |||
| _MeasurementPoint | _MeasurementPoint | |||
| _PRAJointVenture | _PRAJointVenture | |||
| _DivisionOfInterest | _DivisionOfInterest | |||
| _DeliveryNetwork | _DeliveryNetwork | |||
| _PRAContract | _PRAContract | |||
| _VolumeType | _VolumeType | |||
| _TaxClassification | _TaxClassification | |||
| _UnitJointVenture | _UnitJointVenture | |||
| _HasSeveranceTaxPaytOblgn | _HasSeveranceTaxPaytOblgn | |||
| _SeveranceTaxRptgType | _SeveranceTaxRptgType | |||
| _TaxRptgRvslOrBkgOrAdjmt | _TaxRptgRvslOrBkgOrAdjmt | |||
| _EntityIsCompanyOperated | _EntityIsCompanyOperated | |||
| _MasterDataRecordingLvl | _MasterDataRecordingLvl | |||
| _Country | _Country | |||
| _PrimaryGeogrlLocation | _PrimaryGeogrlLocation | |||
| _Currency | _Currency | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _ProducerOrPurchaserCode | _ProducerOrPurchaserCode | |||
| _County | _County | |||
| _ProductType | _ProductType | |||
| _ValuationDocumentHdr | _ValuationDocumentHdr | |||
| _ValuationDocumentYear | _ValuationDocumentYear |
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_PRATaxRptgHistWYConsvn.
-- 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: IPVTXRPTGHWYC
CREATE VIEW I_PRATaxRptgHistWYConsvn AS
SELECT
cast(bukrs as fis_bukrs preserving type ) AS CompanyCode,
sales_dt AS SalesDate,
pdcd AS Product,
wl_no AS Well,
wc_no AS WellCompletion,
mp_no AS MeasurementPoint,
vname AS JointVenture,
doi_no AS DivisionOfInterest,
dn_no AS DeliveryNetwork,
ct_no AS PRAContract,
vl_type_cd AS VolumeType,
tax_cls AS TaxClassification,
rev_book_adj_ind AS TaxRptgRvslOrBkgOrAdjmt,
prod_purc_ind AS ProducerOrPurchaserCode,
unit_vname AS UnitJointVenture,
pay_fl AS HasSeveranceTaxPaytOblgn,
rpt_fl AS SeveranceTaxRptgType,
uom AS BaseUnit,
_CompanyCode.Currency AS CompanyCodeCurrency,
ret_lse_pc AS ReturnedProductRatio,
County,
api_well_number AS APIWellNumber,
side_track_no AS WyomingTaxRptgSideTrackNmbr,
Reservoir,
rpt_grp_no AS TaxRptgGroupNumber,
field_name AS GeologicFieldName,
lease_unit_name AS AgencyLeaseOrUnitName,
operated_flag AS EntityIsCompanyOperated,
tax_district AS District,
gas_plant_name AS PlantName,
master_level AS MasterDataRecordingLvl,
operator_id AS OperatorIDByAgency,
operator_name AS OperatorName,
purchaser_name AS PurchaserName,
ogind AS ProductType,
doc_no AS ValuationDocumentNumber,
doc_year AS ValuationDocumentYear,
Operator,
Purchaser,
cast(oiu_cruser as fclm_bam_created_by) AS CreatedByUser,
cast(oiu_timestamp as oiu_vdm_created_on_ts) AS CreationDateTime,
cast('US' as land1_gp ) AS Country,
cast( '49' as oiu_pri_geo_loc ) AS PrimaryGeogrlLocation,
cast( '/PRA/RP_WORKPLACE' as fqm_origin_trans_id ) AS OriginTransaction,
gross_vol AS GrossVolInBaseUnit,
tax_vol AS TaxableVolInBaseUnit,
tax_val AS TaxableValInCoCodeCrcy,
exempt_vol AS TaxExmptVolInBaseUnit,
tax_amt AS GrossTaxAmtInCoCodeCrcy,
tax_reimb AS TaxReimbmtAmtInCoCodeCrcy,
wet_less_res AS WetGasLessResidueGasVolInMCF,
blps_gross_vol AS GrossSalesVolInBaseUnit,
plant_proc_vol AS PlantProcgVolInBaseUnit
FROM oiux6_wy_ctaxhst
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_PRAProduct AS _Product ON Product = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_Well AS _Well ON Well = _Well.Well -- association [0..1]
LEFT OUTER JOIN I_WellCompletion AS _WellCompletion ON Well = _WellCompletion.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 _PRAJointVenture ON CompanyCode = _PRAJointVenture.CompanyCode AND JointVenture = _PRAJointVenture.PRAJointVenture -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _DivisionOfInterest ON CompanyCode = _DivisionOfInterest.CompanyCode AND JointVenture = _DivisionOfInterest.JointVenture AND DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest -- association [0..1]
LEFT OUTER JOIN I_DeliveryNetwork AS _DeliveryNetwork ON DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork -- association [0..1]
LEFT OUTER JOIN I_PRAContract AS _PRAContract ON PRAContract = _PRAContract.PRAContract -- association [0..1]
LEFT OUTER JOIN I_VolumeType AS _VolumeType ON VolumeType = _VolumeType.VolumeType -- association [0..1]
LEFT OUTER JOIN I_TaxClassification AS _TaxClassification ON Country = _TaxClassification.Country AND PrimaryGeogrlLocation = _TaxClassification.PrimaryGeogrlLocation AND TaxClassification = _TaxClassification.TaxClassification -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _UnitJointVenture ON CompanyCode = _UnitJointVenture.CompanyCode AND UnitJointVenture = _UnitJointVenture.PRAJointVenture -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _HasSeveranceTaxPaytOblgn ON HasSeveranceTaxPaytOblgn = _HasSeveranceTaxPaytOblgn.IndicatorValue -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _SeveranceTaxRptgType ON SeveranceTaxRptgType = _SeveranceTaxRptgType.IndicatorValue -- association [0..1]
LEFT OUTER JOIN I_TaxRptgRvslOrBkgOrAdjmtCode AS _TaxRptgRvslOrBkgOrAdjmt ON TaxRptgRvslOrBkgOrAdjmt = _TaxRptgRvslOrBkgOrAdjmt.TaxRptgRvslOrBkgOrAdjmt -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _EntityIsCompanyOperated ON EntityIsCompanyOperated = _EntityIsCompanyOperated.IndicatorValue -- association [0..1]
LEFT OUTER JOIN I_PRATaxMstrDataRecgLvl AS _MasterDataRecordingLvl ON MasterDataRecordingLvl = _MasterDataRecordingLvl.MasterDataRecordingLvl -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country -- association [0..1]
LEFT OUTER JOIN I_PrimaryGeogrlLocation AS _PrimaryGeogrlLocation ON Country = _PrimaryGeogrlLocation.Country AND PrimaryGeogrlLocation = _PrimaryGeogrlLocation.PrimaryGeogrlLocation -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON CompanyCodeCurrency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON BaseUnit = _UnitOfMeasure.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_ProducerOrPurchaserCode AS _ProducerOrPurchaserCode ON ProducerOrPurchaserCode = _ProducerOrPurchaserCode.ProducerOrPurchaserCode -- association [0..1]
LEFT OUTER JOIN I_SecondaryGeogrlLocation AS _County ON Country = _County.Country AND PrimaryGeogrlLocation = _County.PrimaryGeogrlLocation AND County = _County.SecondaryGeogrlLocation -- association [0..1]
LEFT OUTER JOIN I_PRATaxWYProductType AS _ProductType ON ProductType = _ProductType.ProductType -- association [0..1]
LEFT OUTER JOIN I_CalendarYear AS _ValuationDocumentYear ON ValuationDocumentYear = _ValuationDocumentYear.CalendarYear -- association [0..1]
LEFT OUTER JOIN I_ValuationDocumentHdr AS _ValuationDocumentHdr ON ValuationDocumentNumber = _ValuationDocumentHdr.ValuationDocumentNumber AND ValuationDocumentYear = _ValuationDocumentHdr.ValuationDocumentYear -- 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