I_PRAAnnRptgChkDetTmpPrevYear
Payment Processing Check Detail
I_PRAAnnRptgChkDetTmpPrevYear (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRAAnnualReportRunDetail · Cross Applications
I_PRAAnnRptgChkDetTmpPrevYear is a Basic CDS View that provides data about "Payment Processing Check Detail" in SAP S/4HANA. It reads from 1 data source (/pra/wh_ck_dtl_t) and exposes 78 fields with key fields PRAWithholdingProcessRun, ProcessRun, PRACheckNumber, PRAOwner, JointVenture. It has 27 associations to related views.
SAP Help Documentation
| Category | CDS Views for Production and Revenue Accounting (PRA) |
|---|
This CDS view is a production revenue accounting annual report, used to report federal and state withholding funds for residents and non-residents. Withholding run detail consists of run level process selection and form type details.
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/WH_WORKPLACE (Mapping role for I_PRAAnnRptgChkDetTmpPrevYear)
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 production revenue accounting annual report, used to report federal and state withholding funds for residents and non-residents. Withholding run detail consists of run level process selection and form type details. </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/wh_ck_dtl_t | /pra/wh_ck_dtl_t | from |
Associations (27)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_ProcessRun | _ProcessRun | $projection.ProcessRun = _ProcessRun.ProcessRun and $projection.PRAWithholdingProcessRun = _ProcessRun.ProcessRun |
| [0..1] | I_PRAPaymentHeaderAttribute | _PaymentHeader | $projection.ProcessRun = _PaymentHeader.ProcessRun and $projection.PRACheckNumber = _PaymentHeader.PRACheckNumber |
| [0..1] | I_PRAOwner | _PRAOwner | $projection.PRAOwner = _PRAOwner.PRAOwner |
| [0..1] | I_OwnerInterestType | _OwnerInterestType | $projection.OwnerInterestType = _OwnerInterestType.OwnerInterestType |
| [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_Well | _Well | $projection.Well = _Well.Well |
| [0..1] | I_WellCompletion | _WellCompletion | $projection.Well = _WellCompletion.Well and $projection.WellCompletion = _WellCompletion.WellCompletion |
| [0..1] | I_PRAProduct | _Product | $projection.PRAProduct = _Product.Product |
| [0..1] | I_PRAGLAccount | _GLAccount | $projection.CompanyCode = _GLAccount.CompanyCode and $projection.GLAccount = _GLAccount.GLAccount |
| [0..1] | I_PaymentRecordType | _RecordType | $projection.RecordType = _RecordType.RecordType |
| [0..1] | I_DeliveryNetwork | _DeliveryNetwork | $projection.DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork |
| [0..1] | I_Country | _Country | $projection.Country = _Country.Country |
| [0..1] | I_Region | _Region | $projection.Country = _Region.Country and $projection.Region = _Region.Region |
| [0..1] | I_PRACounty | _County | $projection.Country = _County.Country and $projection.Region = _County.Region and $projection.County = _County.County |
| [0..1] | I_PRAJointVenture | _UnitJointVenture | $projection.CompanyCode = _UnitJointVenture.CompanyCode and $projection.UnitJointVenture = _UnitJointVenture.PRAJointVenture |
| [0..1] | I_SuspenseReason | _SuspenseReason | $projection.SuspenseReason = _SuspenseReason.SuspenseReason |
| [0..1] | I_PriorPeriodAdjustmentReason | _PriorPeriodAdjustmentReason | $projection.PriorPeriodAdjustmentReason = _PriorPeriodAdjustmentReason.PriorPeriodAdjustmentReason |
| [0..1] | I_Calculationbasis | _CalculationBasis | $projection.PRAActualEntitledSettlement = _CalculationBasis.CalculationBasis |
| [0..1] | I_PaymentDtlRejectionRsn | _PaymentDetldRejectionRsn | $projection.PaymentDetailRejectionRsn = _PaymentDetldRejectionRsn.PaymentDetailRejectionRsn |
| [0..1] | I_PaymentHdrRejectionRsn | _PaymentHeaderRejectionRsn | $projection.PaymentHeaderRejectionRsn = _PaymentHeaderRejectionRsn.PaymentHeaderRejectionRsn |
| [0..1] | I_UnitOfMeasure | _VolumeUnit | $projection.VolumeUnit = _VolumeUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _EnergyUnit | $projection.EnergyUnit = _EnergyUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _HeatingValUnit | $projection.HeatingValUnit = _HeatingValUnit.UnitOfMeasure |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Payment Processing Check Detail | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.sapObjectNodeType.name | PRAAnnualReportRunDetail | view |
Fields (78)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PRAWithholdingProcessRun | wh_run_id | Proc 2.0 - Run ID | |
| KEY | ProcessRun | run_id | Proc 2.0 - Run ID | |
| KEY | PRACheckNumber | Check Number | ||
| KEY | PRAOwner | own_no | Owner Number | |
| KEY | JointVenture | vname | Volatility Name | |
| KEY | DivisionOfInterest | doi_no | Division of Interest (DOI) | |
| KEY | Well | wl_no | Well ID number | |
| KEY | WellCompletion | wc_no | Well Completion Number | |
| KEY | OwnerInterestType | Participant Interest Type | ||
| KEY | OwnerInterestSequence | Owner Interest Sequence Number | ||
| KEY | SalesDate | sale_dt | Sales Date / Month | |
| KEY | PRAProduct | pd_cd | Full three char. product code (Major and Detail Products) | |
| KEY | DisbursementDecimalRatio | Data Element of Technical Type Decimal (Length 12, Scale 2) | ||
| KEY | GLAccount | saknr | G/L Account Number | |
| KEY | RecordType | record_type | Payment Processing - Record Type | |
| CompanyCode | Company Code | |||
| PRAAccountingPeriod | PRA Accounting Period | |||
| NetRevenueInterestRatio | nri_decimal | Net Revenue Interest Percent | ||
| DeliveryNetwork | dn_no | Delivery network number | ||
| Country | Country/Region Key | |||
| Region | regio | Region (State, Province, County) | ||
| County | counc | County Code | ||
| UnitJointVenture | unit_vname | Unit Venture | ||
| VolumeUnit | Volume Base Unit of Measure | |||
| EnergyUnit | Energy Base Unit Of Measure | |||
| SuspenseReason | sus_rsn_cd | Suspense Reason Code | ||
| PriorPeriodAdjustmentReason | ppa_rsn_cd | Prior Period Adjustment Reason Code | ||
| PRAActualEntitledSettlement | aes_cd | Actual, Entitlement, Settlement Codes | ||
| GrossVolInVolUnit | gross_vol | Total Gross Volume | ||
| GrossAmount | gross_val | Gross Value | ||
| OwnerGrossAmount | owner_gross_val | Owner Gross Value | ||
| OwnerNetAmount | net_val | Owner Net Value | ||
| OwnerNetVolInVolUnit | net_vol | Owner Net Volume | ||
| GrossEnergyInEnergyUnit | gross_energy | Gross Energy | ||
| OwnerEnergyInEnergyUnit | owner_energy | Owner Energy | ||
| GrossMarketingCost | gross_tot_mkt | Gross marketing costs | ||
| GrossTaxAmount | gross_tot_taxes | Gross Tax Amt | ||
| TotalMarketingAmt | owner_tot_mkt | Total owner marketing cost | ||
| OwnerTaxAmount | owner_tot_taxes | Owner Tax | ||
| TotalDeductionAmt | owner_tot_other | Total Owner Other Deducts | ||
| GrossLessDeductionAmt | grs_less_tax_mkt | Gross value less deductions | ||
| HeatingValue | heat_val | Heat.val.factor | ||
| HeatingValUnit | Heating Unit Of Measure | |||
| PRAPrice | price | RVP f.PricePro. | ||
| PaymentHeaderRejectionRsn | rej_cd | Payment Processing - High Level Reject Code | ||
| PaymentDetailRejectionRsn | dtl_rej_cd | Payment Processing - Detail Level Reject Code | ||
| PRACommentNumber | comment_no | Numeric Character Field, Length 10 | ||
| PaymentDate | check_dt | ToDateForInterestClc | ||
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| CreatedByUser | oiu_cruser | Name of Person Responsible for Creating the Object | ||
| CreationDateTime | oiu_timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| _CompanyCode | _CompanyCode | |||
| _ProcessRun | _ProcessRun | |||
| _PaymentHeader | _PaymentHeader | |||
| _PRAOwner | _PRAOwner | |||
| _OwnerInterestType | _OwnerInterestType | |||
| _PRAJointVenture | _PRAJointVenture | |||
| _DivisionOfInterest | _DivisionOfInterest | |||
| _Well | _Well | |||
| _WellCompletion | _WellCompletion | |||
| _Product | _Product | |||
| _GLAccount | _GLAccount | |||
| _RecordType | _RecordType | |||
| _DeliveryNetwork | _DeliveryNetwork | |||
| _Country | _Country | |||
| _Region | _Region | |||
| _County | _County | |||
| _UnitJointVenture | _UnitJointVenture | |||
| _SuspenseReason | _SuspenseReason | |||
| _PriorPeriodAdjustmentReason | _PriorPeriodAdjustmentReason | |||
| _CalculationBasis | _CalculationBasis | |||
| _PaymentDetldRejectionRsn | _PaymentDetldRejectionRsn | |||
| _PaymentHeaderRejectionRsn | _PaymentHeaderRejectionRsn | |||
| _VolumeUnit | _VolumeUnit | |||
| _EnergyUnit | _EnergyUnit | |||
| _HeatingValUnit | _HeatingValUnit | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _CreatedByUser | _CreatedByUser |
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_PRAAnnRptgChkDetTmpPrevYear.
-- 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_PRAAnnRptgChkDetTmpPrevYear AS
SELECT
wh_run_id AS PRAWithholdingProcessRun,
run_id AS ProcessRun,
cast( check_no as oiu_vdm_check_number) AS PRACheckNumber,
own_no AS PRAOwner,
vname AS JointVenture,
doi_no AS DivisionOfInterest,
wl_no AS Well,
wc_no AS WellCompletion,
cast( substring(own_int_type_seq, 1, 2) as oiu_part_int_type) AS OwnerInterestType,
cast( right(own_int_type_seq, 2) as oiu_own_isq_no) AS OwnerInterestSequence,
sale_dt AS SalesDate,
pd_cd AS PRAProduct,
cast(disb_decimal as dec12_2) AS DisbursementDecimalRatio,
saknr AS GLAccount,
record_type AS RecordType,
cast ( bukrs as fis_bukrs preserving type ) AS CompanyCode,
cast ( acct_period as oiu_vdm_acct_period ) AS PRAAccountingPeriod,
nri_decimal AS NetRevenueInterestRatio,
dn_no AS DeliveryNetwork,
cast( land1 as land1_gp preserving type ) AS Country,
regio AS Region,
counc AS County,
unit_vname AS UnitJointVenture,
cast( vol_uom as /pra/vol_uom ) AS VolumeUnit,
cast( energy_uom as /pra/energy_uom ) AS EnergyUnit,
sus_rsn_cd AS SuspenseReason,
ppa_rsn_cd AS PriorPeriodAdjustmentReason,
aes_cd AS PRAActualEntitledSettlement,
gross_vol AS GrossVolInVolUnit,
gross_val AS GrossAmount,
owner_gross_val AS OwnerGrossAmount,
net_val AS OwnerNetAmount,
net_vol AS OwnerNetVolInVolUnit,
gross_energy AS GrossEnergyInEnergyUnit,
owner_energy AS OwnerEnergyInEnergyUnit,
gross_tot_mkt AS GrossMarketingCost,
gross_tot_taxes AS GrossTaxAmount,
owner_tot_mkt AS TotalMarketingAmt,
owner_tot_taxes AS OwnerTaxAmount,
owner_tot_other AS TotalDeductionAmt,
grs_less_tax_mkt AS GrossLessDeductionAmt,
heat_val AS HeatingValue,
cast( heat_val_uom as /pra/heating_uom ) AS HeatingValUnit,
price AS PRAPrice,
rej_cd AS PaymentHeaderRejectionRsn,
dtl_rej_cd AS PaymentDetailRejectionRsn,
comment_no AS PRACommentNumber,
check_dt AS PaymentDate,
_CompanyCode.Currency AS CompanyCodeCurrency,
oiu_cruser AS CreatedByUser,
oiu_timestamp AS CreationDateTime
FROM /pra/wh_ck_dtl_t
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_ProcessRun AS _ProcessRun ON ProcessRun = _ProcessRun.ProcessRun AND PRAWithholdingProcessRun = _ProcessRun.ProcessRun -- association [0..1]
LEFT OUTER JOIN I_PRAPaymentHeaderAttribute AS _PaymentHeader ON ProcessRun = _PaymentHeader.ProcessRun AND PRACheckNumber = _PaymentHeader.PRACheckNumber -- association [0..1]
LEFT OUTER JOIN I_PRAOwner AS _PRAOwner ON PRAOwner = _PRAOwner.PRAOwner -- association [0..1]
LEFT OUTER JOIN I_OwnerInterestType AS _OwnerInterestType ON OwnerInterestType = _OwnerInterestType.OwnerInterestType -- 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_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_PRAProduct AS _Product ON PRAProduct = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_PRAGLAccount AS _GLAccount ON CompanyCode = _GLAccount.CompanyCode AND GLAccount = _GLAccount.GLAccount -- association [0..1]
LEFT OUTER JOIN I_PaymentRecordType AS _RecordType ON RecordType = _RecordType.RecordType -- association [0..1]
LEFT OUTER JOIN I_DeliveryNetwork AS _DeliveryNetwork ON DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country -- association [0..1]
LEFT OUTER JOIN I_Region AS _Region ON Country = _Region.Country AND Region = _Region.Region -- association [0..1]
LEFT OUTER JOIN I_PRACounty AS _County ON Country = _County.Country AND Region = _County.Region AND County = _County.County -- 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_SuspenseReason AS _SuspenseReason ON SuspenseReason = _SuspenseReason.SuspenseReason -- association [0..1]
LEFT OUTER JOIN I_PriorPeriodAdjustmentReason AS _PriorPeriodAdjustmentReason ON PriorPeriodAdjustmentReason = _PriorPeriodAdjustmentReason.PriorPeriodAdjustmentReason -- association [0..1]
LEFT OUTER JOIN I_Calculationbasis AS _CalculationBasis ON PRAActualEntitledSettlement = _CalculationBasis.CalculationBasis -- association [0..1]
LEFT OUTER JOIN I_PaymentDtlRejectionRsn AS _PaymentDetldRejectionRsn ON PaymentDetailRejectionRsn = _PaymentDetldRejectionRsn.PaymentDetailRejectionRsn -- association [0..1]
LEFT OUTER JOIN I_PaymentHdrRejectionRsn AS _PaymentHeaderRejectionRsn ON PaymentHeaderRejectionRsn = _PaymentHeaderRejectionRsn.PaymentHeaderRejectionRsn -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON VolumeUnit = _VolumeUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EnergyUnit ON EnergyUnit = _EnergyUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _HeatingValUnit ON HeatingValUnit = _HeatingValUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- 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