I_ContrAllocVolPrimProdWC

DDL: I_CONTRALLOCVOLPRIMPRODWC SQL: IPVCAVOLPRIWC Type: view BASIC Package: OIU_VDM_CDS

CA Volume Primary Product For WC

I_ContrAllocVolPrimProdWC is a Basic CDS View (Cube) that provides data about "CA Volume Primary Product For WC" in SAP S/4HANA. It reads from 1 data source (oiu_sb_actwc) and exposes 37 fields with key fields Material, PRAContract, DeliveryNetwork, Well, WellCompletion. It has 12 associations to related views. Part of development package OIU_VDM_CDS.

Data Sources (1)

SourceAliasJoin Type
oiu_sb_actwc oiu_sb_actwc from

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_DeliveryNetwork _DeliveryNetwork $projection.DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork
[0..1] I_Well _Well $projection.Well = _Well.Well
[0..1] I_WellCompletion _WellCompletion $projection.Well = _WellCompletion.Well and $projection.WellCompletion = _WellCompletion.WellCompletion
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_PRAContract _PRAContract $projection.PRAContract = _PRAContract.PRAContract
[0..1] I_PRAOwner _PRAOwner $projection.PRAOwner = _PRAOwner.PRAOwner
[0..1] I_OwnerInterestType _OwnerInterestType $projection.OwnerInterestType = _OwnerInterestType.OwnerInterestType
[0..1] I_MeasurementPoint _OriginatingMeasurementPt $projection.OriginatingMeasurementPt = _OriginatingMeasurementPt.MeasurementPoint
[0..1] I_Customer _Transporter $projection.Transporter = _Transporter.Customer
[0..1] I_UnitOfMeasure _VolumeUnit $projection.VolumeUnit = _VolumeUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _HeatingValUnit $projection.HeatingValUnit = _HeatingValUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _EnergyUnit $projection.EnergyUnit = _EnergyUnit.UnitOfMeasure

Annotations (11)

NameValueLevelField
EndUserText.label CA Volume Primary Product For WC view
Analytics.dataCategory #CUBE view
Analytics.dataExtraction.enabled true view
Metadata.allowExtensions true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IPVCAVOLPRIWC view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY Material matnr Vehicle Model
KEY PRAContract ct_no Contract
KEY DeliveryNetwork dn_no Delivery network ID
KEY Well wl_no Well
KEY WellCompletion wc_no Well Completion
KEY OwnerInterestType own_int_type_cd Opart int type
KEY PRAOwner own_no Owner Number
KEY OriginatingMeasurementPt orig_mp_no Originating MP
KEY OwnerInterestSequence own_isq_no Own. ISQ
KEY SalesDate sa_dt Sales Date
KEY Transporter trnsp_no Transporter nbr
OriginTransaction
CreatedByUser Created By
CreationDateTime Timestamp
VolumeUnit actl_vol_u Unit
HeatingValUnit heat_val_u HV Unit
EnergyUnit actl_energy_u UoM
WetGasOverridePct wg_ovrd_pc WG override %
ActualVolume actl_vol Actual Volume
HeatingValue heat_val Heat.val.factor
ActualEnergy actl_energy Energy
EntitledVolume entl_ct_vol Ent. Ct. Volume
EntitledEnergy entl_ct_ener Ent Energy
AdjustedEntitledVol adj_entl_ct_vol Adj.Ent.Ct.Vol.
AdjustedEntitledEngy adj_entl_ct_ener Adj.Ent.Ct.En.
_DeliveryNetwork _DeliveryNetwork
_Well _Well
_WellCompletion _WellCompletion
_Material _Material
_PRAContract _PRAContract
_PRAOwner _PRAOwner
_OwnerInterestType _OwnerInterestType
_OriginatingMeasurementPt _OriginatingMeasurementPt
_Transporter _Transporter
_VolumeUnit _VolumeUnit
_HeatingValUnit _HeatingValUnit
_EnergyUnit _EnergyUnit

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_ContrAllocVolPrimProdWC.
-- 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: IPVCAVOLPRIWC

CREATE VIEW I_ContrAllocVolPrimProdWC AS
SELECT
  matnr AS Material,
  ct_no AS PRAContract,
  dn_no AS DeliveryNetwork,
  wl_no AS Well,
  wc_no AS WellCompletion,
  own_int_type_cd AS OwnerInterestType,
  own_no AS PRAOwner,
  orig_mp_no AS OriginatingMeasurementPt,
  own_isq_no AS OwnerInterestSequence,
  sa_dt AS SalesDate,
  trnsp_no AS Transporter,
  cast( 'O3U_CA09' as fqm_origin_trans_id ) AS OriginTransaction,
  cast( oiu_cruser as fclm_bam_created_by ) AS CreatedByUser,
  cast( oiu_timestamp as oiu_vdm_created_on_ts ) AS CreationDateTime,
  actl_vol_u AS VolumeUnit,
  heat_val_u AS HeatingValUnit,
  actl_energy_u AS EnergyUnit,
  wg_ovrd_pc AS WetGasOverridePct,
  actl_vol AS ActualVolume,
  heat_val AS HeatingValue,
  actl_energy AS ActualEnergy,
  entl_ct_vol AS EntitledVolume,
  entl_ct_ener AS EntitledEnergy,
  adj_entl_ct_vol AS AdjustedEntitledVol,
  adj_entl_ct_ener AS AdjustedEntitledEngy
FROM oiu_sb_actwc
LEFT OUTER JOIN I_DeliveryNetwork AS _DeliveryNetwork ON DeliveryNetwork = _DeliveryNetwork.DeliveryNetwork  -- association [0..1]
LEFT OUTER JOIN I_Well AS _Well ON Well = _Well.Well  -- association [0..1]
LEFT OUTER JOIN I_WellCompletion AS _WellCompletion ON Well = _WellCompletion.Well AND WellCompletion = _WellCompletion.WellCompletion  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_PRAContract AS _PRAContract ON PRAContract = _PRAContract.PRAContract  -- 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 [0..1]
LEFT OUTER JOIN I_MeasurementPoint AS _OriginatingMeasurementPt ON OriginatingMeasurementPt = _OriginatingMeasurementPt.MeasurementPoint  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Transporter ON Transporter = _Transporter.Customer  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON VolumeUnit = _VolumeUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _HeatingValUnit ON HeatingValUnit = _HeatingValUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EnergyUnit ON EnergyUnit = _EnergyUnit.UnitOfMeasure  -- association [0..1]
;