I_PRAProcessRunHeader
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
| Category | CDS 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 )
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 )
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 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
- 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 |
|---|---|---|
| oiue2_run_hdr | oiue2_run_hdr | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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