I_PRAMsmtPtDOICrsRef

DDL: I_PRAMSMTPTDOICRSREF Type: view_entity BASIC

Cross reference for MP and DOI

I_PRAMsmtPtDOICrsRef (Basic)

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

PRAMsmtPtDOICrsRef · Cross Applications

I_PRAMsmtPtDOICrsRef is a Basic CDS View that provides data about "Cross reference for MP and DOI" in SAP S/4HANA. It reads from 1 data source (oiu_sb_doimp) and exposes 18 fields with key fields MeasurementPoint, CompanyCode, PRAJointVenture, DivisionOfInterest, MajorProduct. It has 7 associations to related views.

SAP Help Documentation

CategoryCDS Views for Production and Revenue Accounting (PRA)
Purpose
This CDS view is an association of the measurement point with the venture and division of interest for a given period, major product and material, which is then used for allocation of volumes and amounts to the owners.

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-O3UCA_DOIXREF (Mapping role for I_PRAMsmtPtDOICrsRef )

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 an association of the measurement point with the venture and division of interest for a given period, major product and material, which is then used for allocation of volumes and amounts to the owners. </p>

Documentation

Data Sources (1)

SourceAliasJoin Type
oiu_sb_doimp oiu_sb_doimp from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_MeasurementPoint _MeasurementPoint _MeasurementPoint.MeasurementPoint = $projection.MeasurementPoint
[1..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = $projection.CompanyCode
[1..1] I_PRAJointVenture _PRAJointVenture _PRAJointVenture.CompanyCode = $projection.CompanyCode and _PRAJointVenture.PRAJointVenture = $projection.PRAJointVenture
[1..1] I_DivisionOfInterest _DivisionOfInterest _DivisionOfInterest.CompanyCode = $projection.CompanyCode and _DivisionOfInterest.JointVenture = $projection.PRAJointVenture and _DivisionOfInterest.DivisionOfInterest = $projection.DivisionOfInterest
[1..1] I_PRAMatlMjrProdMappg _PRAMatlMjrProdMappg _PRAMatlMjrProdMappg.Material = $projection.PRAMaterial
[1..1] I_PRACntrctlAllocMjrProdCodeVH _PRACntrctlAllocMjrProdCodeVH _PRACntrctlAllocMjrProdCodeVH.MajorProduct = $projection.MajorProduct
[1..1] I_PRADfltDOICrsRefTypeVH _PRADfltDOICrsRefTypeVH _PRADfltDOICrsRefTypeVH.PRADfltDOIXrefType = $projection.PRADfltDOIXrefType

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Cross reference for MP and DOI view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
ObjectModel.sapObjectNodeType.name PRAMsmtPtDOICrsRef view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY MeasurementPoint mp_no Measurement point number
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 1,2,4
KEY PRAMaterial matnr Material Number
KEY DOIOwnerEffectiveFromDate eff_from_dt Effective From Date
DOIOwnerEffectiveToDate eff_to_dt Effective To Date
PRADfltDOIXrefType dflt_cd Default DOI xRef Type
CreatedByUser oiu_cruser Name of Person Responsible for Creating the Object
CreationDateTime oiu_timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
_PRADfltDOICrsRefTypeVH _PRADfltDOICrsRefTypeVH
_PRACntrctlAllocMjrProdCodeVH _PRACntrctlAllocMjrProdCodeVH
_MeasurementPoint _MeasurementPoint
_CompanyCode _CompanyCode
_PRAJointVenture _PRAJointVenture
_DivisionOfInterest _DivisionOfInterest
_PRAMatlMjrProdMappg _PRAMatlMjrProdMappg

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_PRAMsmtPtDOICrsRef.
-- 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_PRAMsmtPtDOICrsRef AS
SELECT
  mp_no AS MeasurementPoint,
  bukrs AS CompanyCode,
  vname AS PRAJointVenture,
  doi_no AS DivisionOfInterest,
  majpd_cd AS MajorProduct,
  matnr AS PRAMaterial,
  eff_from_dt AS DOIOwnerEffectiveFromDate,
  eff_to_dt AS DOIOwnerEffectiveToDate,
  dflt_cd AS PRADfltDOIXrefType,
  oiu_cruser AS CreatedByUser,
  oiu_timestamp AS CreationDateTime
FROM oiu_sb_doimp
LEFT OUTER JOIN I_MeasurementPoint AS _MeasurementPoint ON _MeasurementPoint.MeasurementPoint = MeasurementPoint  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_PRAJointVenture AS _PRAJointVenture ON _PRAJointVenture.CompanyCode = CompanyCode AND _PRAJointVenture.PRAJointVenture = PRAJointVenture  -- association [1..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _DivisionOfInterest ON _DivisionOfInterest.CompanyCode = CompanyCode AND _DivisionOfInterest.JointVenture = PRAJointVenture AND _DivisionOfInterest.DivisionOfInterest = DivisionOfInterest  -- association [1..1]
LEFT OUTER JOIN I_PRAMatlMjrProdMappg AS _PRAMatlMjrProdMappg ON _PRAMatlMjrProdMappg.Material = PRAMaterial  -- association [1..1]
LEFT OUTER JOIN I_PRACntrctlAllocMjrProdCodeVH AS _PRACntrctlAllocMjrProdCodeVH ON _PRACntrctlAllocMjrProdCodeVH.MajorProduct = MajorProduct  -- association [1..1]
LEFT OUTER JOIN I_PRADfltDOICrsRefTypeVH AS _PRADfltDOICrsRefTypeVH ON _PRADfltDOICrsRefTypeVH.PRADfltDOIXrefType = PRADfltDOIXrefType  -- association [1..1]
;