I_PRATstCombinedHeader

DDL: I_PRATSTCOMBINEDHEADER SQL: IPRATVCOMBINEHDR Type: view BASIC

Combined Run Header - Current Data

I_PRATstCombinedHeader is a Basic CDS View that provides data about "Combined Run Header - Current Data" in SAP S/4HANA. It reads from 1 data source (/pra/rd_crh) and exposes 37 fields with key fields CurrentValnDocument, CurrentValnDocumentYear, DeliveryNetwork, SalesDate, PRAJointVenture.

Data Sources (1)

SourceAliasJoin Type
/pra/rd_crh header from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPRATVCOMBINEHDR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Combined Run Header - Current Data view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #BASIC view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY CurrentValnDocument /pra/rd_crh doc_no Posted Doc. No.
KEY CurrentValnDocumentYear /pra/rd_crh doc_year Mat. Doc. Year
KEY DeliveryNetwork /pra/rd_crh dn_no Delivery network ID
KEY SalesDate /pra/rd_crh sale_dt Sales Date
KEY PRAJointVenture /pra/rd_crh vname Volatility Name
KEY DivisionOfInterest /pra/rd_crh doi_no Venture/DOI
KEY PRAContract /pra/rd_crh vbeln SD Sched. Agmt
KEY Well /pra/rd_crh wl_no Well
KEY WellCompletion /pra/rd_crh wc_no Well Completion
KEY OriginatingMeasurementPt /pra/rd_crh mp_no Measurement Pt
KEY PRAProduct /pra/rd_crh pd_cd Product code
KEY BookingReversalType /pra/rd_crh crh_cr_type_cd CR HEADER TYPE CODE
KEY VolumeType /pra/rd_crh vl_type_cd Volume Type
KEY CombinedHdrSqncNumber /pra/rd_crh header_no System number
Material /pra/rd_crh matnr Vehicle Model
Country /pra/rd_crh counc County Code
PrimaryGeogrlLocation /pra/rd_crh pri_geo_loc Primary geo.loc
Remitter /pra/rd_crh remt_no Remitter No.
RefValnDoc /pra/rd_crh ref_doc_no Ref. doc.nr
RefValnDocYear /pra/rd_crh ref_doc_year SM Ref Doc Year
ActualGrossVolume /pra/rd_crh actl_gr_vl Act Gross Vol
VolumeUnit /pra/rd_crh vol_uom Volume UoM
ActualGrossValue /pra/rd_crh actl_gr_val_am Gross Value
EntldGrossVolume /pra/rd_crh entl_gr_vl Entitled Vol
EntldGrossValue /pra/rd_crh entl_gr_val_am Entitled Val
CompanyCodeCurrency /pra/rd_crh waers Transaction Currency
ActualVolReducn /pra/rd_crh actl_wlr_vl_am Act WLR Amount
EntitledVolReducn /pra/rd_crh entl_wlr_vl_am Ent WLR Amount
ActualEnergy /pra/rd_crh actl_energy Energy
EnergyUnit /pra/rd_crh energy_uom Energy Unit
EntitledEnergy /pra/rd_crh entl_energy Energy
SalesPriceAmount /pra/rd_crh actl_avg_price Trnsp unit val
ActualEnergyReducn /pra/rd_crh actl_ptr_vl_am Act PTR Amount
EntitledEngyReducn /pra/rd_crh entl_ptr_vl_am Ent PTR Amount
CreatedByUser /pra/rd_crh oiu_cruser Created By
CreationDateTime /pra/rd_crh oiu_timestamp Timestamp
SequenceNumber

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_PRATstCombinedHeader.
-- 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: IPRATVCOMBINEHDR

CREATE VIEW I_PRATstCombinedHeader AS
SELECT
  header.doc_no AS CurrentValnDocument,
  header.doc_year AS CurrentValnDocumentYear,
  header.dn_no AS DeliveryNetwork,
  header.sale_dt AS SalesDate,
  header.vname AS PRAJointVenture,
  header.doi_no AS DivisionOfInterest,
  header.vbeln AS PRAContract,
  header.wl_no AS Well,
  header.wc_no AS WellCompletion,
  header.mp_no AS OriginatingMeasurementPt,
  header.pd_cd AS PRAProduct,
  header.crh_cr_type_cd AS BookingReversalType,
  header.vl_type_cd AS VolumeType,
  header.header_no AS CombinedHdrSqncNumber,
  header.matnr AS Material,
  header.counc AS Country,
  header.pri_geo_loc AS PrimaryGeogrlLocation,
  header.remt_no AS Remitter,
  header.ref_doc_no AS RefValnDoc,
  header.ref_doc_year AS RefValnDocYear,
  header.actl_gr_vl AS ActualGrossVolume,
  header.vol_uom AS VolumeUnit,
  header.actl_gr_val_am AS ActualGrossValue,
  header.entl_gr_vl AS EntldGrossVolume,
  header.entl_gr_val_am AS EntldGrossValue,
  header.waers AS CompanyCodeCurrency,
  header.actl_wlr_vl_am AS ActualVolReducn,
  header.entl_wlr_vl_am AS EntitledVolReducn,
  header.actl_energy AS ActualEnergy,
  header.energy_uom AS EnergyUnit,
  header.entl_energy AS EntitledEnergy,
  header.actl_avg_price AS SalesPriceAmount,
  header.actl_ptr_vl_am AS ActualEnergyReducn,
  header.entl_ptr_vl_am AS EntitledEngyReducn,
  header.oiu_cruser AS CreatedByUser,
  header.oiu_timestamp AS CreationDateTime,
  cast('001' as abap.numc(3)) AS SequenceNumber
FROM /pra/rd_crh AS header
;