I_PRA_US_AKRyRptOOStueHistory
PRA AK RyRpt OOS Ry Trans Hist
I_PRA_US_AKRyRptOOStueHistory (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRA_US_AKRyRptOOStueHistory · Cross Applications
I_PRA_US_AKRyRptOOStueHistory is a Basic CDS View (Fact) that provides data about "PRA AK RyRpt OOS Ry Trans Hist" in SAP S/4HANA. It reads from 1 data source (/pra/akr_ooshst) and exposes 85 fields with key fields PRAInternalCompanyCode, PRASalesDate, PRAProduct, Well, WellCompletion. It has 13 associations to related views.
SAP Help Documentation
| Category | CDS Views for Production and Revenue Accounting (PRA) |
|---|---|
| Data Category | Fact |
This CDS view is used to display out of statute history data. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: O_OIU_TXN (IS-OIL PRA :Transaction Control - Transaction and Mode)
Structure
Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute Comment PRAInternalCompanyCode Company Code Attribute Company Code PRASalesDate Sales Date Attribute Sales Date PRAProduct Product Code Attribute Product Code PRA_US_AKLeaseTypeCode Lease Type Code Attribute Roy 2.0 AK – Lease Type Code PRA_US_AKSellingArrgmtCode SellArrangementCode Attribute Roy 2.0 AK – Selling Arrangement Code TaxRptgRvslOrBkgOrAdjmt Rev/Book/RevAdj/Adj Attribute Royalty 2.0 - TX - Reversal/Booking/Reverse Adjustment
Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | IS-OIL-PRA |
| Capabilities | Data Source for Data Extraction |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view is used to display out of statute history data. </p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</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/akr_ooshst | /pra/akr_ooshst | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.PRAInternalCompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_PRAProductText | _ProductText | $projection.PRAProduct = _ProductText.Product and _ProductText.Language = $session.system_language |
| [0..1] | I_PRAWell | _Well | $projection.Well = _Well.Well |
| [0..1] | I_PRAWellCompletion | _WellCompletion | $projection.Well = _WellCompletion.Well and $projection.WellCompletion = _WellCompletion.WellCompletion |
| [0..1] | I_MeasurementPoint | _MeasurementPoint | $projection.MeasurementPoint = _MeasurementPoint.MeasurementPoint |
| [0..1] | I_PRAJointVenture | _JointVenture | $projection.PRAInternalCompanyCode = _JointVenture.CompanyCode and $projection.PRAJointVenture = _JointVenture.PRAJointVenture |
| [0..1] | I_DivisionOfInterest | _DivisionOfInterest | $projection.PRAInternalCompanyCode = _DivisionOfInterest.CompanyCode and $projection.DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest and $projection.PRAJointVenture = _DivisionOfInterest.JointVenture |
| [0..1] | I_DeliveryNetwork | _DeliveryNetwork | $projection.DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork |
| [0..1] | I_PRAContract | _Contract | $projection.PRAContract = _Contract.PRAContract |
| [0..1] | I_VolumeTypeText | _VolumeTypeText | $projection.VolumeType = _VolumeTypeText.VolumeType and _VolumeTypeText.Language = $session.system_language |
| [0..1] | I_PRAOwner | _Owner | $projection.PRAOwner = _Owner.PRAOwner |
| [0..1] | I_OwnerInterestTypeText | _OwnerInterestTypeText | $projection.OwnerInterestType = _OwnerInterestTypeText.OwnerInterestType and _OwnerInterestTypeText.Language = $session.system_language |
| [0..1] | I_TaxRptgRvslOrBkgOrAdjmtText | _TaxRptgRvslOrBkgOrAdjmtText | $projection.TaxRptgRvslOrBkgOrAdjmt = _TaxRptgRvslOrBkgOrAdjmtText.TaxRptgRvslOrBkgOrAdjmt and _TaxRptgRvslOrBkgOrAdjmtText.Language = $session.system_language |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.extensibility.allowNewCompositions | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | PRA AK RyRpt OOS Ry Trans Hist | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.technicalName | IPRAUSAKRyRptOOStueHistory | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataCategory | #FACT | view | |
| ObjectModel.sapObjectNodeType.name | PRA_US_AKRyRptOOStueHistory | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (85)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PRAInternalCompanyCode | Company Code | ||
| KEY | PRASalesDate | sales_dt | Sales Date / Month | |
| KEY | PRAProduct | Full three char. product code (Major and Detail Products) | ||
| KEY | Well | Well ID number | ||
| KEY | WellCompletion | Well Completion Number | ||
| KEY | MeasurementPoint | Measurement point number | ||
| KEY | PRAJointVenture | Volatility Name | ||
| KEY | DivisionOfInterest | Division of Interest (DOI) | ||
| KEY | DeliveryNetwork | Delivery network number | ||
| KEY | PRAContract | Contract Number | ||
| KEY | VolumeType | Volume type code | ||
| KEY | PRAOwner | Owner Number | ||
| KEY | OwnerInterestType | Participant Interest Type | ||
| KEY | OwnerInterestSequence | own_isq_no | Owner Interest Sequence Number | |
| KEY | VarblDataCostCenter | kostl | Substitute CC | |
| TaxRptgRvslOrBkgOrAdjmt | rev_book_adj_ind | Royalty 2.0 - TX - Reversal/Booking/Reversal Adjustment/Adjs | ||
| PRAUnitVenture | unit_vname | Joint venture | ||
| PRAIsMsmtPointOperated | operated_fl | Operated Flag | ||
| OriginatingMeasurementPt | orig_mp_no | Original measurement point number | ||
| GLAccount | acct_no | G/L Account Number | ||
| PressureBaseQty | ps_base_qy | Pressure Base | ||
| APIGravityRatio | grv_qy | Oil/gas density at standard/base conditions | ||
| PRANewPaymentCode | pay_cd | Pay Code | ||
| PRAOwnNetRevnInterestPercent | own_int_decm_qy | Royalty 2.0 - TX GLO - Owner NRI | ||
| PRAOwnerDisbursementDcmls | own_bal_decm_qy | Disbursement Decimal | ||
| PrimaryGeogrlLocation | pri_geo_loc | Primary Geographical Location | ||
| PRACounty | counc | County Code | ||
| PRALegalForm | enty_cd | Entity Type | ||
| PRACurrency | waers | Transaction Currency | ||
| PRAVolumeUnitOfMeasure | vol_uom | Volume Base Unit of Measure | ||
| PRAEnergyUoM | energy_uom | Energy Base Unit Of Measure | ||
| PRAHeatingValueUnitOfMeasure | heat_val_uom | Heating Unit Of Measure | ||
| PRAPressureUnitOfMeasure | pres_uom | Measurement unit | ||
| PRABritishThermalUnitQuantity | btu_qy | BTU quantity | ||
| ProductionDays | prd_days | Days produced | ||
| DisbursementDecimalRatio | disb_decimal | Disbursement Decimal | ||
| NetRevenueInterestRatio | nri_decimal | Net Revenue Interest Percent | ||
| ValuationDocumentNumber | doc_no | Val. document number | ||
| ValuationDocumentYear | doc_year | Mat. Doc. Year | ||
| GrossVolInVolUnit | gross_vol | Total Gross Volume | ||
| GrossEnergyInEnergyUnit | gross_energy | Gross Energy | ||
| GrossVolReducnInVolUnit | gross_pvr | Gross PVR | ||
| GrossThermReductionInQuantity | gross_ptr | Gross PTR | ||
| OwnerNetVolInVolUnit | net_vol | Owner Net Volume | ||
| OwnerEnergyInEnergyUnit | owner_energy | Owner Energy | ||
| OwnrVolReducnInVolUnit | own_pvr | Owner PVR | ||
| OwnerThermReductionInQuantity | own_ptr | Owner PTR | ||
| GrossLessDeductionAmt | gross_val | Gross Value | ||
| OwnerGrossAmount | owner_gross_val | Owner Gross Value | ||
| OwnerNetAmount | net_val | Owner Net Value | ||
| PRATaxRoytyRptgNetTranspAmount | net_transp_am | Marketing Cost | ||
| PRATaxRoytyRptgNetOthMktgAmt | net_oth_mk_am | Marketing Cost | ||
| PRANetReimbmtMarketingAmount | ded_rmb_am | Net Marketing Cost Reimbursement | ||
| PRATaxAmount | tax_am | Tax Amount | ||
| PRATaxReimbmtAmount | tax_rmb_am | Tax Reimbursement Amount | ||
| PRATaxRoytyRptgOption1 | option1 | Single-Character Flag | ||
| PRATaxRoytyRptgOption2 | option2 | Single-Character Flag | ||
| PRATaxRoytyRptgOption3 | option3 | Single-Character Flag | ||
| TransactionIsLegacyData | interface_fl | Single-Character Flag | ||
| PRAReferenceRunID | reference_run_id | Run ID of Tax Report | ||
| PRA_US_AKReportingLink | prof_link_guid | Reporting - Link GUID | ||
| MasterDataRecordingLvl | master_level | Texas Master Data Level | ||
| PRA_US_AKProductCode | product_cd | Roy 2.0 AK – Product Code | ||
| PRA_US_AKReportCode | report_cd | Roy 2.0 AK – Report Code | ||
| PRA_US_AKAccountingUnitCode | ac_unit_cd | Roy 2.0 AK – Accounting Unit Code | ||
| PRA_US_AKAccountingUnitName | ac_unit_nm | Roy 2.0 AK – Accounting Unit Name | ||
| PRARoyaltyDecimals | royalty_decimal | Royalty 2.0 - Texas GLO - Royalty Decimal | ||
| PRA_US_AKOutsdSubstantialDcmls | os_decimal | Roy 2.0 AK – Outside Substantial Decimal | ||
| ContrIsForGravityDifferential | gd_only_ct | General Flag | ||
| PRA_US_AKAllocationFactor | allocation_factor | Roy 2.0 AK – Allocation Factor | ||
| PRACreatedByName | oiu_cruser | Name of Person Responsible for Creating the Object | ||
| PRA_CreationDateTime | oiu_timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| _CompanyCode | _CompanyCode | |||
| _Contract | _Contract | |||
| _DeliveryNetwork | _DeliveryNetwork | |||
| _DivisionOfInterest | _DivisionOfInterest | |||
| _JointVenture | _JointVenture | |||
| _MeasurementPoint | _MeasurementPoint | |||
| _Owner | _Owner | |||
| _OwnerInterestTypeText | _OwnerInterestTypeText | |||
| _ProductText | _ProductText | |||
| _TaxRptgRvslOrBkgOrAdjmtText | _TaxRptgRvslOrBkgOrAdjmtText | |||
| _Well | _Well | |||
| _WellCompletion | _WellCompletion | |||
| _VolumeTypeText | _VolumeTypeText |
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_PRA_US_AKRyRptOOStueHistory.
-- 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_PRA_US_AKRyRptOOStueHistory AS
SELECT
cast(bukrs as bukrs preserving type ) AS PRAInternalCompanyCode,
sales_dt AS PRASalesDate,
cast(pdcd as oiu_full_pd_cd preserving type ) AS PRAProduct,
cast(wl_no as oiu_wl_no preserving type ) AS Well,
cast(wc_no as oiu_wc_no preserving type ) AS WellCompletion,
cast(mp_no as oiu_mp_no preserving type ) AS MeasurementPoint,
cast(vname as jv_name preserving type ) AS PRAJointVenture,
cast(doi_no as oiu_doi_no preserving type ) AS DivisionOfInterest,
cast(dn_no as oiu_dn_no preserving type ) AS DeliveryNetwork,
cast(ct_no as oiu_ct_no preserving type ) AS PRAContract,
cast(vl_type_cd as oiu_vt_cd preserving type ) AS VolumeType,
cast(own_no as oiu_own_no preserving type ) AS PRAOwner,
cast(own_int_type_cd as oiu_part_int_type preserving type ) AS OwnerInterestType,
own_isq_no AS OwnerInterestSequence,
kostl AS VarblDataCostCenter,
rev_book_adj_ind AS TaxRptgRvslOrBkgOrAdjmt,
unit_vname AS PRAUnitVenture,
operated_fl AS PRAIsMsmtPointOperated,
orig_mp_no AS OriginatingMeasurementPt,
acct_no AS GLAccount,
ps_base_qy AS PressureBaseQty,
grv_qy AS APIGravityRatio,
pay_cd AS PRANewPaymentCode,
own_int_decm_qy AS PRAOwnNetRevnInterestPercent,
own_bal_decm_qy AS PRAOwnerDisbursementDcmls,
pri_geo_loc AS PrimaryGeogrlLocation,
counc AS PRACounty,
enty_cd AS PRALegalForm,
waers AS PRACurrency,
vol_uom AS PRAVolumeUnitOfMeasure,
energy_uom AS PRAEnergyUoM,
heat_val_uom AS PRAHeatingValueUnitOfMeasure,
pres_uom AS PRAPressureUnitOfMeasure,
btu_qy AS PRABritishThermalUnitQuantity,
prd_days AS ProductionDays,
disb_decimal AS DisbursementDecimalRatio,
nri_decimal AS NetRevenueInterestRatio,
doc_no AS ValuationDocumentNumber,
doc_year AS ValuationDocumentYear,
gross_vol AS GrossVolInVolUnit,
gross_energy AS GrossEnergyInEnergyUnit,
gross_pvr AS GrossVolReducnInVolUnit,
gross_ptr AS GrossThermReductionInQuantity,
net_vol AS OwnerNetVolInVolUnit,
owner_energy AS OwnerEnergyInEnergyUnit,
own_pvr AS OwnrVolReducnInVolUnit,
own_ptr AS OwnerThermReductionInQuantity,
gross_val AS GrossLessDeductionAmt,
owner_gross_val AS OwnerGrossAmount,
net_val AS OwnerNetAmount,
net_transp_am AS PRATaxRoytyRptgNetTranspAmount,
net_oth_mk_am AS PRATaxRoytyRptgNetOthMktgAmt,
ded_rmb_am AS PRANetReimbmtMarketingAmount,
tax_am AS PRATaxAmount,
tax_rmb_am AS PRATaxReimbmtAmount,
option1 AS PRATaxRoytyRptgOption1,
option2 AS PRATaxRoytyRptgOption2,
option3 AS PRATaxRoytyRptgOption3,
interface_fl AS TransactionIsLegacyData,
reference_run_id AS PRAReferenceRunID,
prof_link_guid AS PRA_US_AKReportingLink,
master_level AS MasterDataRecordingLvl,
product_cd AS PRA_US_AKProductCode,
report_cd AS PRA_US_AKReportCode,
ac_unit_cd AS PRA_US_AKAccountingUnitCode,
ac_unit_nm AS PRA_US_AKAccountingUnitName,
royalty_decimal AS PRARoyaltyDecimals,
os_decimal AS PRA_US_AKOutsdSubstantialDcmls,
gd_only_ct AS ContrIsForGravityDifferential,
allocation_factor AS PRA_US_AKAllocationFactor,
oiu_cruser AS PRACreatedByName,
oiu_timestamp AS PRA_CreationDateTime
FROM /pra/akr_ooshst
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON PRAInternalCompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_PRAProductText AS _ProductText ON PRAProduct = _ProductText.Product AND _ProductText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_PRAWell AS _Well ON Well = _Well.Well -- association [0..1]
LEFT OUTER JOIN I_PRAWellCompletion 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 _JointVenture ON PRAInternalCompanyCode = _JointVenture.CompanyCode AND PRAJointVenture = _JointVenture.PRAJointVenture -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _DivisionOfInterest ON PRAInternalCompanyCode = _DivisionOfInterest.CompanyCode AND DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest AND PRAJointVenture = _DivisionOfInterest.JointVenture -- association [0..1]
LEFT OUTER JOIN I_DeliveryNetwork AS _DeliveryNetwork ON DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork -- association [0..1]
LEFT OUTER JOIN I_PRAContract AS _Contract ON PRAContract = _Contract.PRAContract -- association [0..1]
LEFT OUTER JOIN I_VolumeTypeText AS _VolumeTypeText ON VolumeType = _VolumeTypeText.VolumeType AND _VolumeTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_PRAOwner AS _Owner ON PRAOwner = _Owner.PRAOwner -- association [0..1]
LEFT OUTER JOIN I_OwnerInterestTypeText AS _OwnerInterestTypeText ON OwnerInterestType = _OwnerInterestTypeText.OwnerInterestType AND _OwnerInterestTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_TaxRptgRvslOrBkgOrAdjmtText AS _TaxRptgRvslOrBkgOrAdjmtText ON TaxRptgRvslOrBkgOrAdjmt = _TaxRptgRvslOrBkgOrAdjmtText.TaxRptgRvslOrBkgOrAdjmt AND _TaxRptgRvslOrBkgOrAdjmtText.Language = $session.system_language -- 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