I_PRAAcctgDocDetail
PRA Accounting Document Detail
I_PRAAcctgDocDetail (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
PRA Accounting Document Detail · Cross Applications
I_PRAAcctgDocDetail is a Basic CDS View (Cube) that provides data about "PRA Accounting Document Detail" in SAP S/4HANA. It reads from 1 data source (/pra/acct_doc) and exposes 174 fields with key fields CompanyCode, FiscalPeriod, AccountingDocument, AccountingDocumentItem. It has 65 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | IS-OIL-PRA |
| Capabilities | Data Provider for Analytical Queries, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /pra/acct_doc | /pra/acct_doc | from |
Associations (65)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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_JointVenture | _JntIntrstBilgVenture | $projection.CompanyCode = _JntIntrstBilgVenture.CompanyCode and $projection.JntIntrstBilgVenture = _JntIntrstBilgVenture.JointVenture |
| [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..1] | I_JointVentureEquityType | _JointVentureEquityType | $projection.CompanyCode = _JointVentureEquityType.CompanyCode and $projection.JointVentureEquityType = _JointVentureEquityType.JointVentureEquityType |
| [0..1] | I_BookingReversalType | _BookingReversalType | $projection.BookingReversalType = _BookingReversalType.BookingReversalType |
| [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 |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | PRA Accounting Document Detail | view | |
| Analytics.dataCategory | #CUBE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IPVACCTGDOCDTL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (174)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | Company Code | ||
| KEY | FiscalPeriod | Fiscal Period | ||
| KEY | AccountingDocument | doc_no | Revenue Accounting Document Number | |
| KEY | AccountingDocumentItem | line_no | Accounting Document Line Number | |
| MajorProduct | _Product | MajorProduct | Major product code | |
| MinorProduct | _Product | MinorProduct | Minor Product Code | |
| ItemIsRejected | rej_fl | Accounting Document rejection flag | ||
| GLAccount | acct_no | G/L Account Number | ||
| GLAccountType | acct_type_cd | Account Type | ||
| AcctDeterminationCategory | acct_cat_cd | Account category code | ||
| JointVenture | vname | Volatility Name | ||
| DivisionOfInterest | doi_no | Division of Interest (DOI) | ||
| UnitJointVenture | unit_vname | Unit Venture | ||
| Product | pd_cd | Full three char. product code (Major and Detail Products) | ||
| Material | matnr | Material Number | ||
| DocumentItemText | line_desc | PRA Account Documnet Line Item's Description | ||
| Well | wl_no | Well ID number | ||
| WellCompletion | wc_no | Well Completion Number | ||
| MeasurementPoint | mp_no | Measurement point number | ||
| PRAContract | vbeln | Contract Number | ||
| VolumeType | vl_type_cd | Volume Type Code | ||
| SalesDate | sale_dt | Sales Date / Month | ||
| DeliveryNetwork | dn_no | Delivery network number | ||
| CostCenter | Substitute CC | |||
| Country | Country/Region Key | |||
| PrimaryGeogrlLocation | pri_geo_loc | Primary Geographical Location | ||
| ProcessingCompanyCode | proc_bukrs | Processing Company Code | ||
| Purchaser | pur_no | Purchaser Number | ||
| PressureBaseQty | ps_base_qy | Pressure Base | ||
| ItemIsSummarizedByProduct | pd_cd_sum_ind | PRA Product Code Summarize Indicator | ||
| ItemIsWriteOff | writeoff | Accounting Document Writeoff flag | ||
| ItemIsCleared | clrng_fl | Accounting Document Clearing | ||
| OriginatingMeasurementPt | orig_mp_no | Originating Measurement Point Number | ||
| AffiliatedCompanyCode | intercocd | Affiliated Company | ||
| TaxClassification | tax_cls | Tax Class | ||
| PriorPeriodAdjustmentReason | ppa_rsn_cd | Adjustment Reason Code | ||
| County | counc | County Code | ||
| Region | regio | Region (State, Province, County) | ||
| RelatedPRAContract | related_vbeln | Related contract number | ||
| ProductBalancingAgreement | pba_no | PBA Number | ||
| GasPlantJointVenture | gplt_vname | Gas Plant Venture | ||
| GasPlantDivisionOfInterest | gplt_doi_no | Gasplant DOI No | ||
| PRAContractType | ct_type_cd | Contract Type | ||
| Transporter | trnsp_no | Transporter number | ||
| PartnerCompany | trd_partnr | Trading Partner | ||
| Remitter | remt_no | Remitter (Customer) | ||
| 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 Type | ||
| MarketingType | mkt_type_cd | Marketing type code | ||
| ExpenseJointVenture | exp_vname | Expense Property number | ||
| ExpenseDivisionOfInterest | exp_doi_no | Expense DOI Number | ||
| VolumeUnit | vol_uom | Volume Base Unit of Measure | ||
| EnergyUnit | energy_uom | Energy Base Unit Of Measure | ||
| HeatingValUnit | heat_val_uom | Heating Unit Of Measure | ||
| CompanyCodeCurrency | waers | Transaction Currency | ||
| HeatingValue | heat_val | Heat.val.factor | ||
| APIGravityRatio | gravity | Oil/gas density at standard/base conditions | ||
| DisbursementDecimalRatio | disb_decimal | Disbursement Decimal | ||
| NetRevenueInterestRatio | nri_decimal | Net Revenue Interest Percent | ||
| GrossVolInVolUnit | gross_vol | Total Gross Volume | ||
| OwnerNetVolInVolUnit | net_vol | Owner Net 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 Value | ||
| NetTaxAmount | line_tax_am | Line Item Net Tax Amount | ||
| NetTaxReimbmtAmt | line_rmb_am | Line Item Net Tax Reimbursement Amount | ||
| NetInternalMarketingAmt | line_int_mkt_val | Line Net Marketing Cost - Internal | ||
| NetExternalMarketingAmt | line_ext_mkt_val | Line Net Marketing Cost - External | ||
| NetReimbmtMarketingAmt | line_ded_rmb_am | Line Net Marketing Cost Reimbursement | ||
| OtherDeductionAmount | line_oth_ded_am | Line Other deducts amount | ||
| OwnerNetAmount | net_val | Owner Net Value | ||
| PRAOwner | own_no | Owner Number | ||
| OwnerInterestType | own_int_type_cd | Participant Interest Type | ||
| OwnerInterestSequence | own_isq_no | Owner Interest Sequence Number | ||
| SuspenseReason | susp_cd | Suspense Reason Code | ||
| CalculationBasis | aes_cd | Actual / Entitled / Settlement Code | ||
| OwnerPaymentStatus | pay_cd | Pay Code | ||
| OwnerIsJntIntrstBilgEnabled | jib_offs_fl | Joint Interest Billing Offset Flag | ||
| JntIntrstBilgPartner | jib_partn | JIB Partner | ||
| PRALegalForm | enty_cd | Entity Type | ||
| TaxBasis | tax_free_cd | Tax Free Code | ||
| ItemIsReallocated | realloc_fl | Reallocated flag - results reallocated thru chain-of-title | ||
| JntIntrstBilgVenture | jva_name | JIB Venture | ||
| JointVentureEquityType | etype | RDS Entity Type | ||
| JointVentureEquityGroup | egrup | Equity group | ||
| RefFiscalPeriod | Fiscal Period | |||
| RefAccountingDocument | trace_doc_no | Revenue Accounting Trace Document Number | ||
| RefAccountingDocumentItem | trace_line_no | Accounting document trace line number | ||
| RefValnDocYear | Reference VL Document Year | |||
| RefValnDoc | Reference VL Document Number | |||
| RefValnDocItem | Reference VL Document Accounting Line Item | |||
| BookingReversalType | book_rev_ind | Booking/Reversal Indicator | ||
| CreatedByUser | Created By | |||
| CreationDateTime | Created On Timestamp | |||
| LastChangedByUser | Changed By | |||
| ChangedDateTime | Changed On Timestamp | |||
| NumberOfItems | Number of Items | |||
| _PRAOwner | _PRAOwner | |||
| _GLAccountType | _GLAccountType | |||
| _AcctDeterminationCategory | _AcctDeterminationCategory | |||
| _OwnerInterestType | _OwnerInterestType | |||
| _Material | _Material | |||
| _VolumeType | _VolumeType | |||
| _CompanyCode | _CompanyCode | |||
| _CostCenter | _CostCenter | |||
| _ItemIsRejected | _ItemIsRejected | |||
| _PartnerCompany | _PartnerCompany | |||
| _ProcessingCompanyCode | _ProcessingCompanyCode | |||
| _AffiliatedCompanyCode | _AffiliatedCompanyCode | |||
| _JntIntrstBilgVenture | _JntIntrstBilgVenture | |||
| _PRAJointVenture | _PRAJointVenture | |||
| _JointVentureEquityType | _JointVentureEquityType | |||
| _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 | |||
| _JntIntrstBilgPartner | _JntIntrstBilgPartner | |||
| _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 | |||
| _ItemIsSummarizedByProduct | _ItemIsSummarizedByProduct | |||
| _ItemIsCleared | _ItemIsCleared | |||
| _ItemIsWriteOff | _ItemIsWriteOff | |||
| _OwnerIsJntIntrstBilgEnabled | _OwnerIsJntIntrstBilgEnabled | |||
| _ItemIsReallocated | _ItemIsReallocated | |||
| _RefValnDocYear | _RefValnDocYear | |||
| _RefValnDocHdr | _RefValnDocHdr |
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_PRAAcctgDocDetail.
-- 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: IPVACCTGDOCDTL
CREATE VIEW I_PRAAcctgDocDetail AS
SELECT
cast ( bukrs as fis_bukrs preserving type ) AS CompanyCode,
cast (acct_period as oiu_vdm_fis_period preserving type) AS FiscalPeriod,
doc_no AS AccountingDocument,
line_no AS AccountingDocumentItem,
_Product.MajorProduct AS MajorProduct,
_Product.MinorProduct AS MinorProduct,
rej_fl AS ItemIsRejected,
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,
cast( kostl as fis_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,
line_tax_am AS NetTaxAmount,
line_rmb_am AS NetTaxReimbmtAmt,
line_int_mkt_val AS NetInternalMarketingAmt,
line_ext_mkt_val AS NetExternalMarketingAmt,
line_ded_rmb_am AS NetReimbmtMarketingAmt,
line_oth_ded_am AS OtherDeductionAmount,
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,
jva_name AS JntIntrstBilgVenture,
etype AS JointVentureEquityType,
egrup AS JointVentureEquityGroup,
cast (trace_acct_prd as oiu_vdm_fis_period preserving type) AS RefFiscalPeriod,
trace_doc_no AS RefAccountingDocument,
trace_line_no AS RefAccountingDocumentItem,
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,
book_rev_ind AS BookingReversalType,
cast( oiu_cruser as fclm_bam_created_by ) AS CreatedByUser,
cast( oiu_timestamp as oiu_vdm_created_on_ts ) AS CreationDateTime,
cast( change_user as fclm_bam_changed_by ) AS LastChangedByUser,
cast( change_timestamp as oiu_vdm_changed_on_ts ) AS ChangedDateTime,
cast( 1 as oiu_vdm_no_of_items ) AS NumberOfItems
FROM /pra/acct_doc
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_JointVenture AS _JntIntrstBilgVenture ON CompanyCode = _JntIntrstBilgVenture.CompanyCode AND JntIntrstBilgVenture = _JntIntrstBilgVenture.JointVenture -- 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_JointVentureEquityType AS _JointVentureEquityType ON CompanyCode = _JointVentureEquityType.CompanyCode AND JointVentureEquityType = _JointVentureEquityType.JointVentureEquityType -- association [0..1]
LEFT OUTER JOIN I_BookingReversalType AS _BookingReversalType ON BookingReversalType = _BookingReversalType.BookingReversalType -- association [0..1]
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]
;
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