I_PRATaxRptgHistoryND

DDL: I_PRATAXRPTGHISTORYND SQL: IPVTAXRPTGHISTND Type: view BASIC

PRA Tax Reporting History North Dakota

I_PRATaxRptgHistoryND (Basic)

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

PRA North Dakota Tax Reporting History · Cross Applications

I_PRATaxRptgHistoryND is a Basic CDS View (Cube) that provides data about "PRA Tax Reporting History North Dakota" in SAP S/4HANA. It reads from 1 data source (/pra/nd_taxhst) and exposes 84 fields with key fields CompanyCode, SalesDate, Product, Well, WellCompletion. It has 25 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
/pra/nd_taxhst /pra/nd_taxhst from

Associations (25)

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_TaxRptgRvslOrBkgOrAdjmtCode _TaxRptgRvslOrBkgOrAdjmt $projection.TaxRptgRvslOrBkgOrAdjmt = _TaxRptgRvslOrBkgOrAdjmt.TaxRptgRvslOrBkgOrAdjmt
[0..1] I_ProducerOrPurchaserCode _ProducerOrPurchaserCode $projection.ProducerOrPurchaserCode = _ProducerOrPurchaserCode.ProducerOrPurchaserCode
[0..1] I_JointVenture _UnitJointVenture $projection.CompanyCode = _UnitJointVenture.CompanyCode and $projection.UnitJointVenture = _UnitJointVenture.JointVenture
[0..1] I_Indicator _HasSeveranceTaxPaytOblgn $projection.HasSeveranceTaxPaytOblgn = _HasSeveranceTaxPaytOblgn.IndicatorValue
[0..1] I_Indicator _SeveranceTaxRptgType $projection.SeveranceTaxRptgType = _SeveranceTaxRptgType.IndicatorValue
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_PRATaxNDExmpWellType _NorthDakotaTaxExmpWellType $projection.NorthDakotaTaxExmpWellType = _NorthDakotaTaxExmpWellType.NorthDakotaTaxExmpWellType
[0..1] I_PRATaxNDPostalAreaCode _NorthDakotaPostalAreaCode $projection.NorthDakotaPostalAreaCode = _NorthDakotaPostalAreaCode.NorthDakotaPostalAreaCode
[0..1] I_PRATaxNDReservoir _Reservoir $projection.Reservoir = _Reservoir.Reservoir
[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_CalendarYear _ValuationDocumentYear $projection.ValuationDocumentYear = _ValuationDocumentYear.CalendarYear
[0..1] I_ValuationDocumentHdr _ValuationDocumentHdr $projection.ValuationDocumentNumber = _ValuationDocumentHdr.ValuationDocumentNumber and $projection.ValuationDocumentYear = _ValuationDocumentHdr.ValuationDocumentYear

Annotations (14)

NameValueLevelField
EndUserText.label PRA Tax Reporting History North Dakota view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IPVTAXRPTGHISTND view
AccessControl.authorizationCheck #CHECK view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.sapObjectNodeType.name PRANorthDakotaTaxRptgHist view

Fields (84)

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 TaxRptgRvslOrBkgOrAdjmt rev_book_adj_ind Reversal/Booking/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
NorthDakotaTaxExmpWellType well_code Tax 2.0: ND Well Code
NorthDakotaPostalAreaCode posting_code Tax 2.0: ND Posting Code
APIWellNumber api_number Tax 2.0 ND API Number
APIWellName api_name Tax 2.0 North Dakota API Name
APIGravityRatio oil_gravity Tax 2.0 : ND Oil Gravity
ProducerOrPurchaserNmbr other_no Customer / Vendor Number
FederalIDByAgency oth_fed_id_no_1 Tax 2.0: Federal ID Number
TaxPayerIDByAgency taxpayer_number Tax 2.0 ND Taxpayer Number
Reservoir pool_code Tax 2.0: ND Pool Code
ValuationDocumentNumber doc_no Val. document number
ValuationDocumentYear doc_year Mat. Doc. Year
CreatedByUser Created By
CreationDateTime Created On Timestamp
Country Country/Region Key
PrimaryGeogrlLocation Primary Geographical Location
OriginTransaction Source Transaction ID
OilVolumeInBarrels brl_oil_pur_sld Tax 2.0 - ND Barrels Of Oil Purchased or Sold
OilValueInCoCodeCrcy val_oil_pur_sld Tax 2.0 - ND Oil Value Purchased Or Sold
TaxExmpValInCoCodeCrcy exempt_value Tax 2.0 ND Ex Val Pur/Sold
TaxableOilValInCoCodeCrcy tax_value_oil Tax 2.0 - ND Oil Taxable Value
ProdnTaxDueAmtInCoCodeCrcy pr_tax_due Tax 2.0 - ND Production Tax Due
ProdnTxPrevPaidAmtInCoCdCrcy pr_tax_prev Tax 2.0 - ND Tax Previously Paid
ProdnTaxOthPaidAmtInCoCdCrcy pr_tax_others Tax 2.0 ND Production Tax Paid By Others
ProdnTaxPaidAmtInCoCodeCrcy pr_tax_paid Tax 2.0 - ND Production Tax Paid By Report
ExtractnTxDueAmtInCoCodeCrcy ex_tax_due Tax 2.0 - ND Extraction Tax Due
ExtractnTxPrevAmtInCoCdCrcy ex_tax_prev Tax 2.0 - ND Extraction Tax Previously Paid
ExtractnTaxOthAmtInCoCdCrcy ex_tax_others Tax 2.0 - ND Extraction Tax Paid By Others
ExtractnTaxPaidAmtInCoCdCrcy ex_tax_paid Tax 2.0 - ND Extraction Tax Paid By Report
AddlValInCoCodeCrcy additional_val Tax 2.0 : ND Additional Value
MktgCost01InCoCodeCrcy mkt_cost_01 Marketing Cost
MktgCost02InCoCodeCrcy mkt_cost_02 Marketing Cost
MktgCost03InCoCodeCrcy mkt_cost_03 Marketing Cost
MktgCost04InCoCodeCrcy mkt_cost_04 Marketing Cost
MktgCost05InCoCodeCrcy mkt_cost_05 Marketing Cost
MktgCost06InCoCodeCrcy mkt_cost_06 Marketing Cost
MktgCost07InCoCodeCrcy mkt_cost_07 Marketing Cost
MktgCost08InCoCodeCrcy mkt_cost_08 Marketing Cost
MktgCost09InCoCodeCrcy mkt_cost_09 Marketing Cost
MktgCost10InCoCodeCrcy mkt_cost_10 Marketing Cost
MktgReimbmtCostInCoCodeCrcy mkt_cost_reimb Marketing Cost Reimbursement
_CompanyCode _CompanyCode
_Product _Product
_Well _Well
_WellCompletion _WellCompletion
_MeasurementPoint _MeasurementPoint
_PRAJointVenture _PRAJointVenture
_DivisionOfInterest _DivisionOfInterest
_DeliveryNetwork _DeliveryNetwork
_PRAContract _PRAContract
_VolumeType _VolumeType
_TaxClassification _TaxClassification
_TaxRptgRvslOrBkgOrAdjmt _TaxRptgRvslOrBkgOrAdjmt
_ProducerOrPurchaserCode _ProducerOrPurchaserCode
_UnitJointVenture _UnitJointVenture
_HasSeveranceTaxPaytOblgn _HasSeveranceTaxPaytOblgn
_SeveranceTaxRptgType _SeveranceTaxRptgType
_BaseUnit _BaseUnit
_CompanyCodeCurrency _CompanyCodeCurrency
_NorthDakotaTaxExmpWellType _NorthDakotaTaxExmpWellType
_NorthDakotaPostalAreaCode _NorthDakotaPostalAreaCode
_Reservoir _Reservoir
_Country _Country
_PrimaryGeogrlLocation _PrimaryGeogrlLocation
_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_PRATaxRptgHistoryND.
-- 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: IPVTAXRPTGHISTND

CREATE VIEW I_PRATaxRptgHistoryND 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,
  well_code AS NorthDakotaTaxExmpWellType,
  posting_code AS NorthDakotaPostalAreaCode,
  api_number AS APIWellNumber,
  api_name AS APIWellName,
  oil_gravity AS APIGravityRatio,
  other_no AS ProducerOrPurchaserNmbr,
  oth_fed_id_no_1 AS FederalIDByAgency,
  taxpayer_number AS TaxPayerIDByAgency,
  pool_code AS Reservoir,
  doc_no AS ValuationDocumentNumber,
  doc_year AS ValuationDocumentYear,
  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( '33' as oiu_pri_geo_loc ) AS PrimaryGeogrlLocation,
  cast( '/PRA/RP_WORKPLACE' as fqm_origin_trans_id ) AS OriginTransaction,
  brl_oil_pur_sld AS OilVolumeInBarrels,
  val_oil_pur_sld AS OilValueInCoCodeCrcy,
  exempt_value AS TaxExmpValInCoCodeCrcy,
  tax_value_oil AS TaxableOilValInCoCodeCrcy,
  pr_tax_due AS ProdnTaxDueAmtInCoCodeCrcy,
  pr_tax_prev AS ProdnTxPrevPaidAmtInCoCdCrcy,
  pr_tax_others AS ProdnTaxOthPaidAmtInCoCdCrcy,
  pr_tax_paid AS ProdnTaxPaidAmtInCoCodeCrcy,
  ex_tax_due AS ExtractnTxDueAmtInCoCodeCrcy,
  ex_tax_prev AS ExtractnTxPrevAmtInCoCdCrcy,
  ex_tax_others AS ExtractnTaxOthAmtInCoCdCrcy,
  ex_tax_paid AS ExtractnTaxPaidAmtInCoCdCrcy,
  additional_val AS AddlValInCoCodeCrcy,
  mkt_cost_01 AS MktgCost01InCoCodeCrcy,
  mkt_cost_02 AS MktgCost02InCoCodeCrcy,
  mkt_cost_03 AS MktgCost03InCoCodeCrcy,
  mkt_cost_04 AS MktgCost04InCoCodeCrcy,
  mkt_cost_05 AS MktgCost05InCoCodeCrcy,
  mkt_cost_06 AS MktgCost06InCoCodeCrcy,
  mkt_cost_07 AS MktgCost07InCoCodeCrcy,
  mkt_cost_08 AS MktgCost08InCoCodeCrcy,
  mkt_cost_09 AS MktgCost09InCoCodeCrcy,
  mkt_cost_10 AS MktgCost10InCoCodeCrcy,
  mkt_cost_reimb AS MktgReimbmtCostInCoCodeCrcy
FROM /pra/nd_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_TaxRptgRvslOrBkgOrAdjmtCode AS _TaxRptgRvslOrBkgOrAdjmt ON TaxRptgRvslOrBkgOrAdjmt = _TaxRptgRvslOrBkgOrAdjmt.TaxRptgRvslOrBkgOrAdjmt  -- association [0..1]
LEFT OUTER JOIN I_ProducerOrPurchaserCode AS _ProducerOrPurchaserCode ON ProducerOrPurchaserCode = _ProducerOrPurchaserCode.ProducerOrPurchaserCode  -- association [0..1]
LEFT OUTER JOIN I_JointVenture AS _UnitJointVenture ON CompanyCode = _UnitJointVenture.CompanyCode AND UnitJointVenture = _UnitJointVenture.JointVenture  -- 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_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_PRATaxNDExmpWellType AS _NorthDakotaTaxExmpWellType ON NorthDakotaTaxExmpWellType = _NorthDakotaTaxExmpWellType.NorthDakotaTaxExmpWellType  -- association [0..1]
LEFT OUTER JOIN I_PRATaxNDPostalAreaCode AS _NorthDakotaPostalAreaCode ON NorthDakotaPostalAreaCode = _NorthDakotaPostalAreaCode.NorthDakotaPostalAreaCode  -- association [0..1]
LEFT OUTER JOIN I_PRATaxNDReservoir AS _Reservoir ON Reservoir = _Reservoir.Reservoir  -- 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_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]
;