P_JP_POBASEDACCTGGRLIST

DDL: P_JP_POBASEDACCTGGRLIST SQL: PJPPOBSDACCTGLST Type: view COMPOSITE

GR Accounting Document List(PO Based)

P_JP_POBASEDACCTGGRLIST is a Composite CDS View that provides data about "GR Accounting Document List(PO Based)" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItem, P_JP_POBASEDGRLIST) and exposes 47 fields with key fields PurchasingHistoryDocument, PurchasingHistoryDocumentYear, PurchasingDocument, PurchasingDocumentItem, Ledger. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItem accdoc inner
P_JP_POBASEDGRLIST PO_History inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PJPPOBSDACCTGLST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
EndUserText.label GR Accounting Document List(PO Based) view

Fields (47)

KeyFieldSource TableSource FieldDescription
KEY PurchasingHistoryDocument header PurchasingHistoryDocument
KEY PurchasingHistoryDocumentYear header PurchasingHistoryDocumentYear
KEY PurchasingDocument I_GLAccountLineItem PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_GLAccountLineItem PurchasingDocumentItem Purchasing Doc. Item
KEY Ledger I_GLAccountLineItem Ledger Ledger
KEY SourceLedger I_GLAccountLineItem SourceLedger Source Ledger
KEY CompanyCode I_GLAccountLineItem CompanyCode Receiver Company Code
KEY FiscalYear I_GLAccountLineItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_GLAccountLineItem AccountingDocument Journal Entry
KEY LedgerGLLineItem I_GLAccountLineItem LedgerGLLineItem Journal Entry Item
AccountingDocumentType I_GLAccountLineItem AccountingDocumentType Journal Entry Type
FiscalPeriod I_GLAccountLineItem FiscalPeriod Tax period
PostingDate I_GLAccountLineItem PostingDate Posting Date for GR
DocumentDate I_GLAccountLineItem DocumentDate Journal Entry Date
ClearingDate I_GLAccountLineItem ClearingDate Clearing Date
DocumentItemText I_GLAccountLineItem DocumentItemText Text
FinancialAccountType I_GLAccountLineItem FinancialAccountType Fin. Account Type
ChartOfAccounts I_GLAccountLineItem ChartOfAccounts Node Class
GLAccount I_GLAccountLineItem GLAccount General Ledger
ReferenceDocument I_GLAccountLineItem ReferenceDocument Reference Document
ReferenceDocumentItem I_GLAccountLineItem ReferenceDocumentItem Reference item
Product I_GLAccountLineItem Product Product Sold
Supplier I_GLAccountLineItem Supplier Supplier
DebitCreditCode I_GLAccountLineItem DebitCreditCode Single-Character Flag
TransactionCurrency I_GLAccountLineItem TransactionCurrency Transaction Currency
AmountInTransactionCurrency I_GLAccountLineItem AmountInTransactionCurrency Pt Crcy Amt
CompanyCodeCurrency I_GLAccountLineItem CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency I_GLAccountLineItem AmountInCompanyCodeCurrency Local Crcy Amt
BaseUnit I_GLAccountLineItem BaseUnit Unit of Measure
Quantity I_GLAccountLineItem Quantity Value
_SourceLedger I_GLAccountLineItem _SourceLedger
_CompanyCode I_GLAccountLineItem _CompanyCode
_FiscalYear I_GLAccountLineItem _FiscalYear
_JournalEntry _JournalEntry
_Ledger I_GLAccountLineItem _Ledger
_Supplier I_GLAccountLineItem _Supplier
_Product I_GLAccountLineItem _Product
_PurchasingDocument I_GLAccountLineItem _PurchasingDocument
_PurchasingDocumentItem I_GLAccountLineItem _PurchasingDocumentItem
_TransactionCurrency I_GLAccountLineItem _TransactionCurrency
_CompanyCodeCurrency I_GLAccountLineItem _CompanyCodeCurrency
_BaseUnit I_GLAccountLineItem _BaseUnit
_DebitCreditCode I_GLAccountLineItem _DebitCreditCode
_GLAccountInChartOfAccounts I_GLAccountLineItem _GLAccountInChartOfAccounts
_ChartOfAccounts I_GLAccountLineItem _ChartOfAccounts
_AccountingDocumentType I_GLAccountLineItem _AccountingDocumentType
_AccountingDocumentTypeText I_GLAccountLineItem _AccountingDocumentTypeText

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 P_JP_POBASEDACCTGGRLIST.
-- 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: PJPPOBSDACCTGLST

CREATE VIEW P_JP_POBASEDACCTGGRLIST AS
SELECT
  header.PurchasingHistoryDocument AS PurchasingHistoryDocument,
  header.PurchasingHistoryDocumentYear AS PurchasingHistoryDocumentYear,
  accdoc.PurchasingDocument AS PurchasingDocument,
  accdoc.PurchasingDocumentItem AS PurchasingDocumentItem,
  accdoc.Ledger AS Ledger,
  accdoc.SourceLedger AS SourceLedger,
  accdoc.CompanyCode AS CompanyCode,
  accdoc.FiscalYear AS FiscalYear,
  accdoc.AccountingDocument AS AccountingDocument,
  accdoc.LedgerGLLineItem AS LedgerGLLineItem,
  accdoc.AccountingDocumentType AS AccountingDocumentType,
  accdoc.FiscalPeriod AS FiscalPeriod,
  accdoc.PostingDate AS PostingDate,
  accdoc.DocumentDate AS DocumentDate,
  accdoc.ClearingDate AS ClearingDate,
  accdoc.DocumentItemText AS DocumentItemText,
  accdoc.FinancialAccountType AS FinancialAccountType,
  accdoc.ChartOfAccounts AS ChartOfAccounts,
  accdoc.GLAccount AS GLAccount,
  accdoc.ReferenceDocument AS ReferenceDocument,
  accdoc.ReferenceDocumentItem AS ReferenceDocumentItem,
  accdoc.Product AS Product,
  accdoc.Supplier AS Supplier,
  accdoc.DebitCreditCode AS DebitCreditCode,
  accdoc.TransactionCurrency AS TransactionCurrency,
  accdoc.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  accdoc.CompanyCodeCurrency AS CompanyCodeCurrency,
  accdoc.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  accdoc.BaseUnit AS BaseUnit,
  accdoc.Quantity AS Quantity,
  accdoc._SourceLedger AS _SourceLedger,
  accdoc._CompanyCode AS _CompanyCode,
  accdoc._FiscalYear AS _FiscalYear,
  accdoc._Ledger AS _Ledger,
  accdoc._Supplier AS _Supplier,
  accdoc._Product AS _Product,
  accdoc._PurchasingDocument AS _PurchasingDocument,
  accdoc._PurchasingDocumentItem AS _PurchasingDocumentItem,
  accdoc._TransactionCurrency AS _TransactionCurrency,
  accdoc._CompanyCodeCurrency AS _CompanyCodeCurrency,
  accdoc._BaseUnit AS _BaseUnit,
  accdoc._DebitCreditCode AS _DebitCreditCode,
  accdoc._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  accdoc._ChartOfAccounts AS _ChartOfAccounts,
  accdoc._AccountingDocumentType AS _AccountingDocumentType,
  accdoc._AccountingDocumentTypeText AS _AccountingDocumentTypeText
INNER JOIN P_JP_POBASEDGRLIST AS PO_History ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAccountLineItem AS accdoc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument  -- association [1..1]
;