I_PRADivnOfIntrstAccounting
DOI Accounting Information
I_PRADivnOfIntrstAccounting (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRADivisionOfInterestAcctg · Cross Applications
I_PRADivnOfIntrstAccounting is a Basic CDS View that provides data about "DOI Accounting Information" in SAP S/4HANA. It reads from 1 data source (oiu_do_dp) and exposes 41 fields with key fields CompanyCode, PRAJointVenture, DivisionOfInterest, MajorProduct, DOIOwnerEffectiveFromDate. It has 12 associations to related views.
SAP Help Documentation
| Category | CDS Views for Production and Revenue Accounting (PRA) |
|---|
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-O3U_DP3 (Mapping role for I_PRADivnOfIntrstAccounting)
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 |
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 |
|---|---|---|
| oiu_do_dp | oiu_do_dp | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | _CompanyCode.CompanyCode = $projection.CompanyCode |
| [0..1] | I_PRAJointVenture | _PRAJointVenture | _PRAJointVenture.CompanyCode = $projection.CompanyCode and _PRAJointVenture.PRAJointVenture = $projection.PRAJointVenture |
| [0..1] | I_DivisionOfInterest | _DivisionOfInterest | _DivisionOfInterest.CompanyCode = $projection.CompanyCode and _DivisionOfInterest.JointVenture = $projection.PRAJointVenture and _DivisionOfInterest.DivisionOfInterest = $projection.DivisionOfInterest |
| [0..1] | I_MeasurementPoint | _MeasurementPoint | _MeasurementPoint.MeasurementPoint = $projection.MeasurementPoint |
| [0..1] | I_MajorProduct | _MajorProduct | _MajorProduct.MajorProduct = $projection.MajorProduct |
| [0..1] | I_PRATaxRevenueProcessCode | _PRATaxRevenueProcessCode | _PRATaxRevenueProcessCode.RevenueProcessCode = $projection.RevenueProcessCode |
| [0..1] | I_PRAEntitlementCodeVH | _PRAEntitlementCodeVH | _PRAEntitlementCodeVH.PRAEntitlementCode = $projection.PRAEntitlementCode |
| [0..1] | I_PRANormRecgTimeFrameVH | _PRANormRecgTimeFrameVH | _PRANormRecgTimeFrameVH.PRANormalRecordingTimeFrame = $projection.PRANormalRecordingTimeFrame |
| [0..1] | I_PRARecordPaymentVH | _PRARecordPaymentVH | _PRARecordPaymentVH.PRARecordPaymentCheckWrite = $projection.PRARecordPaymentCheckWrite |
| [0..1] | I_PRATaxReimbmtGrossNetVH | _PRATaxReimbmtGrossNetVH | _PRATaxReimbmtGrossNetVH.PRATaxReimbursementGrossNet = $projection.PRATaxReimbursementGrossNet |
| [0..1] | I_PRATaxGrossNetVH | _PRATaxGrossNetVH | _PRATaxGrossNetVH.PRATaxGrossNet = $projection.PRATaxGrossNet |
| [0..1] | I_PRACurHistOwnershipVH | _PRACurHistOwnershipVH | _PRACurHistOwnershipVH.PRAPayCurrentHistorical = $projection.PRAPayCurrentHistorical |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | DOI Accounting Information | 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 | PRADivisionOfInterestAcctg | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Company Code | |
| KEY | PRAJointVenture | vname | Volatility Name | |
| KEY | DivisionOfInterest | doi_no | Division of Interest (DOI) | |
| KEY | MajorProduct | majpd_cd | Major product code | |
| KEY | DOIOwnerEffectiveFromDate | eff_from_dt | Effective From Date | |
| PRAMaterialIsPlantCondensate | plt_cond_fl | Plant Condensate Material FLag | ||
| PRAMaterialIsScrubberOil | scubber_oil_fl | Scrubber Oil Material FLag | ||
| DOIOwnerEffectiveToDate | eff_to_dt | Effective To Date | ||
| DOIAcctgInfoNumber | dp_no | DOI Accounting Information Number | ||
| PRAEntitlementCode | entl_cd | Entitlement Code | ||
| MeasurementPoint | mp_no | Measurement point number | ||
| PRARoyaltyIsBlanchard | bln_roy_fl | Blanchard Royalty Flag | ||
| PRARevenueReceiptLagMonthValue | rev_rcpt_lag | Revenue Receipt Lag Month | ||
| RevenueProcessCode | rev_prcs_cd | Revenue Process Code | ||
| PRANormalRecordingTimeFrame | nrtf_cd | Normal Recording Time Frame Code | ||
| PRARecordPaymentCheckWrite | rec_pymt_cd | Record Payment/ Check Write Code | ||
| PRAPaymentIsIgnored | ignr_pymt_fl | Ignore Payment/Pay Next Check Write Flag | ||
| PRATaxReimbursementGrossNet | tax_rmb_grnt_cd | Tax Reimbursement at Gross or Net Code | ||
| PRATaxGrossNet | tax_grnt_cd | Tax Gross or Net Code | ||
| DOIOwnerIsSlidingScEnbld | ssc_fl | Sliding Scale Indicator Flag | ||
| PRAPayCurrentHistorical | cur_hist_cd | Pay on Current/Historical Ownership (Allocate to Owners) | ||
| DOIOwnerHasAcctgEntrOvrrde | acct_ent_fl | Accounting Entry Override Flag | ||
| PRAIsSmmrzAtDivisionOfInterest | doi_sum_fl | Summarize RD to DOI Level Flag | ||
| PRAOverrideOwnerCode | ovrd_own_cd | Override Owner code | ||
| PRAIsThrtclCondensateTxCalc | theo_cnd_tax_fl | Theoretical Condensate Tax Calculation Flag | ||
| PRAWrkgIntrstPaytHasOvrrde | wi_pay_ovrd_fl | Working Interest Payment Override Flag | ||
| PRACostCenter | kostl | PRA Cost Center | ||
| CreatedByUser | oiu_cruser | Name of Person Responsible for Creating the Object | ||
| CreationDateTime | oiu_timestamp | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| _MajorProduct | _MajorProduct | |||
| _PRATaxRevenueProcessCode | _PRATaxRevenueProcessCode | |||
| _CompanyCode | _CompanyCode | |||
| _PRAJointVenture | _PRAJointVenture | |||
| _DivisionOfInterest | _DivisionOfInterest | |||
| _MeasurementPoint | _MeasurementPoint | |||
| _PRAEntitlementCodeVH | _PRAEntitlementCodeVH | |||
| _PRANormRecgTimeFrameVH | _PRANormRecgTimeFrameVH | |||
| _PRARecordPaymentVH | _PRARecordPaymentVH | |||
| _PRATaxReimbmtGrossNetVH | _PRATaxReimbmtGrossNetVH | |||
| _PRATaxGrossNetVH | _PRATaxGrossNetVH | |||
| _PRACurHistOwnershipVH | _PRACurHistOwnershipVH |
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_PRADivnOfIntrstAccounting.
-- 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_PRADivnOfIntrstAccounting AS
SELECT
bukrs AS CompanyCode,
vname AS PRAJointVenture,
doi_no AS DivisionOfInterest,
majpd_cd AS MajorProduct,
eff_from_dt AS DOIOwnerEffectiveFromDate,
plt_cond_fl AS PRAMaterialIsPlantCondensate,
scubber_oil_fl AS PRAMaterialIsScrubberOil,
eff_to_dt AS DOIOwnerEffectiveToDate,
dp_no AS DOIAcctgInfoNumber,
entl_cd AS PRAEntitlementCode,
mp_no AS MeasurementPoint,
bln_roy_fl AS PRARoyaltyIsBlanchard,
rev_rcpt_lag AS PRARevenueReceiptLagMonthValue,
rev_prcs_cd AS RevenueProcessCode,
nrtf_cd AS PRANormalRecordingTimeFrame,
rec_pymt_cd AS PRARecordPaymentCheckWrite,
ignr_pymt_fl AS PRAPaymentIsIgnored,
tax_rmb_grnt_cd AS PRATaxReimbursementGrossNet,
tax_grnt_cd AS PRATaxGrossNet,
ssc_fl AS DOIOwnerIsSlidingScEnbld,
cur_hist_cd AS PRAPayCurrentHistorical,
acct_ent_fl AS DOIOwnerHasAcctgEntrOvrrde,
doi_sum_fl AS PRAIsSmmrzAtDivisionOfInterest,
ovrd_own_cd AS PRAOverrideOwnerCode,
theo_cnd_tax_fl AS PRAIsThrtclCondensateTxCalc,
wi_pay_ovrd_fl AS PRAWrkgIntrstPaytHasOvrrde,
kostl AS PRACostCenter,
oiu_cruser AS CreatedByUser,
oiu_timestamp AS CreationDateTime
FROM oiu_do_dp
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = CompanyCode -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _PRAJointVenture ON _PRAJointVenture.CompanyCode = CompanyCode AND _PRAJointVenture.PRAJointVenture = PRAJointVenture -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _DivisionOfInterest ON _DivisionOfInterest.CompanyCode = CompanyCode AND _DivisionOfInterest.JointVenture = PRAJointVenture AND _DivisionOfInterest.DivisionOfInterest = DivisionOfInterest -- association [0..1]
LEFT OUTER JOIN I_MeasurementPoint AS _MeasurementPoint ON _MeasurementPoint.MeasurementPoint = MeasurementPoint -- association [0..1]
LEFT OUTER JOIN I_MajorProduct AS _MajorProduct ON _MajorProduct.MajorProduct = MajorProduct -- association [0..1]
LEFT OUTER JOIN I_PRATaxRevenueProcessCode AS _PRATaxRevenueProcessCode ON _PRATaxRevenueProcessCode.RevenueProcessCode = RevenueProcessCode -- association [0..1]
LEFT OUTER JOIN I_PRAEntitlementCodeVH AS _PRAEntitlementCodeVH ON _PRAEntitlementCodeVH.PRAEntitlementCode = PRAEntitlementCode -- association [0..1]
LEFT OUTER JOIN I_PRANormRecgTimeFrameVH AS _PRANormRecgTimeFrameVH ON _PRANormRecgTimeFrameVH.PRANormalRecordingTimeFrame = PRANormalRecordingTimeFrame -- association [0..1]
LEFT OUTER JOIN I_PRARecordPaymentVH AS _PRARecordPaymentVH ON _PRARecordPaymentVH.PRARecordPaymentCheckWrite = PRARecordPaymentCheckWrite -- association [0..1]
LEFT OUTER JOIN I_PRATaxReimbmtGrossNetVH AS _PRATaxReimbmtGrossNetVH ON _PRATaxReimbmtGrossNetVH.PRATaxReimbursementGrossNet = PRATaxReimbursementGrossNet -- association [0..1]
LEFT OUTER JOIN I_PRATaxGrossNetVH AS _PRATaxGrossNetVH ON _PRATaxGrossNetVH.PRATaxGrossNet = PRATaxGrossNet -- association [0..1]
LEFT OUTER JOIN I_PRACurHistOwnershipVH AS _PRACurHistOwnershipVH ON _PRACurHistOwnershipVH.PRAPayCurrentHistorical = PRAPayCurrentHistorical -- 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