C_PRATstEntldSecdryDets
CA - Entld Secdry Product Details tab
C_PRATstEntldSecdryDets is a Consumption CDS View that provides data about "CA - Entld Secdry Product Details tab" in SAP S/4HANA. It reads from 1 data source (I_PRATstEntldSecdryCompareUI) and exposes 21 fields with key fields DeliveryNetwork, Well, WellCompletion, Material, SalesDate. It has 3 associations to related views. Part of development package OIU_TV.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PRATstEntldSecdryCompareUI | I_PRATstEntldSecdryCompareUI | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PRADeliveryNetworkVH | f4_dn | $projection.DeliveryNetwork = f4_dn.DeliveryNetwork |
| [0..1] | I_PRAMajorProductCodeVH | f4_majpd_cd | $projection.MajorProduct = f4_majpd_cd.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 | CPRATSTESD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | CA - Entld Secdry 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 (21)
| 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 | SalesDate | SalesDate | Sales Date | |
| KEY | VolumeType | VolumeType | Volume Type | |
| KEY | PRAOwner | PRAOwner | ||
| KEY | OwnerInterestType | OwnerInterestType | ||
| KEY | OwnerInterestSequence | OwnerInterestSequence | Owner Interest Sequence | |
| DeliveryNetworkName | _hdr | DeliveryNetworkName | ||
| MajorProduct | MajorProduct | Major Product | ||
| EntldSecdryStatusCritlty | _hdr | EntldSecdryStatusCritlty | ||
| EntldSecdryStatusText | _hdr | EntldSecdryStatusText | Entitled Residue & NGL Status | |
| EntitledVolumeStsCritlty | EntitledVolumeStsCritlty | |||
| BaselineEntitledVolume | BaselineEntitledVolume | Entitled Volume(Baseline) | ||
| EntitledVolume | EntitledVolume | Entitled Volume | ||
| VolumeUnit | VolumeUnit | Volume Unit | ||
| EntitledEnergyStsCritlty | EntitledEnergyStsCritlty | |||
| BaselineEntitledEnergy | BaselineEntitledEnergy | Entitled Energy(Baseline) | ||
| EntitledEnergy | EntitledEnergy | Entitled Energy | ||
| EnergyUnit | EnergyUnit | Energy Unit |
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_PRATstEntldSecdryDets.
-- 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: CPRATSTESD
CREATE VIEW C_PRATstEntldSecdryDets AS
SELECT
DeliveryNetwork,
Well,
WellCompletion,
Material,
SalesDate,
VolumeType,
PRAOwner,
OwnerInterestType,
OwnerInterestSequence,
_hdr.DeliveryNetworkName AS DeliveryNetworkName,
MajorProduct,
_hdr.EntldSecdryStatusCritlty AS EntldSecdryStatusCritlty,
_hdr.EntldSecdryStatusText AS EntldSecdryStatusText,
EntitledVolumeStsCritlty,
BaselineEntitledVolume,
EntitledVolume,
VolumeUnit,
EntitledEnergyStsCritlty,
BaselineEntitledEnergy,
EntitledEnergy,
EnergyUnit
FROM I_PRATstEntldSecdryCompareUI
LEFT OUTER JOIN I_PRADeliveryNetworkVH AS f4_dn ON DeliveryNetwork = f4_dn.DeliveryNetwork -- association [0..1]
LEFT OUTER JOIN I_PRAMajorProductCodeVH AS f4_majpd_cd ON MajorProduct = f4_majpd_cd.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