I_PRATstEntldPrimProd
Entitlement Primary Products Actual Vols
I_PRATstEntldPrimProd is a Basic CDS View that provides data about "Entitlement Primary Products Actual Vols" in SAP S/4HANA. It reads from 1 data source (oiu_sb_entwc) and exposes 39 fields with key fields DeliveryNetwork, Material, Well, WellCompletion, ProcessingCompanyCode. It has 14 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| oiu_sb_entwc | oiu_sb_entwc | from |
Associations (14)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_DeliveryNetwork | _DeliveryNetwork | _DeliveryNetwork.DeliveryNetwork = $projection.DeliveryNetwork |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Well | _PRAWell | _PRAWell.Well = $projection.Well |
| [1..1] | I_WellCompletion | _PRAWellCompletion | _PRAWellCompletion.Well = $projection.Well and _PRAWellCompletion.WellCompletion = $projection.WellCompletion |
| [1..1] | I_CompanyCode | _CompanyCode | _CompanyCode.CompanyCode = $projection.ProcessingCompanyCode |
| [0..1] | I_PRAJointVenture | _UnitJointVenture | $projection.ProcessingCompanyCode = _UnitJointVenture.CompanyCode and $projection.PRAJointVenture = _UnitJointVenture.PRAJointVenture |
| [0..1] | I_DivisionOfInterest | _DivisionOfInterest | $projection.ProcessingCompanyCode = _DivisionOfInterest.CompanyCode and $projection.PRAJointVenture = _DivisionOfInterest.JointVenture and $projection.DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest |
| [0..1] | I_PRAOwner | _PRAOwner | $projection.PRAOwner = _PRAOwner.PRAOwner |
| [1..1] | I_OwnerInterestType | _OwnerInterestType | _OwnerInterestType.OwnerInterestType = $projection.OwnerInterestType |
| [1..1] | I_VolumeType | _VolumeType | _VolumeType.VolumeType = $projection.VolumeType |
| [1..1] | I_Customer | _Customer | _Customer.Customer = $projection.MarketingRep |
| [1..1] | I_UnitOfMeasure | _PRAVolumeUoM | _PRAVolumeUoM.UnitOfMeasure = $projection.VolumeUnit |
| [1..1] | I_UnitOfMeasure | _PRAEnergyUoM | _PRAEnergyUoM.UnitOfMeasure = $projection.EnergyUnit |
| [1..1] | I_AllocationFrequencyCode | _AllocationFrequencyCode | _AllocationFrequencyCode.AllocationFrequency = $projection.AllocationFrequency |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPRATSTEPP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Entitlement Primary Products Actual Vols | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DeliveryNetwork | dn_no | Delivery network ID | |
| KEY | Material | matnr | Vehicle Model | |
| KEY | Well | wl_no | Well | |
| KEY | WellCompletion | wc_no | Well Completion | |
| KEY | ProcessingCompanyCode | bukrs | Value | |
| KEY | PRAJointVenture | vname | Volatility Name | |
| KEY | DivisionOfInterest | doi_no | Venture/DOI | |
| KEY | SalesDate | sa_dt | Sales Date | |
| KEY | AllocationFrequency | freq_cd | Frequency | |
| KEY | VolumeType | vt_cd | Volume Type | |
| KEY | PRAOwner | own_no | Owner Number | |
| KEY | OwnerInterestType | own_int_type_cd | Opart int type | |
| KEY | OwnerInterestSequence | own_isq_no | Own. ISQ | |
| MarketingRep | mk_rep_no | Marketing Rep | ||
| MarketingRepIntrstSequNmbr | mk_rep_isq_no | Mkt. Rep. ISQ | ||
| VolumeUnit | vol_u | Unit | ||
| EntitledVolume | entl_vol | Entl. Vol. | ||
| AdjustedEntitledVol | adj_entl_vol | Adj.Entl.Vol. | ||
| EnergyUnit | energy_u | UoM | ||
| EntitledEnergy | entl_energy | Energy | ||
| AdjustedEntitledEngy | adj_entl_energy | Adj. Entl. En. | ||
| GrossRevenueInterestRatio | gri_pc | GRI | ||
| AdjdGrossRevenueInterestRatio | adj_gri_pc | Adjusted GRI | ||
| CreatedByUser | oiu_cruser | Created By | ||
| CreationDateTime | oiu_timestamp | Timestamp | ||
| _CompanyCode | _CompanyCode | |||
| _PRAOwner | _PRAOwner | |||
| _OwnerInterestType | _OwnerInterestType | |||
| _DivisionOfInterest | _DivisionOfInterest | |||
| _PRAWell | _PRAWell | |||
| _PRAWellCompletion | _PRAWellCompletion | |||
| _Material | _Material | |||
| _DeliveryNetwork | _DeliveryNetwork | |||
| _UnitJointVenture | _UnitJointVenture | |||
| _PRAVolumeUoM | _PRAVolumeUoM | |||
| _PRAEnergyUoM | _PRAEnergyUoM | |||
| _AllocationFrequencyCode | _AllocationFrequencyCode | |||
| _VolumeType | _VolumeType | |||
| _Customer | _Customer |
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_PRATstEntldPrimProd.
-- 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.
-- SQL view name: IPRATSTEPP
CREATE VIEW I_PRATstEntldPrimProd AS
SELECT
dn_no AS DeliveryNetwork,
matnr AS Material,
wl_no AS Well,
wc_no AS WellCompletion,
bukrs AS ProcessingCompanyCode,
vname AS PRAJointVenture,
doi_no AS DivisionOfInterest,
sa_dt AS SalesDate,
freq_cd AS AllocationFrequency,
vt_cd AS VolumeType,
own_no AS PRAOwner,
own_int_type_cd AS OwnerInterestType,
own_isq_no AS OwnerInterestSequence,
mk_rep_no AS MarketingRep,
mk_rep_isq_no AS MarketingRepIntrstSequNmbr,
vol_u AS VolumeUnit,
entl_vol AS EntitledVolume,
adj_entl_vol AS AdjustedEntitledVol,
energy_u AS EnergyUnit,
entl_energy AS EntitledEnergy,
adj_entl_energy AS AdjustedEntitledEngy,
gri_pc AS GrossRevenueInterestRatio,
adj_gri_pc AS AdjdGrossRevenueInterestRatio,
oiu_cruser AS CreatedByUser,
oiu_timestamp AS CreationDateTime
FROM oiu_sb_entwc
LEFT OUTER JOIN I_DeliveryNetwork AS _DeliveryNetwork ON _DeliveryNetwork.DeliveryNetwork = DeliveryNetwork -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_Well AS _PRAWell ON _PRAWell.Well = Well -- association [1..1]
LEFT OUTER JOIN I_WellCompletion AS _PRAWellCompletion ON _PRAWellCompletion.Well = Well AND _PRAWellCompletion.WellCompletion = WellCompletion -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = ProcessingCompanyCode -- association [1..1]
LEFT OUTER JOIN I_PRAJointVenture AS _UnitJointVenture ON ProcessingCompanyCode = _UnitJointVenture.CompanyCode AND PRAJointVenture = _UnitJointVenture.PRAJointVenture -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _DivisionOfInterest ON ProcessingCompanyCode = _DivisionOfInterest.CompanyCode AND PRAJointVenture = _DivisionOfInterest.JointVenture AND DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest -- association [0..1]
LEFT OUTER JOIN I_PRAOwner AS _PRAOwner ON PRAOwner = _PRAOwner.PRAOwner -- association [0..1]
LEFT OUTER JOIN I_OwnerInterestType AS _OwnerInterestType ON _OwnerInterestType.OwnerInterestType = OwnerInterestType -- association [1..1]
LEFT OUTER JOIN I_VolumeType AS _VolumeType ON _VolumeType.VolumeType = VolumeType -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = MarketingRep -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _PRAVolumeUoM ON _PRAVolumeUoM.UnitOfMeasure = VolumeUnit -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _PRAEnergyUoM ON _PRAEnergyUoM.UnitOfMeasure = EnergyUnit -- association [1..1]
LEFT OUTER JOIN I_AllocationFrequencyCode AS _AllocationFrequencyCode ON _AllocationFrequencyCode.AllocationFrequency = AllocationFrequency -- association [1..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