P_JP_GRBASEDACCTGGRLIST
GR Accounting Document List(GR Based )
P_JP_GRBASEDACCTGGRLIST is a Composite CDS View that provides data about "GR Accounting Document List(GR Based )" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItem, P_JP_GRBASEDGRLIST) and exposes 48 fields with key fields PurchasingDocument, PurchasingDocumentItem, PurchasingHistoryDocument, PurchasingHistoryDocumentItem, PurchasingHistoryDocumentYear. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItem | accdoc | inner |
| P_JP_GRBASEDGRLIST | PO_History | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_JournalEntry | _JournalEntry | $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PJPGRACCTGGRLST | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | GR Accounting Document List(GR Based ) | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | I_GLAccountLineItem | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | I_GLAccountLineItem | PurchasingDocumentItem | Purchasing Doc. Item |
| KEY | PurchasingHistoryDocument | P_JP_GRBASEDGRLIST | PurchasingHistoryDocument | |
| KEY | PurchasingHistoryDocumentItem | P_JP_GRBASEDGRLIST | PurchasingHistoryDocumentItem | |
| KEY | PurchasingHistoryDocumentYear | P_JP_GRBASEDGRLIST | PurchasingHistoryDocumentYear | |
| 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 |
| KEY | Ledger | I_GLAccountLineItem | Ledger | Ledger |
| AccountingDocumentType | I_GLAccountLineItem | AccountingDocumentType | Journal Entry Type | |
| FinancialAccountType | I_GLAccountLineItem | FinancialAccountType | Fin. Account 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 | |
| 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 | |
| DebitCreditCode | I_GLAccountLineItem | DebitCreditCode | Single-Character Flag | |
| Supplier | I_GLAccountLineItem | Supplier | Supplier | |
| 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_GRBASEDACCTGGRLIST.
-- 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: PJPGRACCTGGRLST
CREATE VIEW P_JP_GRBASEDACCTGGRLIST AS
SELECT
accdoc.PurchasingDocument AS PurchasingDocument,
accdoc.PurchasingDocumentItem AS PurchasingDocumentItem,
PO_History.PurchasingHistoryDocument AS PurchasingHistoryDocument,
PO_History.PurchasingHistoryDocumentItem AS PurchasingHistoryDocumentItem,
PO_History.PurchasingHistoryDocumentYear AS PurchasingHistoryDocumentYear,
accdoc.SourceLedger AS SourceLedger,
accdoc.CompanyCode AS CompanyCode,
accdoc.FiscalYear AS FiscalYear,
accdoc.AccountingDocument AS AccountingDocument,
accdoc.LedgerGLLineItem AS LedgerGLLineItem,
accdoc.Ledger AS Ledger,
accdoc.AccountingDocumentType AS AccountingDocumentType,
accdoc.FinancialAccountType AS FinancialAccountType,
accdoc.FiscalPeriod AS FiscalPeriod,
accdoc.PostingDate AS PostingDate,
accdoc.DocumentDate AS DocumentDate,
accdoc.ClearingDate AS ClearingDate,
accdoc.DocumentItemText AS DocumentItemText,
accdoc.ChartOfAccounts AS ChartOfAccounts,
accdoc.GLAccount AS GLAccount,
accdoc.ReferenceDocument AS ReferenceDocument,
accdoc.ReferenceDocumentItem AS ReferenceDocumentItem,
accdoc.Product AS Product,
accdoc.DebitCreditCode AS DebitCreditCode,
accdoc.Supplier AS Supplier,
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
FROM P_JP_GRBASEDGRLIST AS PO_History
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]
;
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