C_PRATstActlPrimProdDets
CA - Actual Primary Product Details tab
C_PRATstActlPrimProdDets is a Consumption CDS View that provides data about "CA - Actual Primary Product Details tab" in SAP S/4HANA. It reads from 1 data source (I_PRATstActlPrimProdCompareUI) and exposes 40 fields with key fields DeliveryNetwork, Well, WellCompletion, Material, PRAContract. It has 3 associations to related views. Part of development package OIU_TV.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PRATstActlPrimProdCompareUI | I_PRATstActlPrimProdCompareUI | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PRADeliveryNetworkVH | _DeliveryNetworkVH | $projection.DeliveryNetwork = _DeliveryNetworkVH.DeliveryNetwork |
| [0..1] | I_PRAMajorProductCodeVH | _MajorProductVH | $projection.MajorProduct = _MajorProductVH.MajorProduct |
| [1..1] | I_PRATstContrAllocRsltsHdr | _hdr | $projection.DeliveryNetwork = _hdr.DeliveryNetwork and $projection.SalesDate = _hdr.SalesDate and $projection.MajorProduct = _hdr.MajorProduct |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPRATSTAPPD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | CA - Actual Primary Product Details tab | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DeliveryNetwork | DeliveryNetwork | Delivery network ID | |
| KEY | Well | Well | Well | |
| KEY | WellCompletion | WellCompletion | Well Completion | |
| KEY | Material | Material | Vehicle Model | |
| KEY | PRAContract | PRAContract | Contract | |
| KEY | SalesDate | SalesDate | Sales Date | |
| KEY | PRAOwner | PRAOwner | ||
| KEY | OwnerInterestType | OwnerInterestType | ||
| KEY | OwnerInterestSequence | OwnerInterestSequence | ||
| KEY | OriginatingMeasurementPt | OriginatingMeasurementPt | ||
| KEY | Transporter | Transporter | Partner | |
| KEY | AllocationFrequency | AllocationFrequency | ||
| DeliveryNetworkName | _hdr | DeliveryNetworkName | ||
| MajorProduct | MajorProduct | Major Product | ||
| ActlPrimStatusCritlty | _hdr | ActlPrimStatusCritlty | ||
| ActlPrimStatusText | _hdr | ActlPrimStatusText | Primary Products Status | |
| ActualVolumeStsCritlty | ActualVolumeStsCritlty | |||
| BaselineActualVolume | BaselineActualVolume | |||
| ActualVolume | ActualVolume | |||
| VolumeUnit | VolumeUnit | Volume Unit | ||
| ActualHeatingValueStsCritlty | ActualHeatingValueStsCritlty | |||
| BaselineActualHeatingValue | BaselineActualHeatingValue | |||
| ActualHeatingValue | ActualHeatingValue | |||
| HeatingValUnit | HeatingValUnit | |||
| ActualEnergyStsCritlty | ActualEnergyStsCritlty | |||
| BaselineActualEnergy | BaselineActualEnergy | |||
| ActualEnergy | ActualEnergy | |||
| EnergyUnit | EnergyUnit | |||
| EntitledVolumeStsCritlty | EntitledVolumeStsCritlty | |||
| BaselineEntitledVolume | BaselineEntitledVolume | |||
| EntitledVolume | EntitledVolume | |||
| AdjustedEntitledVolStsCritlty | AdjustedEntitledVolStsCritlty | |||
| BaselineAdjustedEntitledVol | BaselineAdjustedEntitledVol | |||
| AdjustedEntitledVol | AdjustedEntitledVol | |||
| EntitledEnergyStsCritlty | EntitledEnergyStsCritlty | |||
| BaselineEntitledEnergy | BaselineEntitledEnergy | |||
| EntitledEnergy | EntitledEnergy | |||
| AdjustedEntitledEngyStsCritlty | AdjustedEntitledEngyStsCritlty | |||
| BaselineAdjustedEntitledEngy | BaselineAdjustedEntitledEngy | |||
| AdjustedEntitledEngy | AdjustedEntitledEngy |
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 C_PRATstActlPrimProdDets.
-- 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: CPRATSTAPPD
CREATE VIEW C_PRATstActlPrimProdDets AS
SELECT
DeliveryNetwork,
Well,
WellCompletion,
Material,
PRAContract,
SalesDate,
PRAOwner,
OwnerInterestType,
OwnerInterestSequence,
OriginatingMeasurementPt,
Transporter,
AllocationFrequency,
_hdr.DeliveryNetworkName AS DeliveryNetworkName,
MajorProduct,
_hdr.ActlPrimStatusCritlty AS ActlPrimStatusCritlty,
_hdr.ActlPrimStatusText AS ActlPrimStatusText,
ActualVolumeStsCritlty,
BaselineActualVolume,
ActualVolume,
VolumeUnit,
ActualHeatingValueStsCritlty,
BaselineActualHeatingValue,
ActualHeatingValue,
HeatingValUnit,
ActualEnergyStsCritlty,
BaselineActualEnergy,
ActualEnergy,
EnergyUnit,
EntitledVolumeStsCritlty,
BaselineEntitledVolume,
EntitledVolume,
AdjustedEntitledVolStsCritlty,
BaselineAdjustedEntitledVol,
AdjustedEntitledVol,
EntitledEnergyStsCritlty,
BaselineEntitledEnergy,
EntitledEnergy,
AdjustedEntitledEngyStsCritlty,
BaselineAdjustedEntitledEngy,
AdjustedEntitledEngy
FROM I_PRATstActlPrimProdCompareUI
LEFT OUTER JOIN I_PRADeliveryNetworkVH AS _DeliveryNetworkVH ON DeliveryNetwork = _DeliveryNetworkVH.DeliveryNetwork -- association [0..1]
LEFT OUTER JOIN I_PRAMajorProductCodeVH AS _MajorProductVH ON MajorProduct = _MajorProductVH.MajorProduct -- association [0..1]
LEFT OUTER JOIN I_PRATstContrAllocRsltsHdr AS _hdr ON DeliveryNetwork = _hdr.DeliveryNetwork AND SalesDate = _hdr.SalesDate AND MajorProduct = _hdr.MajorProduct -- 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