I_ONRRAccountingDocument

DDL: I_ONRRACCOUNTINGDOCUMENT Type: view_entity BASIC

ONRR 2014 Revenue Accounting Document

I_ONRRAccountingDocument (Basic)

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

PRAFederalPayableAcctgDoc · Cross Applications

I_ONRRAccountingDocument is a Basic CDS View that provides data about "ONRR 2014 Revenue Accounting Document" in SAP S/4HANA. It reads from 1 data source (/pra/fp_acct_doc) and exposes 5 fields with key fields ProcessRun, CompanyCode, PRAAccountingPeriod, AccountingDocument. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Production and Revenue Accounting (PRA)
Purpose
This CDS view is a coded representation of the nature of the sale between the buyer and the seller. An office of natural resources revenue (ONRR) sales type code requires separate lines of royalty details based on the nature of the sale. For example, values are ARMS - Arm's Length, OINX - Oil Index, POOL - Pooled Sales (Arm's & Non-Arm's Length) .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: /PRA/RADM:BUKRS-, /PRA/RADM:ACTVT-03 (Mapping role for I_ONRRAccountingDocument)

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 coded representation of the nature of the sale between the buyer and the seller. An office of natural resources revenue (ONRR) sales type code requires separate lines of royalty details based on the nature of the sale. For example, values are ARMS - Arm's Length, OINX - Oil Index, POOL - Pooled Sales (Arm's &amp; Non-Arm's Length) .</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
/pra/fp_acct_doc /pra/fp_acct_doc from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PRAProcessRunHeader _ONRRProcessRun _ONRRProcessRun.ProcessRun = $projection.ProcessRun

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label ONRR 2014 Revenue Accounting Document view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
ObjectModel.sapObjectNodeType.name PRAFederalPayableAcctgDoc view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ProcessRun run_id Proc 2.0 - Run ID
KEY CompanyCode bukrs Company Code
KEY PRAAccountingPeriod PRA Accounting Period
KEY AccountingDocument doc_no Revenue Accounting Document Number
_ONRRProcessRun _ONRRProcessRun

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_ONRRAccountingDocument.
-- 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_ONRRAccountingDocument AS
SELECT
  run_id AS ProcessRun,
  bukrs AS CompanyCode,
  cast(acct_period as oiu_vdm_acct_period) AS PRAAccountingPeriod,
  doc_no AS AccountingDocument
FROM /pra/fp_acct_doc
LEFT OUTER JOIN I_PRAProcessRunHeader AS _ONRRProcessRun ON _ONRRProcessRun.ProcessRun = ProcessRun  -- association [1..1]
;