I_PRAProcessRunHeader

DDL: I_PRAPROCESSRUNHEADER Type: view_entity BASIC

Process 2 Run Header

I_PRAProcessRunHeader (Basic)

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

Production Revenue Accounting Process Run · Cross Applications

I_PRAProcessRunHeader is a Basic CDS View that provides data about "Process 2 Run Header" in SAP S/4HANA. It reads from 1 data source (oiue2_run_hdr) and exposes 49 fields with key field ProcessRun. It has 5 associations to related views.

SAP Help Documentation

CategoryCDS Views for Production and Revenue Accounting (PRA)
Purpose
This CDS view is a common execution framework of all the steps required to settle different PRA payables like Federal payables, Tax payables, Royalty payables, and so on.

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-O3UE2_WORKPLACE (Mapping role for I_PRAProcessRun )

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 is a common execution framework of all the steps required to settle different PRA payables like Federal payables, Tax payables, Royalty payables, and so on. </p>

Documentation

Data Sources (1)

SourceAliasJoin Type
oiue2_run_hdr oiue2_run_hdr from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_PRAProcessVH _PRAProcess _PRAProcess.PRAProcess = $projection.PRAProcess
[0..1] I_PRAProcessGroupVH _PRAProcessGroup _PRAProcessGroup.PRAProcess = $projection.PRAProcess and _PRAProcessGroup.PRARunProcessGroup = $projection.PRARunProcessGroup
[0..1] I_Country _Country _Country.Country = $projection.Country
[0..1] I_PrimaryGeogrlLocation _PrimaryGeogrlLocation _PrimaryGeogrlLocation.PrimaryGeogrlLocation = $projection.PrimaryGeogrlLocation and _PrimaryGeogrlLocation.Country = $projection.Country
[0..1] I_AgencyReportType _AgencyReportType _AgencyReportType.AgencyReportType = $projection.AgencyReportType

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Process 2 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 PRAProcessRun view
ObjectModel.representativeKey ProcessRun view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY ProcessRun run_id Proc 2.0 - Run ID
PRAProcess proc_id Proc 2.0 - Process ID
PRARunProcessGroup proc_grp Proc 2.0 - Process Group
PRARunProcessSubgroup1 proc_subgrp1 Proc 2.0 - Process Group
PRARunProcessSubgroup2 proc_subgrp2 Proc 2.0 - Process Group
PRARunProcessSubgroup3 proc_subgrp3 Proc 2.0 - Process Group
PRARunProcessSubgroup4 proc_subgrp4 Proc 2.0 - Process Group
PRARunProcessSubgroup5 proc_subgrp5 Proc 2.0 - Process Group
Country land1 Country/Region Key
PrimaryGeogrlLocation pri_geo_loc Primary Geographical Location
EffectiveFromDate eff_from_dt Effective From Date
EffectiveToDate eff_to_dt Effective To Date
AgencyReportType ac_ind Proc 2.0 - Amended/Current Indicator
PRAProcessVersionValue ver Proc 2.0 - Version
PRAProcessTrialFinalFlag tf_ind Proc 2.0 - Trial/Final Indicator
ScheduledStartDate sdlstrtdt Scheduled start date for background job
ScheduledStartTime sdlstrttm Scheduled start time for background Job
PRAJobLatestExecutionDate laststrtdt Latest Execution Date for a Background Job
PRAJobLatestExecutionTime laststrttm Latest Execution Time for Background Job
PRAProcessJobName predjob Name of previous job
PRAProcessJobID predjobcnt Job No.
PRAJobCheckStatus checkstat Job status check indicator for subsequent job start
PRAJobEventID eventid Background Processing Event
PRAJobEventParameter eventparm Background Event Parameters (Such as, Jobname/Jobcount)
PRAJobStartDateTypeID startdttyp Start date type ID
PRAJobDurationMinutesValue prdmins Duration period (in minutes) for a batch job
PRAJobDurationHoursValue prdhours Duration period (in hours) for a batch job
PRAJobDurationDaysValue prddays Duration (in days) of DBA action
PRAJobDurationWeeksValue prdweeks Duration period (in weeks) for a batch job
PRAProcessDurationMonthsVal prdmonths Duration period (in months) for a batch job
ApplicationJobPeriodicity periodic Periodic Jobs Indicator
PRAServerName instname Server Name
PRAProcessCalendarID calendarid Factory calendar ID for background processing
PRAJobMnthEndCrrtnValue eomcorrect Correction field for calc. job execution (end-of-mth, cal.)
PRAJobCalcdCrrtnValue calcorrect Correction field for calc. job execution (end-of-mth, cal.)
PRAProcessImmediateStart imstrtpos Flag indicating whether job can be started immediately
PRAProcessPeriodBehavior prdbehav Period behavior of jobs on non-workdays
PRAProcessWorkdayValue wdayno No. of workday on which a job is to start
PRAJobWorkdayDirectionValue wdaycdir Count direction for 'on workday' start date of a job
PRAJobNotBeforeDate notbefore Scheduled start date for background job
DisplayTimeZone tmzone Time Zone
LastChangedByUser change_user Last Changed By
LastChangeDate change_date Date of Last Change
LastChangeTime change_time Time of Last Change
_AgencyReportType _AgencyReportType
_PRAProcess _PRAProcess
_PRAProcessGroup _PRAProcessGroup
_Country _Country
_PrimaryGeogrlLocation _PrimaryGeogrlLocation

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_PRAProcessRunHeader.
-- 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_PRAProcessRunHeader AS
SELECT
  run_id AS ProcessRun,
  proc_id AS PRAProcess,
  proc_grp AS PRARunProcessGroup,
  proc_subgrp1 AS PRARunProcessSubgroup1,
  proc_subgrp2 AS PRARunProcessSubgroup2,
  proc_subgrp3 AS PRARunProcessSubgroup3,
  proc_subgrp4 AS PRARunProcessSubgroup4,
  proc_subgrp5 AS PRARunProcessSubgroup5,
  land1 AS Country,
  pri_geo_loc AS PrimaryGeogrlLocation,
  eff_from_dt AS EffectiveFromDate,
  eff_to_dt AS EffectiveToDate,
  ac_ind AS AgencyReportType,
  ver AS PRAProcessVersionValue,
  tf_ind AS PRAProcessTrialFinalFlag,
  sdlstrtdt AS ScheduledStartDate,
  sdlstrttm AS ScheduledStartTime,
  laststrtdt AS PRAJobLatestExecutionDate,
  laststrttm AS PRAJobLatestExecutionTime,
  predjob AS PRAProcessJobName,
  predjobcnt AS PRAProcessJobID,
  checkstat AS PRAJobCheckStatus,
  eventid AS PRAJobEventID,
  eventparm AS PRAJobEventParameter,
  startdttyp AS PRAJobStartDateTypeID,
  prdmins AS PRAJobDurationMinutesValue,
  prdhours AS PRAJobDurationHoursValue,
  prddays AS PRAJobDurationDaysValue,
  prdweeks AS PRAJobDurationWeeksValue,
  prdmonths AS PRAProcessDurationMonthsVal,
  periodic AS ApplicationJobPeriodicity,
  instname AS PRAServerName,
  calendarid AS PRAProcessCalendarID,
  eomcorrect AS PRAJobMnthEndCrrtnValue,
  calcorrect AS PRAJobCalcdCrrtnValue,
  imstrtpos AS PRAProcessImmediateStart,
  prdbehav AS PRAProcessPeriodBehavior,
  wdayno AS PRAProcessWorkdayValue,
  wdaycdir AS PRAJobWorkdayDirectionValue,
  notbefore AS PRAJobNotBeforeDate,
  tmzone AS DisplayTimeZone,
  change_user AS LastChangedByUser,
  change_date AS LastChangeDate,
  change_time AS LastChangeTime
FROM oiue2_run_hdr
LEFT OUTER JOIN I_PRAProcessVH AS _PRAProcess ON _PRAProcess.PRAProcess = PRAProcess  -- association [1..1]
LEFT OUTER JOIN I_PRAProcessGroupVH AS _PRAProcessGroup ON _PRAProcessGroup.PRAProcess = PRAProcess AND _PRAProcessGroup.PRARunProcessGroup = PRARunProcessGroup  -- 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 _PrimaryGeogrlLocation.PrimaryGeogrlLocation = PrimaryGeogrlLocation AND _PrimaryGeogrlLocation.Country = Country  -- association [0..1]
LEFT OUTER JOIN I_AgencyReportType AS _AgencyReportType ON _AgencyReportType.AgencyReportType = AgencyReportType  -- association [0..1]
;