I_PRAPaymentRunHeader

DDL: I_PRAPAYMENTRUNHEADER Type: view_entity BASIC

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

CategoryCDS Views for Production and Revenue Accounting (PRA)
Purpose
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)

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentIS-OIL-PRA
CapabilitiesData Source in SQL Select
PackageCross 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

Data Sources (3)

SourceAliasJoin Type
/pra/c_pp_grpcx grpcx inner
oiue2_run_hdr hdr inner
/pra/pp_run_hdr pp_hdr from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;