I_PRATaxRptgHistoryTexas

DDL: I_PRATAXRPTGHISTORYTEXAS SQL: IPVTAXHISTTX Type: view BASIC

PRA Tax Reporting History Texas

I_PRATaxRptgHistoryTexas (Basic)

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

PRA Texas Tax Reporting History · Cross Applications

I_PRATaxRptgHistoryTexas is a Basic CDS View (Cube) that provides data about "PRA Tax Reporting History Texas" in SAP S/4HANA. It reads from 1 data source (oiux3_tx_taxhst) and exposes 77 fields with key fields CompanyCode, SalesDate, Product, Well, WellCompletion. It has 27 associations to related views.

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentIS-OIL-PRA
CapabilitiesData Source in SQL Select, Data Provider for Analytical Queries, Data Source for Defining CDS Entities
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
oiux3_tx_taxhst oiux3_tx_taxhst from

Associations (27)

CardinalityTargetAliasCondition
[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_SeveranceTaxType _SeveranceTaxType $projection.Country = _SeveranceTaxType.Country and $projection.PrimaryGeogrlLocation = _SeveranceTaxType.PrimaryGeogrlLocation and $projection.SeveranceTaxType = _SeveranceTaxType.SeveranceTaxType
[0..1] I_PRATierTaxType _TierTaxType $projection.TierTaxType = _TierTaxType.TierTaxType
[0..1] I_TaxRptgRvslOrBkgOrAdjmtCode _TaxRptgRvslOrBkgOrAdjmt $projection.TaxRptgRvslOrBkgOrAdjmt = _TaxRptgRvslOrBkgOrAdjmt.TaxRptgRvslOrBkgOrAdjmt
[0..1] I_PRAJointVenture _UnitJointVenture $projection.CompanyCode = _UnitJointVenture.CompanyCode and $projection.UnitJointVenture = _UnitJointVenture.PRAJointVenture
[0..1] I_PRATaxTexasCounty _TexasCounty $projection.TexasCounty = _TexasCounty.TexasCounty
[0..1] I_PRATaxTXLease _ReportingAgencyLease $projection.ReportingAgencyLease = _ReportingAgencyLease.ReportingAgencyLease
[0..1] I_PRATaxOnOrOffLeaseSale _OnOrOffLeaseSale $projection.OnOrOffLeaseSale = _OnOrOffLeaseSale.OnOrOffLeaseSale
[0..1] I_PRATaxMstrDataRecgLvl _MasterDataRecordingLvl $projection.MasterDataRecordingLvl = _MasterDataRecordingLvl.MasterDataRecordingLvl
[0..1] I_PRATaxTXCommodityType _CommodityType $projection.CommodityType = _CommodityType.CommodityType
[0..1] I_ProducerOrPurchaserCode _ProducerOrPurchaserCode $projection.ProducerOrPurchaserCode = _ProducerOrPurchaserCode.ProducerOrPurchaserCode
[0..1] I_Indicator _HasSeveranceTaxPaytOblgn $projection.HasSeveranceTaxPaytOblgn = _HasSeveranceTaxPaytOblgn.IndicatorValue
[0..1] I_Indicator _SeveranceTaxRptgType $projection.SeveranceTaxRptgType = _SeveranceTaxRptgType.IndicatorValue
[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_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency

Annotations (14)

NameValueLevelField
EndUserText.label PRA Tax Reporting History Texas view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IPVTAXHISTTX 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 PRATexasTaxRptgHist view

Fields (77)

KeyFieldSource TableSource FieldDescription
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 SeveranceTaxType tax_type Severance Tax Type
KEY TierTaxType tier_tax_ind Tier Tax
KEY TaxRptgRvslOrBkgOrAdjmt rev_book_adj_ind Reversal/Booking/Adjustment
ProducerOrPurchaserCode prod_purc_ind Producer or Purchaser
UnitJointVenture Unit Venture
HasSeveranceTaxPaytOblgn pay_fl Tax Severance Tax Calculation Payment Obligations Types
SeveranceTaxRptgType rpt_fl State Severance Tax Reporting Indicators
APIWellNumber api_well_number API Well Number
TexasCounty county Texas County Identifier
ReportingAgencyLease lease_number Texas Lease Number
OnOrOffLeaseSale off_lease_cd Texas On-/Off-Lease Sale Code
MasterDataRecordingLvl master_level Texas Master Data Level
OtherPartyTaxPayerIDByAgency other_party_no Texas Taxpayer Number of Other Party
ProducerOrPurchaserNmbr Producer/Purchaser
CommodityType commodity_type Texas Commodity Type
TaxExmpType exemption_type Texas Exemption Type
TaxPayerIDByAgency taxpayer_number Texas Taxpayer Number
TaxPayerName taxpayer_name Taxpayer Name
CreatedByUser Created By
CreationDateTime Created On Timestamp
NumberOfItems Number of Items
Country Country/Region Key
PrimaryGeogrlLocation Primary Geographical Location
OriginTransaction Source Transaction ID
BaseUnit uom Measurement unit
CompanyCodeCurrency _CompanyCode Currency Valuation Crcy
APIGravityRatio gravity Gravity
TransacVolInBaseUnit lease_gross_vol Lease Gross Volume
GrossVolInBaseUnit gross_vol Gross Volume
GrossValInCoCodeCrcy gross_val Gross Value
TaxableVolInBaseUnit tax_vol Taxable Volume
TaxableValInCoCodeCrcy tax_val Taxable Value
TaxExmptVolInBaseUnit exempt_vol Exempt Volume
TaxExmptValInCoCodeCrcy exempt_val Exempt Value
MktgCostInCoCodeCrcy mkt_cost Marketing Cost
MktgReimbmtCostInCoCodeCrcy mkt_cost_reimb Marketing Cost Reimbursement
GrossTaxAmtInCoCodeCrcy tax_amt Tax Amount
TaxReimbmtAmtInCoCodeCrcy tax_reimb Tax Reimbursement
_CompanyCode _CompanyCode
_Product _Product
_Well _Well
_WellCompletion _WellCompletion
_MeasurementPoint _MeasurementPoint
_PRAJointVenture _PRAJointVenture
_DivisionOfInterest _DivisionOfInterest
_DeliveryNetwork _DeliveryNetwork
_PRAContract _PRAContract
_VolumeType _VolumeType
_TaxClassification _TaxClassification
_SeveranceTaxType _SeveranceTaxType
_TierTaxType _TierTaxType
_TaxRptgRvslOrBkgOrAdjmt _TaxRptgRvslOrBkgOrAdjmt
_TexasCounty _TexasCounty
_ReportingAgencyLease _ReportingAgencyLease
_OnOrOffLeaseSale _OnOrOffLeaseSale
_MasterDataRecordingLvl _MasterDataRecordingLvl
_CommodityType _CommodityType
_ProducerOrPurchaserCode _ProducerOrPurchaserCode
_UnitJointVenture _UnitJointVenture
_HasSeveranceTaxPaytOblgn _HasSeveranceTaxPaytOblgn
_SeveranceTaxRptgType _SeveranceTaxRptgType
_Country _Country
_PrimaryGeogrlLocation _PrimaryGeogrlLocation
_BaseUnit _BaseUnit
_CompanyCodeCurrency _CompanyCodeCurrency

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_PRATaxRptgHistoryTexas.
-- 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: IPVTAXHISTTX

CREATE VIEW I_PRATaxRptgHistoryTexas 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,
  tax_type AS SeveranceTaxType,
  tier_tax_ind AS TierTaxType,
  rev_book_adj_ind AS TaxRptgRvslOrBkgOrAdjmt,
  prod_purc_ind AS ProducerOrPurchaserCode,
  cast( unit_vname as /pra/unit_vname preserving type ) AS UnitJointVenture,
  pay_fl AS HasSeveranceTaxPaytOblgn,
  rpt_fl AS SeveranceTaxRptgType,
  api_well_number AS APIWellNumber,
  county AS TexasCounty,
  lease_number AS ReportingAgencyLease,
  off_lease_cd AS OnOrOffLeaseSale,
  master_level AS MasterDataRecordingLvl,
  other_party_no AS OtherPartyTaxPayerIDByAgency,
  cast(other_party as oiu_vdm_producer_purchaser preserving type ) AS ProducerOrPurchaserNmbr,
  commodity_type AS CommodityType,
  exemption_type AS TaxExmpType,
  taxpayer_number AS TaxPayerIDByAgency,
  taxpayer_name AS TaxPayerName,
  cast( oiu_cruser as fclm_bam_created_by ) AS CreatedByUser,
  cast( oiu_timestamp as oiu_vdm_created_on_ts ) AS CreationDateTime,
  cast( 1 as oiu_vdm_no_of_items ) AS NumberOfItems,
  cast( 'US ' as land1_gp ) AS Country,
  cast( '42' as oiu_pri_geo_loc ) AS PrimaryGeogrlLocation,
  cast( '/PRA/RP_WORKPLACE' as fqm_origin_trans_id ) AS OriginTransaction,
  uom AS BaseUnit,
  _CompanyCode.Currency AS CompanyCodeCurrency,
  gravity AS APIGravityRatio,
  lease_gross_vol AS TransacVolInBaseUnit,
  gross_vol AS GrossVolInBaseUnit,
  gross_val AS GrossValInCoCodeCrcy,
  tax_vol AS TaxableVolInBaseUnit,
  tax_val AS TaxableValInCoCodeCrcy,
  exempt_vol AS TaxExmptVolInBaseUnit,
  exempt_val AS TaxExmptValInCoCodeCrcy,
  mkt_cost AS MktgCostInCoCodeCrcy,
  mkt_cost_reimb AS MktgReimbmtCostInCoCodeCrcy,
  tax_amt AS GrossTaxAmtInCoCodeCrcy,
  tax_reimb AS TaxReimbmtAmtInCoCodeCrcy
FROM oiux3_tx_taxhst
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_SeveranceTaxType AS _SeveranceTaxType ON Country = _SeveranceTaxType.Country AND PrimaryGeogrlLocation = _SeveranceTaxType.PrimaryGeogrlLocation AND SeveranceTaxType = _SeveranceTaxType.SeveranceTaxType  -- association [0..1]
LEFT OUTER JOIN I_PRATierTaxType AS _TierTaxType ON TierTaxType = _TierTaxType.TierTaxType  -- association [0..1]
LEFT OUTER JOIN I_TaxRptgRvslOrBkgOrAdjmtCode AS _TaxRptgRvslOrBkgOrAdjmt ON TaxRptgRvslOrBkgOrAdjmt = _TaxRptgRvslOrBkgOrAdjmt.TaxRptgRvslOrBkgOrAdjmt  -- 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_PRATaxTexasCounty AS _TexasCounty ON TexasCounty = _TexasCounty.TexasCounty  -- association [0..1]
LEFT OUTER JOIN I_PRATaxTXLease AS _ReportingAgencyLease ON ReportingAgencyLease = _ReportingAgencyLease.ReportingAgencyLease  -- association [0..1]
LEFT OUTER JOIN I_PRATaxOnOrOffLeaseSale AS _OnOrOffLeaseSale ON OnOrOffLeaseSale = _OnOrOffLeaseSale.OnOrOffLeaseSale  -- association [0..1]
LEFT OUTER JOIN I_PRATaxMstrDataRecgLvl AS _MasterDataRecordingLvl ON MasterDataRecordingLvl = _MasterDataRecordingLvl.MasterDataRecordingLvl  -- association [0..1]
LEFT OUTER JOIN I_PRATaxTXCommodityType AS _CommodityType ON CommodityType = _CommodityType.CommodityType  -- association [0..1]
LEFT OUTER JOIN I_ProducerOrPurchaserCode AS _ProducerOrPurchaserCode ON ProducerOrPurchaserCode = _ProducerOrPurchaserCode.ProducerOrPurchaserCode  -- 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_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_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [0..1]
;