I_ValnDocAcctgItem

DDL: I_VALNDOCACCTGITEM SQL: IPVVLDOCACCTDOC Type: view BASIC

Valuation Document Accounting Item

I_ValnDocAcctgItem is a Basic CDS View (Cube) that provides data about "Valuation Document Accounting Item" in SAP S/4HANA. It reads from 1 data source (/pra/vl_acc_doc) and exposes 166 fields with key fields ValuationDocumentYear, ValuationDocumentNumber, BookingReversalType, ValnDocAcctgItem. It has 70 associations to related views.

Data Sources (1)

SourceAliasJoin Type
/pra/vl_acc_doc /pra/vl_acc_doc from

Associations (70)

CardinalityTargetAliasCondition
[0..1] I_CalendarYear _ValuationDocumentYear $projection.ValuationDocumentYear = _ValuationDocumentYear.CalendarYear
[0..1] I_ValuationDocumentHdr _ValuationDocumentHdr $projection.ValuationDocumentYear = _ValuationDocumentHdr.ValuationDocumentYear and $projection.ValuationDocumentNumber = _ValuationDocumentHdr.ValuationDocumentNumber
[0..1] I_BookingReversalType _BookingReversalType $projection.BookingReversalType = _BookingReversalType.BookingReversalType
[0..1] I_PRAOwner _PRAOwner $projection.PRAOwner = _PRAOwner.PRAOwner
[0..1] I_PRAGLAccountType _GLAccountType $projection.GLAccountType = _GLAccountType.GLAccountType
[0..1] I_OwnerInterestType _OwnerInterestType $projection.OwnerInterestType = _OwnerInterestType.OwnerInterestType
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_CompanyCode _ProcessingCompanyCode $projection.ProcessingCompanyCode = _ProcessingCompanyCode.CompanyCode
[0..1] I_CompanyCode _AffiliatedCompanyCode $projection.AffiliatedCompanyCode = _AffiliatedCompanyCode.CompanyCode
[0..1] I_PRAAcctDetnCategory _AcctDeterminationCategory $projection.AcctDeterminationCategory = _AcctDeterminationCategory.AcctDeterminationCategory
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_VolumeType _VolumeType $projection.VolumeType = _VolumeType.VolumeType
[0..1] I_Partnercompany _PartnerCompany $projection.PartnerCompany = _PartnerCompany.PartnerCompany
[0..1] I_PRAJointVenture _PRAJointVenture $projection.CompanyCode = _PRAJointVenture.CompanyCode and $projection.JointVenture = _PRAJointVenture.PRAJointVenture
[0..1] I_PRAJointVenture _UnitJointVenture $projection.CompanyCode = _UnitJointVenture.CompanyCode and $projection.UnitJointVenture = _UnitJointVenture.PRAJointVenture
[0..1] I_PRAJointVenture _GasPlantJointVenture $projection.CompanyCode = _GasPlantJointVenture.CompanyCode and $projection.GasPlantJointVenture = _GasPlantJointVenture.PRAJointVenture
[0..1] I_PRAJointVenture _ExpenseJointVenture $projection.CompanyCode = _ExpenseJointVenture.CompanyCode and $projection.ExpenseJointVenture = _ExpenseJointVenture.PRAJointVenture
[0..1] I_PRAJointVenture _AccountsRblJointVenture $projection.CompanyCode = _AccountsRblJointVenture.CompanyCode and $projection.AccountsReceivableJointVenture = _AccountsRblJointVenture.PRAJointVenture
[0..1] I_DivisionOfInterest _DivisionOfInterest $projection.CompanyCode = _DivisionOfInterest.CompanyCode and $projection.JointVenture = _DivisionOfInterest.JointVenture and $projection.DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest
[0..1] I_DivisionOfInterest _GasPlantDivisionOfInterest $projection.CompanyCode = _GasPlantDivisionOfInterest.CompanyCode and $projection.GasPlantJointVenture = _GasPlantDivisionOfInterest.JointVenture and $projection.GasPlantDivisionOfInterest = _GasPlantDivisionOfInterest.DivisionOfInterest
[0..1] I_DivisionOfInterest _AcctsRblDivisionOfInterest $projection.CompanyCode = _AcctsRblDivisionOfInterest.CompanyCode and $projection.AccountsReceivableJointVenture = _AcctsRblDivisionOfInterest.JointVenture and $projection.AcctsRblDivisionOfInterest = _AcctsRblDivisionOfInterest.DivisionOfInterest
[0..1] I_DivisionOfInterest _ExpenseDivisionOfInterest $projection.CompanyCode = _ExpenseDivisionOfInterest.CompanyCode and $projection.ExpenseJointVenture = _ExpenseDivisionOfInterest.JointVenture and $projection.ExpenseDivisionOfInterest = _ExpenseDivisionOfInterest.DivisionOfInterest
[0..1] I_PRAGLAccount _PRAGLAccount $projection.CompanyCode = _PRAGLAccount.CompanyCode and $projection.GLAccount = _PRAGLAccount.GLAccount
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_UnitOfMeasure _VolumeUnit $projection.VolumeUnit = _VolumeUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _EnergyUnit $projection.EnergyUnit = _EnergyUnit.UnitOfMeasure
[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_MeasurementPoint _MeasurementPoint $projection.MeasurementPoint = _MeasurementPoint.MeasurementPoint
[0..1] I_MeasurementPoint _OriginatingMeasurementPt $projection.OriginatingMeasurementPt = _OriginatingMeasurementPt.MeasurementPoint
[0..1] I_MeasurementPoint _AcctsRblMeasurementPt $projection.AcctsRblMeasurementPt = _AcctsRblMeasurementPt.MeasurementPoint
[0..1] I_PRAContract _PRAContract $projection.PRAContract = _PRAContract.PRAContract
[0..1] I_PRAContractType _PRAContractType $projection.PRAContractType = _PRAContractType.PRAContractType
[0..1] I_PRAContract _RelatedPRAContract $projection.RelatedPRAContract = _RelatedPRAContract.PRAContract
[0..1] I_PRAProduct _Product $projection.Product = _Product.Product
[0..*] I_PRACostCenter _CostCenter $projection.CompanyCode = _CostCenter.CompanyCode and $projection.CostCenter = _CostCenter.CostCenter
[0..1] I_Customer _Purchaser $projection.Purchaser = _Purchaser.Customer
[0..1] I_Customer _Remitter $projection.Remitter = _Remitter.Customer
[0..1] I_Customer _Transporter $projection.Transporter = _Transporter.Customer
[0..1] I_Customer _JntIntrstBilgPartner $projection.JntIntrstBilgPartner = _JntIntrstBilgPartner.Customer
[0..1] I_Country _Country $projection.Country = _Country.Country
[0..1] I_Region _Region $projection.Country = _Region.Country and $projection.Region = _Region.Region
[0..1] I_PRACounty _County $projection.Country = _County.Country and $projection.Region = _County.Region and $projection.County = _County.County
[0..1] I_PrimaryGeogrlLocation _PrimaryGeogrlLocation $projection.Country = _PrimaryGeogrlLocation.Country and $projection.PrimaryGeogrlLocation = _PrimaryGeogrlLocation.PrimaryGeogrlLocation
[0..1] I_ProductBalancingAgreement _ProductBalancingAgreement $projection.ProductBalancingAgreement = _ProductBalancingAgreement.ProductBalancingAgreement
[0..1] I_Calculationbasis _CalculationBasis $projection.CalculationBasis = _CalculationBasis.CalculationBasis
[0..1] I_OwnerPaymentStatus _OwnerPaymentStatus $projection.OwnerPaymentStatus = _OwnerPaymentStatus.OwnerPaymentStatus
[0..1] I_SeveranceTaxType _SeveranceTaxType $projection.Country = _SeveranceTaxType.Country and $projection.PrimaryGeogrlLocation = _SeveranceTaxType.PrimaryGeogrlLocation and $projection.SeveranceTaxType = _SeveranceTaxType.SeveranceTaxType
[0..1] I_MarketingType _MarketingType $projection.MajorProduct = _MarketingType.MajorProduct and $projection.MarketingType = _MarketingType.MarketingType
[0..1] I_TaxClassification _TaxClassification $projection.Country = _TaxClassification.Country and $projection.PrimaryGeogrlLocation = _TaxClassification.PrimaryGeogrlLocation and $projection.TaxClassification = _TaxClassification.TaxClassification
[0..1] I_TaxBasis _TaxBasis $projection.TaxBasis = _TaxBasis.TaxBasis
[0..1] I_PRALegalForm _PRALegalForm $projection.PRALegalForm = _PRALegalForm.PRALegalForm
[0..1] I_PriorPeriodAdjustmentReason _PriorPeriodAdjustmentReason $projection.PriorPeriodAdjustmentReason = _PriorPeriodAdjustmentReason.PriorPeriodAdjustmentReason
[0..1] I_SuspenseReason _SuspenseReason $projection.SuspenseReason = _SuspenseReason.SuspenseReason
[0..1] I_CalendarYear _RefValnDocYear $projection.RefValnDocYear = _RefValnDocYear.CalendarYear
[0..1] I_ValuationDocumentHdr _RefValnDocHdr $projection.RefValnDocYear = _RefValnDocHdr.ValuationDocumentYear and $projection.RefValnDoc = _RefValnDocHdr.ValuationDocumentNumber
[0..*] I_ValnDocAcctgItemDeduct _ValnDocAcctgItemDeduct $projection.ValuationDocumentYear = _ValnDocAcctgItemDeduct.ValuationDocumentYear and $projection.ValuationDocumentNumber = _ValnDocAcctgItemDeduct.ValuationDocumentNumber and $projection.BookingReversalType = _ValnDocAcctgItemDeduct.BookingReversalType and $projection.ValnDocAcctgItem = _ValnDocAcctgItemDeduct.ValnDocAcctgItem
[0..*] I_ValnDocAcctgItemMktg _ValnDocAcctgItemMktg $projection.ValuationDocumentYear = _ValnDocAcctgItemMktg.ValuationDocumentYear and $projection.ValuationDocumentNumber = _ValnDocAcctgItemMktg.ValuationDocumentNumber and $projection.BookingReversalType = _ValnDocAcctgItemMktg.BookingReversalType and $projection.ValnDocAcctgItem = _ValnDocAcctgItemMktg.ValnDocAcctgItem
[0..*] I_ValnDocAcctgItemTax _ValnDocAcctgItemTax $projection.ValuationDocumentYear = _ValnDocAcctgItemTax.ValuationDocumentYear and $projection.ValuationDocumentNumber = _ValnDocAcctgItemTax.ValuationDocumentNumber and $projection.BookingReversalType = _ValnDocAcctgItemTax.BookingReversalType and $projection.ValnDocAcctgItem = _ValnDocAcctgItemTax.ValnDocAcctgItem
[0..1] I_MajorProduct _MajorProduct $projection.MajorProduct = _MajorProduct.MajorProduct
[0..1] I_MinorProduct _MinorProduct $projection.MajorProduct = _MinorProduct.MajorProduct and $projection.MinorProduct = _MinorProduct.MinorProduct
[0..1] I_Indicator _ItemIsSummarizedByProduct $projection.ItemIsSummarizedByProduct = _ItemIsSummarizedByProduct.IndicatorValue
[0..1] I_Indicator _ItemIsWriteOff $projection.ItemIsWriteOff = _ItemIsWriteOff.IndicatorValue
[0..1] I_Indicator _ItemIsCleared $projection.ItemIsCleared = _ItemIsCleared.IndicatorValue
[0..1] I_Indicator _OwnerIsJntIntrstBilgEnabled $projection.OwnerIsJntIntrstBilgEnabled = _OwnerIsJntIntrstBilgEnabled.IndicatorValue
[0..1] I_Indicator _ItemIsReallocated $projection.ItemIsReallocated = _ItemIsReallocated.IndicatorValue
[0..1] I_Indicator _ItemIsRejected $projection.ItemIsRejected = _ItemIsRejected.IndicatorValue
[0..1] I_Indicator _ItemIsNetZero $projection.ItemIsNetZero = _ItemIsNetZero.IndicatorValue
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID

Annotations (11)

NameValueLevelField
EndUserText.label Valuation Document Accounting Item view
Analytics.dataCategory #CUBE view
Analytics.dataExtraction.enabled true view
Metadata.allowExtensions true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IPVVLDOCACCTDOC view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view

Fields (166)

KeyFieldSource TableSource FieldDescription
KEY ValuationDocumentYear vl_doc_year Document year
KEY ValuationDocumentNumber vl_doc_no DocNr
KEY BookingReversalType book_rev_ind Book/Rev
KEY ValnDocAcctgItem Parameter line
MajorProduct _Product MajorProduct Major Product
MinorProduct _Product MinorProduct
ItemIsRejected rej_fl Reject Flag
CompanyCode Value
FiscalPeriod Acct Period
ItemIsNetZero net_impact_ind Net Impact
GLAccount acct_no G/L Account
GLAccountType acct_type_cd Account Type
AcctDeterminationCategory acct_cat_cd Acc. category
JointVenture vname Volatility Name
DivisionOfInterest doi_no Venture/DOI
UnitJointVenture unit_vname Unit Venture
Product pd_cd Product code
Material matnr Vehicle Model
DocumentItemText line_desc Free text
Well wl_no Well
WellCompletion wc_no Well Completion
MeasurementPoint mp_no Measurement Pt
PRAContract vbeln SD Sched. Agmt
VolumeType vl_type_cd Volume Type
SalesDate sale_dt Sales Date
DeliveryNetwork dn_no Delivery network ID
CostCenter kostl Substitute CC
Country Trip Ctry/Reg
PrimaryGeogrlLocation pri_geo_loc Primary geo.loc
ProcessingCompanyCode proc_bukrs Processing Company
Purchaser pur_no Purchaser
PressureBaseQty ps_base_qy Pressure Base
ItemIsSummarizedByProduct pd_cd_sum_ind Sumzd by Product
ItemIsWriteOff writeoff Writeoff Flag
ItemIsCleared clrng_fl Clearing
OriginatingMeasurementPt orig_mp_no Originating MP
AffiliatedCompanyCode intercocd Intercompany cd
TaxClassification tax_cls Tax Class
PriorPeriodAdjustmentReason ppa_rsn_cd PPA Reason
County counc County Code
Region regio Resident Region
RelatedPRAContract related_vbeln Related Contract
ProductBalancingAgreement pba_no PBA No
GasPlantJointVenture gplt_vname Gplt Venture
GasPlantDivisionOfInterest gplt_doi_no Gplt DOI
PRAContractType ct_type_cd Contract Type
Transporter trnsp_no Transporter nbr
PartnerCompany trd_partnr Trading Partnr
Remitter remt_no Remitter No.
AcctsRblMeasurementPt ar_mp_no AR MP
AccountsReceivableJointVenture ar_vname AR Venture
AcctsRblDivisionOfInterest ar_doi_no AR DOI
AlternateProperty pu_vname Remitter Property
AlternateProduct pu_pdcd Remitter Product
PaymentReference check_no Check Number
PaymentDate check_dt ToDateForInterestClc
CashReceiptDate cash_rcpt_dt Cash Receipt Date
SeveranceTaxType tax_type_cd Severance Tax
MarketingType mkt_type_cd Mrktg Type Code
ExpenseJointVenture exp_vname Exp Venture
ExpenseDivisionOfInterest exp_doi_no Exp DOI Number
VolumeUnit vol_uom Volume UoM
EnergyUnit energy_uom Energy Unit
HeatingValUnit heat_val_uom Heating UoM
CompanyCodeCurrency waers Transaction Currency
HeatingValue heat_val Heat.val.factor
APIGravityRatio gravity Gravity
DisbursementDecimalRatio disb_decimal Disb Decimal
NetRevenueInterestRatio nri_decimal NRI
GrossVolInVolUnit gross_vol Gross Volume
OwnerNetVolInVolUnit net_vol Owner Volume
GrossEnergyInEnergyUnit gross_energy Gross Energy
OwnerEnergyInEnergyUnit own_energy Owner Energy
GrossVolReducnInVolUnit gross_pvr Gross PVR
OwnrVolReducnInVolUnit own_pvr Owner PVR
GrossEngyReductionInEngyUnit gross_ptr Gross PTR
OwnerEnergyReducnInEnergyUnit own_ptr Owner PTR
GrossAmount gross_val Gross Value
OwnerGrossAmount owner_gross_val Owner Gross Val.
OwnerNetAmount net_val Own Net Val
PRAOwner own_no Owner Number
OwnerInterestType own_int_type_cd Opart int type
OwnerInterestSequence own_isq_no Own. ISQ
SuspenseReason susp_cd Suspense Reason
CalculationBasis aes_cd AES Code
OwnerPaymentStatus pay_cd Pay Code
OwnerIsJntIntrstBilgEnabled jib_offs_fl JIB Offset
JntIntrstBilgPartner jib_partn JIB Partner
PRALegalForm enty_cd Entity Type
TaxBasis tax_free_cd Tax Free
ItemIsReallocated realloc_fl Reallocated Fl
RefValnDocYear Document year
RefValnDoc DocNr
RefValnDocItem Doc Line No.
CreatedByUser Created By
CreationDateTime Timestamp
_ValuationDocumentYear _ValuationDocumentYear
_ValuationDocumentHdr _ValuationDocumentHdr
_ItemIsRejected _ItemIsRejected
_ItemIsNetZero _ItemIsNetZero
_PRAOwner _PRAOwner
_GLAccountType _GLAccountType
_AcctDeterminationCategory _AcctDeterminationCategory
_OwnerInterestType _OwnerInterestType
_Material _Material
_VolumeType _VolumeType
_CompanyCode _CompanyCode
_CostCenter _CostCenter
_PartnerCompany _PartnerCompany
_ProcessingCompanyCode _ProcessingCompanyCode
_AffiliatedCompanyCode _AffiliatedCompanyCode
_PRAJointVenture _PRAJointVenture
_GasPlantJointVenture _GasPlantJointVenture
_ExpenseJointVenture _ExpenseJointVenture
_AccountsRblJointVenture _AccountsRblJointVenture
_DivisionOfInterest _DivisionOfInterest
_GasPlantDivisionOfInterest _GasPlantDivisionOfInterest
_AcctsRblDivisionOfInterest _AcctsRblDivisionOfInterest
_ExpenseDivisionOfInterest _ExpenseDivisionOfInterest
_UnitJointVenture _UnitJointVenture
_Well _Well
_WellCompletion _WellCompletion
_MeasurementPoint _MeasurementPoint
_OriginatingMeasurementPt _OriginatingMeasurementPt
_AcctsRblMeasurementPt _AcctsRblMeasurementPt
_PRAContract _PRAContract
_PRAContractType _PRAContractType
_RelatedPRAContract _RelatedPRAContract
_Product _Product
_MajorProduct _MajorProduct
_MinorProduct _MinorProduct
_PRAGLAccount _PRAGLAccount
_Purchaser _Purchaser
_Remitter _Remitter
_ItemIsSummarizedByProduct _ItemIsSummarizedByProduct
_ItemIsWriteOff _ItemIsWriteOff
_ItemIsCleared _ItemIsCleared
_JntIntrstBilgPartner _JntIntrstBilgPartner
_OwnerIsJntIntrstBilgEnabled _OwnerIsJntIntrstBilgEnabled
_ItemIsReallocated _ItemIsReallocated
_Transporter _Transporter
_CompanyCodeCurrency _CompanyCodeCurrency
_VolumeUnit _VolumeUnit
_EnergyUnit _EnergyUnit
_DeliveryNetwork _DeliveryNetwork
_CalculationBasis _CalculationBasis
_PriorPeriodAdjustmentReason _PriorPeriodAdjustmentReason
_SuspenseReason _SuspenseReason
_Country _Country
_PrimaryGeogrlLocation _PrimaryGeogrlLocation
_Region _Region
_County _County
_SeveranceTaxType _SeveranceTaxType
_MarketingType _MarketingType
_TaxClassification _TaxClassification
_ProductBalancingAgreement _ProductBalancingAgreement
_OwnerPaymentStatus _OwnerPaymentStatus
_PRALegalForm _PRALegalForm
_TaxBasis _TaxBasis
_BookingReversalType _BookingReversalType
_RefValnDocYear _RefValnDocYear
_RefValnDocHdr _RefValnDocHdr
_ValnDocAcctgItemDeduct _ValnDocAcctgItemDeduct
_ValnDocAcctgItemMktg _ValnDocAcctgItemMktg
_ValnDocAcctgItemTax _ValnDocAcctgItemTax
_CreatedByUser _CreatedByUser

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_ValnDocAcctgItem.
-- 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: IPVVLDOCACCTDOC

CREATE VIEW I_ValnDocAcctgItem AS
SELECT
  vl_doc_year AS ValuationDocumentYear,
  vl_doc_no AS ValuationDocumentNumber,
  book_rev_ind AS BookingReversalType,
  cast( line_no as oiu_vdm_vl_doc_acctg_line_no preserving type ) AS ValnDocAcctgItem,
  _Product.MajorProduct AS MajorProduct,
  _Product.MinorProduct AS MinorProduct,
  rej_fl AS ItemIsRejected,
  cast ( bukrs as fis_bukrs ) AS CompanyCode,
  cast (acct_period as oiu_vdm_fis_period preserving type) AS FiscalPeriod,
  net_impact_ind AS ItemIsNetZero,
  acct_no AS GLAccount,
  acct_type_cd AS GLAccountType,
  acct_cat_cd AS AcctDeterminationCategory,
  vname AS JointVenture,
  doi_no AS DivisionOfInterest,
  unit_vname AS UnitJointVenture,
  pd_cd AS Product,
  matnr AS Material,
  line_desc AS DocumentItemText,
  wl_no AS Well,
  wc_no AS WellCompletion,
  mp_no AS MeasurementPoint,
  vbeln AS PRAContract,
  vl_type_cd AS VolumeType,
  sale_dt AS SalesDate,
  dn_no AS DeliveryNetwork,
  kostl AS CostCenter,
  cast( land1 as land1_gp preserving type ) AS Country,
  pri_geo_loc AS PrimaryGeogrlLocation,
  proc_bukrs AS ProcessingCompanyCode,
  pur_no AS Purchaser,
  ps_base_qy AS PressureBaseQty,
  pd_cd_sum_ind AS ItemIsSummarizedByProduct,
  writeoff AS ItemIsWriteOff,
  clrng_fl AS ItemIsCleared,
  orig_mp_no AS OriginatingMeasurementPt,
  intercocd AS AffiliatedCompanyCode,
  tax_cls AS TaxClassification,
  ppa_rsn_cd AS PriorPeriodAdjustmentReason,
  counc AS County,
  regio AS Region,
  related_vbeln AS RelatedPRAContract,
  pba_no AS ProductBalancingAgreement,
  gplt_vname AS GasPlantJointVenture,
  gplt_doi_no AS GasPlantDivisionOfInterest,
  ct_type_cd AS PRAContractType,
  trnsp_no AS Transporter,
  trd_partnr AS PartnerCompany,
  remt_no AS Remitter,
  ar_mp_no AS AcctsRblMeasurementPt,
  ar_vname AS AccountsReceivableJointVenture,
  ar_doi_no AS AcctsRblDivisionOfInterest,
  pu_vname AS AlternateProperty,
  pu_pdcd AS AlternateProduct,
  check_no AS PaymentReference,
  check_dt AS PaymentDate,
  cash_rcpt_dt AS CashReceiptDate,
  tax_type_cd AS SeveranceTaxType,
  mkt_type_cd AS MarketingType,
  exp_vname AS ExpenseJointVenture,
  exp_doi_no AS ExpenseDivisionOfInterest,
  vol_uom AS VolumeUnit,
  energy_uom AS EnergyUnit,
  heat_val_uom AS HeatingValUnit,
  waers AS CompanyCodeCurrency,
  heat_val AS HeatingValue,
  gravity AS APIGravityRatio,
  disb_decimal AS DisbursementDecimalRatio,
  nri_decimal AS NetRevenueInterestRatio,
  gross_vol AS GrossVolInVolUnit,
  net_vol AS OwnerNetVolInVolUnit,
  gross_energy AS GrossEnergyInEnergyUnit,
  own_energy AS OwnerEnergyInEnergyUnit,
  gross_pvr AS GrossVolReducnInVolUnit,
  own_pvr AS OwnrVolReducnInVolUnit,
  gross_ptr AS GrossEngyReductionInEngyUnit,
  own_ptr AS OwnerEnergyReducnInEnergyUnit,
  gross_val AS GrossAmount,
  owner_gross_val AS OwnerGrossAmount,
  net_val AS OwnerNetAmount,
  own_no AS PRAOwner,
  own_int_type_cd AS OwnerInterestType,
  own_isq_no AS OwnerInterestSequence,
  susp_cd AS SuspenseReason,
  aes_cd AS CalculationBasis,
  pay_cd AS OwnerPaymentStatus,
  jib_offs_fl AS OwnerIsJntIntrstBilgEnabled,
  jib_partn AS JntIntrstBilgPartner,
  enty_cd AS PRALegalForm,
  tax_free_cd AS TaxBasis,
  realloc_fl AS ItemIsReallocated,
  cast( trace_vl_doc_yr as oiu_vdm_ref_vl_doc_year preserving type ) AS RefValnDocYear,
  cast( trace_vl_doc_no as oiu_vdm_ref_vl_doc_no preserving type ) AS RefValnDoc,
  cast( trace_vl_line_no as oiu_vdm_ref_vl_doc_line_no preserving type ) AS RefValnDocItem,
  cast( oiu_cruser as fclm_bam_created_by ) AS CreatedByUser,
  cast( oiu_timestamp as oiu_vdm_created_on_ts ) AS CreationDateTime
FROM /pra/vl_acc_doc
LEFT OUTER JOIN I_CalendarYear AS _ValuationDocumentYear ON ValuationDocumentYear = _ValuationDocumentYear.CalendarYear  -- association [0..1]
LEFT OUTER JOIN I_ValuationDocumentHdr AS _ValuationDocumentHdr ON ValuationDocumentYear = _ValuationDocumentHdr.ValuationDocumentYear AND ValuationDocumentNumber = _ValuationDocumentHdr.ValuationDocumentNumber  -- association [0..1]
LEFT OUTER JOIN I_BookingReversalType AS _BookingReversalType ON BookingReversalType = _BookingReversalType.BookingReversalType  -- association [0..1]
LEFT OUTER JOIN I_PRAOwner AS _PRAOwner ON PRAOwner = _PRAOwner.PRAOwner  -- association [0..1]
LEFT OUTER JOIN I_PRAGLAccountType AS _GLAccountType ON GLAccountType = _GLAccountType.GLAccountType  -- association [0..1]
LEFT OUTER JOIN I_OwnerInterestType AS _OwnerInterestType ON OwnerInterestType = _OwnerInterestType.OwnerInterestType  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _ProcessingCompanyCode ON ProcessingCompanyCode = _ProcessingCompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _AffiliatedCompanyCode ON AffiliatedCompanyCode = _AffiliatedCompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_PRAAcctDetnCategory AS _AcctDeterminationCategory ON AcctDeterminationCategory = _AcctDeterminationCategory.AcctDeterminationCategory  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_VolumeType AS _VolumeType ON VolumeType = _VolumeType.VolumeType  -- association [0..1]
LEFT OUTER JOIN I_Partnercompany AS _PartnerCompany ON PartnerCompany = _PartnerCompany.PartnerCompany  -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _PRAJointVenture ON CompanyCode = _PRAJointVenture.CompanyCode AND JointVenture = _PRAJointVenture.PRAJointVenture  -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _UnitJointVenture ON CompanyCode = _UnitJointVenture.CompanyCode AND UnitJointVenture = _UnitJointVenture.PRAJointVenture  -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _GasPlantJointVenture ON CompanyCode = _GasPlantJointVenture.CompanyCode AND GasPlantJointVenture = _GasPlantJointVenture.PRAJointVenture  -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _ExpenseJointVenture ON CompanyCode = _ExpenseJointVenture.CompanyCode AND ExpenseJointVenture = _ExpenseJointVenture.PRAJointVenture  -- association [0..1]
LEFT OUTER JOIN I_PRAJointVenture AS _AccountsRblJointVenture ON CompanyCode = _AccountsRblJointVenture.CompanyCode AND AccountsReceivableJointVenture = _AccountsRblJointVenture.PRAJointVenture  -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _DivisionOfInterest ON CompanyCode = _DivisionOfInterest.CompanyCode AND JointVenture = _DivisionOfInterest.JointVenture AND DivisionOfInterest = _DivisionOfInterest.DivisionOfInterest  -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _GasPlantDivisionOfInterest ON CompanyCode = _GasPlantDivisionOfInterest.CompanyCode AND GasPlantJointVenture = _GasPlantDivisionOfInterest.JointVenture AND GasPlantDivisionOfInterest = _GasPlantDivisionOfInterest.DivisionOfInterest  -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _AcctsRblDivisionOfInterest ON CompanyCode = _AcctsRblDivisionOfInterest.CompanyCode AND AccountsReceivableJointVenture = _AcctsRblDivisionOfInterest.JointVenture AND AcctsRblDivisionOfInterest = _AcctsRblDivisionOfInterest.DivisionOfInterest  -- association [0..1]
LEFT OUTER JOIN I_DivisionOfInterest AS _ExpenseDivisionOfInterest ON CompanyCode = _ExpenseDivisionOfInterest.CompanyCode AND ExpenseJointVenture = _ExpenseDivisionOfInterest.JointVenture AND ExpenseDivisionOfInterest = _ExpenseDivisionOfInterest.DivisionOfInterest  -- association [0..1]
LEFT OUTER JOIN I_PRAGLAccount AS _PRAGLAccount ON CompanyCode = _PRAGLAccount.CompanyCode AND GLAccount = _PRAGLAccount.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON VolumeUnit = _VolumeUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _EnergyUnit ON EnergyUnit = _EnergyUnit.UnitOfMeasure  -- association [0..1]
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_MeasurementPoint AS _MeasurementPoint ON MeasurementPoint = _MeasurementPoint.MeasurementPoint  -- association [0..1]
LEFT OUTER JOIN I_MeasurementPoint AS _OriginatingMeasurementPt ON OriginatingMeasurementPt = _OriginatingMeasurementPt.MeasurementPoint  -- association [0..1]
LEFT OUTER JOIN I_MeasurementPoint AS _AcctsRblMeasurementPt ON AcctsRblMeasurementPt = _AcctsRblMeasurementPt.MeasurementPoint  -- association [0..1]
LEFT OUTER JOIN I_PRAContract AS _PRAContract ON PRAContract = _PRAContract.PRAContract  -- association [0..1]
LEFT OUTER JOIN I_PRAContractType AS _PRAContractType ON PRAContractType = _PRAContractType.PRAContractType  -- association [0..1]
LEFT OUTER JOIN I_PRAContract AS _RelatedPRAContract ON RelatedPRAContract = _RelatedPRAContract.PRAContract  -- association [0..1]
LEFT OUTER JOIN I_PRAProduct AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_PRACostCenter AS _CostCenter ON CompanyCode = _CostCenter.CompanyCode AND CostCenter = _CostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_Customer AS _Purchaser ON Purchaser = _Purchaser.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Remitter ON Remitter = _Remitter.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Transporter ON Transporter = _Transporter.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _JntIntrstBilgPartner ON JntIntrstBilgPartner = _JntIntrstBilgPartner.Customer  -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country  -- association [0..1]
LEFT OUTER JOIN I_Region AS _Region ON Country = _Region.Country AND Region = _Region.Region  -- association [0..1]
LEFT OUTER JOIN I_PRACounty AS _County ON Country = _County.Country AND Region = _County.Region AND County = _County.County  -- association [0..1]
LEFT OUTER JOIN I_PrimaryGeogrlLocation AS _PrimaryGeogrlLocation ON Country = _PrimaryGeogrlLocation.Country AND PrimaryGeogrlLocation = _PrimaryGeogrlLocation.PrimaryGeogrlLocation  -- association [0..1]
LEFT OUTER JOIN I_ProductBalancingAgreement AS _ProductBalancingAgreement ON ProductBalancingAgreement = _ProductBalancingAgreement.ProductBalancingAgreement  -- association [0..1]
LEFT OUTER JOIN I_Calculationbasis AS _CalculationBasis ON CalculationBasis = _CalculationBasis.CalculationBasis  -- association [0..1]
LEFT OUTER JOIN I_OwnerPaymentStatus AS _OwnerPaymentStatus ON OwnerPaymentStatus = _OwnerPaymentStatus.OwnerPaymentStatus  -- association [0..1]
LEFT OUTER JOIN I_SeveranceTaxType AS _SeveranceTaxType ON Country = _SeveranceTaxType.Country AND PrimaryGeogrlLocation = _SeveranceTaxType.PrimaryGeogrlLocation AND SeveranceTaxType = _SeveranceTaxType.SeveranceTaxType  -- association [0..1]
LEFT OUTER JOIN I_MarketingType AS _MarketingType ON MajorProduct = _MarketingType.MajorProduct AND MarketingType = _MarketingType.MarketingType  -- association [0..1]
LEFT OUTER JOIN I_TaxClassification AS _TaxClassification ON Country = _TaxClassification.Country AND PrimaryGeogrlLocation = _TaxClassification.PrimaryGeogrlLocation AND TaxClassification = _TaxClassification.TaxClassification  -- association [0..1]
LEFT OUTER JOIN I_TaxBasis AS _TaxBasis ON TaxBasis = _TaxBasis.TaxBasis  -- association [0..1]
LEFT OUTER JOIN I_PRALegalForm AS _PRALegalForm ON PRALegalForm = _PRALegalForm.PRALegalForm  -- association [0..1]
LEFT OUTER JOIN I_PriorPeriodAdjustmentReason AS _PriorPeriodAdjustmentReason ON PriorPeriodAdjustmentReason = _PriorPeriodAdjustmentReason.PriorPeriodAdjustmentReason  -- association [0..1]
LEFT OUTER JOIN I_SuspenseReason AS _SuspenseReason ON SuspenseReason = _SuspenseReason.SuspenseReason  -- association [0..1]
LEFT OUTER JOIN I_CalendarYear AS _RefValnDocYear ON RefValnDocYear = _RefValnDocYear.CalendarYear  -- association [0..1]
LEFT OUTER JOIN I_ValuationDocumentHdr AS _RefValnDocHdr ON RefValnDocYear = _RefValnDocHdr.ValuationDocumentYear AND RefValnDoc = _RefValnDocHdr.ValuationDocumentNumber  -- association [0..1]
LEFT OUTER JOIN I_ValnDocAcctgItemDeduct AS _ValnDocAcctgItemDeduct ON ValuationDocumentYear = _ValnDocAcctgItemDeduct.ValuationDocumentYear AND ValuationDocumentNumber = _ValnDocAcctgItemDeduct.ValuationDocumentNumber AND BookingReversalType = _ValnDocAcctgItemDeduct.BookingReversalType AND ValnDocAcctgItem = _ValnDocAcctgItemDeduct.ValnDocAcctgItem  -- association [0..*]
LEFT OUTER JOIN I_ValnDocAcctgItemMktg AS _ValnDocAcctgItemMktg ON ValuationDocumentYear = _ValnDocAcctgItemMktg.ValuationDocumentYear AND ValuationDocumentNumber = _ValnDocAcctgItemMktg.ValuationDocumentNumber AND BookingReversalType = _ValnDocAcctgItemMktg.BookingReversalType AND ValnDocAcctgItem = _ValnDocAcctgItemMktg.ValnDocAcctgItem  -- association [0..*]
LEFT OUTER JOIN I_ValnDocAcctgItemTax AS _ValnDocAcctgItemTax ON ValuationDocumentYear = _ValnDocAcctgItemTax.ValuationDocumentYear AND ValuationDocumentNumber = _ValnDocAcctgItemTax.ValuationDocumentNumber AND BookingReversalType = _ValnDocAcctgItemTax.BookingReversalType AND ValnDocAcctgItem = _ValnDocAcctgItemTax.ValnDocAcctgItem  -- association [0..*]
LEFT OUTER JOIN I_MajorProduct AS _MajorProduct ON MajorProduct = _MajorProduct.MajorProduct  -- association [0..1]
LEFT OUTER JOIN I_MinorProduct AS _MinorProduct ON MajorProduct = _MinorProduct.MajorProduct AND MinorProduct = _MinorProduct.MinorProduct  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _ItemIsSummarizedByProduct ON ItemIsSummarizedByProduct = _ItemIsSummarizedByProduct.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _ItemIsWriteOff ON ItemIsWriteOff = _ItemIsWriteOff.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _ItemIsCleared ON ItemIsCleared = _ItemIsCleared.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _OwnerIsJntIntrstBilgEnabled ON OwnerIsJntIntrstBilgEnabled = _OwnerIsJntIntrstBilgEnabled.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _ItemIsReallocated ON ItemIsReallocated = _ItemIsReallocated.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _ItemIsRejected ON ItemIsRejected = _ItemIsRejected.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _ItemIsNetZero ON ItemIsNetZero = _ItemIsNetZero.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
;