I_PRAPaymentRunHeader
PRA payment run header
I_PRAPaymentRunHeader (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRAPaymentProcessingRunHeader · Cross Applications
I_PRAPaymentRunHeader is a Basic CDS View that provides data about "PRA payment run header" in SAP S/4HANA. It reads from 3 data sources (/pra/c_pp_grpcx, oiue2_run_hdr, /pra/pp_run_hdr) and exposes 16 fields with key field ProcessRun. It has 4 associations to related views.
SAP Help Documentation
| Category | CDS Views for Production and Revenue Accounting (PRA) |
|---|
This CDS view registers details for a payment process run like minimum pay override, house bank, check lot, variance parameter, alternate exchange rate, sales month.
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/PP_WORKPLACE (Access Control for PRA payment run header)
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 registers details for a payment process run like minimum pay override, house bank, check lot, variance parameter, alternate exchange rate, sales month. </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 (3)
| Source | Alias | Join Type |
|---|---|---|
| /pra/c_pp_grpcx | grpcx | inner |
| oiue2_run_hdr | hdr | inner |
| /pra/pp_run_hdr | pp_hdr | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PRACompanyBankVH | _PRACompanyBankVH | _PRACompanyBankVH.PaymentCompanyCode = $projection.PaymentCompanyCode and _PRACompanyBankVH.HouseBank = $projection.HouseBank and _PRACompanyBankVH.HouseBankAccount = $projection.HouseBankAccount |
| [1..1] | I_ProcessRun | _ProcessRun | _ProcessRun.ProcessRun = $projection.ProcessRun |
| [1..1] | I_ExchangeRateType | _ExchangeRateType | _ExchangeRateType.ExchangeRateType = $projection.PRAPaymentExchangeRateType |
| [1..1] | I_CompanyCode | _CompanyCode | _CompanyCode.CompanyCode = $projection.PaymentCompanyCode |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | PRA payment run header | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.sapObjectNodeType.name | PRAPaymentProcessingRunHeader | view | |
| ObjectModel.representativeKey | ProcessRun | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProcessRun | /pra/pp_run_hdr | run_id | Proc 2.0 - Run ID |
| PRAMinPaytOverrideAmount | /pra/pp_run_hdr | min_pay_override | Payment Processing - Minimum Pay Override | |
| HouseBank | /pra/pp_run_hdr | hbkid | Short Key for a House Bank | |
| HouseBankAccount | /pra/pp_run_hdr | hktid | ID for Account Details | |
| Chequebook | /pra/pp_run_hdr | stapl | Lot Number | |
| PRAPaytVarianceParameterSet | /pra/pp_run_hdr | var_set | Payment Processing - Variance Parameter Set | |
| PRAIsPaymentReject | /pra/pp_run_hdr | rejects_only | Payment Processing - Rejects Only | |
| PRAPaymentExchangeRateType | /pra/pp_run_hdr | kurst | Alternative Ex.Rate Type for Payments in Foreign Currency | |
| SalesDate | /pra/pp_run_hdr | sale_dt | Sales Date / Month | |
| PaymentCompanyCode | /pra/c_pp_grpcx | bukrs | Company Code | |
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| _PRACompanyBankVH | _PRACompanyBankVH | |||
| _ExchangeRateType | _ExchangeRateType | |||
| _ProcessRun | _ProcessRun | |||
| _CompanyCode | _CompanyCode | |||
| _HouseBank | _HouseBank |
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_PRAPaymentRunHeader.
-- 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_PRAPaymentRunHeader AS
SELECT
pp_hdr.run_id AS ProcessRun,
pp_hdr.min_pay_override AS PRAMinPaytOverrideAmount,
pp_hdr.hbkid AS HouseBank,
pp_hdr.hktid AS HouseBankAccount,
pp_hdr.stapl AS Chequebook,
pp_hdr.var_set AS PRAPaytVarianceParameterSet,
pp_hdr.rejects_only AS PRAIsPaymentReject,
pp_hdr.kurst AS PRAPaymentExchangeRateType,
pp_hdr.sale_dt AS SalesDate,
grpcx.bukrs AS PaymentCompanyCode,
_CompanyCode.Currency AS CompanyCodeCurrency
FROM /pra/pp_run_hdr AS pp_hdr
INNER JOIN oiue2_run_hdr AS hdr ON /* join condition not captured in parsed metadata */
INNER JOIN /pra/c_pp_grpcx AS grpcx ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PRACompanyBankVH AS _PRACompanyBankVH ON _PRACompanyBankVH.PaymentCompanyCode = PaymentCompanyCode AND _PRACompanyBankVH.HouseBank = HouseBank AND _PRACompanyBankVH.HouseBankAccount = HouseBankAccount -- association [1..1]
LEFT OUTER JOIN I_ProcessRun AS _ProcessRun ON _ProcessRun.ProcessRun = ProcessRun -- association [1..1]
LEFT OUTER JOIN I_ExchangeRateType AS _ExchangeRateType ON _ExchangeRateType.ExchangeRateType = PRAPaymentExchangeRateType -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = PaymentCompanyCode -- association [1..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