I_PRATstEntldPrimProdCompare
PRA Test validation - Entitlement Products Compare
I_PRATstEntldPrimProdCompare is a Basic CDS View that provides data about "PRA Test validation - Entitlement Products Compare" in SAP S/4HANA. It reads from 5 data sources (I_PRATstBslnEntldPrimProd, I_PRATstEntldPrimProd, I_PRAMatlMjrProdMappg, I_PRATstContrAllocScen, I_PRATstContrAllocTol) and exposes 37 fields with key fields DeliveryNetwork, Material, Well, WellCompletion, ProcessingCompanyCode. Part of development package OIU_TV.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_PRATstBslnEntldPrimProd | baseline | inner |
| I_PRATstEntldPrimProd | current | inner |
| I_PRAMatlMjrProdMappg | matnr | inner |
| I_PRATstContrAllocScen | scen | from |
| I_PRATstContrAllocTol | tol | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPRATENTWCC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | PRA Test validation - Entitlement Products Compare | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DeliveryNetwork | I_PRATstBslnEntldPrimProd | DeliveryNetwork | Delivery network ID |
| KEY | Material | I_PRATstBslnEntldPrimProd | Material | Vehicle Model |
| KEY | Well | I_PRATstBslnEntldPrimProd | Well | Well |
| KEY | WellCompletion | I_PRATstBslnEntldPrimProd | WellCompletion | Well Completion |
| KEY | ProcessingCompanyCode | I_PRATstBslnEntldPrimProd | ProcessingCompanyCode | Value |
| KEY | PRAJointVenture | I_PRATstBslnEntldPrimProd | PRAJointVenture | Ext vent name |
| KEY | DivisionOfInterest | I_PRATstBslnEntldPrimProd | DivisionOfInterest | Venture/DOI |
| KEY | SalesDate | I_PRATstBslnEntldPrimProd | SalesDate | Sales Date |
| KEY | AllocationFrequency | I_PRATstBslnEntldPrimProd | AllocationFrequency | Frequency |
| KEY | VolumeType | I_PRATstBslnEntldPrimProd | VolumeType | Volume Type |
| KEY | PRAOwner | I_PRATstBslnEntldPrimProd | PRAOwner | Owner Number |
| KEY | OwnerInterestType | I_PRATstBslnEntldPrimProd | OwnerInterestType | Opart int type |
| KEY | OwnerInterestSequence | I_PRATstBslnEntldPrimProd | OwnerInterestSequence | Own. ISQ |
| MajorProduct | I_PRAMatlMjrProdMappg | MajorProduct | Major Product | |
| VolumeUnit | I_PRATstEntldPrimProd | VolumeUnit | Volume Unit | |
| BaselineEntitledVolume | I_PRATstBslnEntldPrimProd | EntitledVolume | Entl. Vol. | |
| EntitledVolume | I_PRATstEntldPrimProd | EntitledVolume | Entl. Vol. | |
| EntitledVolumeDiffVal | ||||
| EnergyUnit | I_PRATstEntldPrimProd | EnergyUnit | UoM | |
| BaselineEntitledEnergy | I_PRATstBslnEntldPrimProd | EntitledEnergy | Energy | |
| EntitledEnergy | I_PRATstEntldPrimProd | EntitledEnergy | Energy | |
| EntitledEnergyDiffVal | ||||
| BaselineAdjustedEntitledVol | I_PRATstBslnEntldPrimProd | AdjustedEntitledVol | Adj.Entl.Vol. | |
| AdjustedEntitledVol | I_PRATstEntldPrimProd | AdjustedEntitledVol | Adj.Entl.Vol. | |
| AdjustedEntitledVolDiffVal | ||||
| BaselineAdjustedEntitledEngy | I_PRATstBslnEntldPrimProd | AdjustedEntitledEngy | Adj. Entl. En. | |
| AdjustedEntitledEngy | I_PRATstEntldPrimProd | AdjustedEntitledEngy | Adj. Entl. En. | |
| AdjustedEntitledEngyDiffVal | ||||
| SequenceNumber | ||||
| BaselineMarketingRep | I_PRATstBslnEntldPrimProd | BaselineMarketingRep | Marketing Rep | |
| MarketingRep | I_PRATstEntldPrimProd | MarketingRep | Marketing Rep | |
| BslnMktRepIntrstSequNmbr | I_PRATstBslnEntldPrimProd | BslnMktRepIntrstSequNmbr | Mkt. Rep. ISQ | |
| MarketingRepIntrstSequNmbr | I_PRATstEntldPrimProd | MarketingRepIntrstSequNmbr | Mkt. Rep. ISQ | |
| EntitledVolumeTolVal | I_PRATstContrAllocTol | EntitledVolumeTolVal | Entl Vol Tol | |
| AdjdEntitledVolTolVal | I_PRATstContrAllocTol | AdjdEntitledVolTolVal | Adj Entl Vol Tol | |
| EntitledEnergyTolVal | I_PRATstContrAllocTol | EntitledEnergyTolVal | Entl Enrgy Tol | |
| AdjdEntitledEngyTolVal | I_PRATstContrAllocTol | AdjdEntitledEngyTolVal | Adj Entl Enrgy Tol |
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_PRATstEntldPrimProdCompare.
-- 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: IPRATENTWCC
CREATE VIEW I_PRATstEntldPrimProdCompare AS
SELECT
baseline.DeliveryNetwork AS DeliveryNetwork,
baseline.Material AS Material,
baseline.Well AS Well,
baseline.WellCompletion AS WellCompletion,
baseline.ProcessingCompanyCode AS ProcessingCompanyCode,
baseline.PRAJointVenture AS PRAJointVenture,
baseline.DivisionOfInterest AS DivisionOfInterest,
baseline.SalesDate AS SalesDate,
baseline.AllocationFrequency AS AllocationFrequency,
baseline.VolumeType AS VolumeType,
baseline.PRAOwner AS PRAOwner,
baseline.OwnerInterestType AS OwnerInterestType,
baseline.OwnerInterestSequence AS OwnerInterestSequence,
matnr.MajorProduct AS MajorProduct,
current.VolumeUnit AS VolumeUnit,
baseline.EntitledVolume AS BaselineEntitledVolume,
current.EntitledVolume AS EntitledVolume,
abs(cast(baseline.EntitledVolume as abap.dec( 13, 3 )) - cast(current.EntitledVolume as abap.dec( 13,3) ) ) AS EntitledVolumeDiffVal,
current.EnergyUnit AS EnergyUnit,
baseline.EntitledEnergy AS BaselineEntitledEnergy,
current.EntitledEnergy AS EntitledEnergy,
abs(cast(baseline.EntitledEnergy as abap.dec( 13, 3 )) - cast(current.EntitledEnergy as abap.dec( 13,3) ) ) AS EntitledEnergyDiffVal,
baseline.AdjustedEntitledVol AS BaselineAdjustedEntitledVol,
current.AdjustedEntitledVol AS AdjustedEntitledVol,
abs(cast(baseline.AdjustedEntitledVol as abap.dec( 13, 3 )) - cast(current.AdjustedEntitledVol as abap.dec( 13,3) ) ) AS AdjustedEntitledVolDiffVal,
baseline.AdjustedEntitledEngy AS BaselineAdjustedEntitledEngy,
current.AdjustedEntitledEngy AS AdjustedEntitledEngy,
abs(cast(baseline.AdjustedEntitledEngy as abap.dec( 13, 3 )) - cast(current.AdjustedEntitledEngy as abap.dec( 13,3) ) ) AS AdjustedEntitledEngyDiffVal,
cast( '001' as abap.numc(3) ) AS SequenceNumber,
baseline.BaselineMarketingRep AS BaselineMarketingRep,
current.MarketingRep AS MarketingRep,
baseline.BslnMktRepIntrstSequNmbr AS BslnMktRepIntrstSequNmbr,
current.MarketingRepIntrstSequNmbr AS MarketingRepIntrstSequNmbr,
tol.EntitledVolumeTolVal AS EntitledVolumeTolVal,
tol.AdjdEntitledVolTolVal AS AdjdEntitledVolTolVal,
tol.EntitledEnergyTolVal AS EntitledEnergyTolVal,
tol.AdjdEntitledEngyTolVal AS AdjdEntitledEngyTolVal
FROM I_PRATstContrAllocScen AS scen
INNER JOIN I_PRAMatlMjrProdMappg AS matnr ON /* join condition not captured in parsed metadata */
INNER JOIN I_PRATstBslnEntldPrimProd AS baseline ON /* join condition not captured in parsed metadata */
INNER JOIN I_PRATstEntldPrimProd AS current ON /* join condition not captured in parsed metadata */
INNER JOIN I_PRATstContrAllocTol AS tol ON /* join condition not captured in parsed metadata */
;
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