P_JP_APDOCUMENTITEMLIST3
AP Document Item List(GR Based)
P_JP_APDOCUMENTITEMLIST3 is a Composite CDS View that provides data about "AP Document Item List(GR Based)" in SAP S/4HANA. It reads from 2 data sources (P_JP_APDOCUMENTHEADERLIST, P_JP_GRBASEDACCTGGRLIST) and exposes 47 fields with key fields Supplier, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. Part of development package GLO_FIN_JP_ANNEX20.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_JP_APDOCUMENTHEADERLIST | IRHeader | inner |
| P_JP_GRBASEDACCTGGRLIST | po_gr | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PJPAPDOCIT3 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | AP Document Item List(GR Based) | view |
Fields (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Supplier | P_JP_APDOCUMENTHEADERLIST | Supplier | Supplier |
| KEY | SourceLedger | P_JP_GRBASEDACCTGGRLIST | SourceLedger | Source Ledger |
| KEY | CompanyCode | P_JP_GRBASEDACCTGGRLIST | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | P_JP_GRBASEDACCTGGRLIST | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | P_JP_GRBASEDACCTGGRLIST | AccountingDocument | Journal Entry |
| KEY | LedgerGLLineItem | P_JP_GRBASEDACCTGGRLIST | LedgerGLLineItem | Journal Entry Item |
| KEY | Ledger | P_JP_GRBASEDACCTGGRLIST | Ledger | Ledger |
| JP_Annex205APLeadingAcctgDoc | ||||
| FiscalPeriod | P_JP_GRBASEDACCTGGRLIST | FiscalPeriod | Tax period | |
| PostingDate | P_JP_GRBASEDACCTGGRLIST | PostingDate | Posting Date for GR | |
| DocumentDate | P_JP_GRBASEDACCTGGRLIST | DocumentDate | Journal Entry Date | |
| ClearingDate | P_JP_GRBASEDACCTGGRLIST | ClearingDate | Clearing Date | |
| DocumentItemText | P_JP_GRBASEDACCTGGRLIST | DocumentItemText | Text | |
| AccountingDocumentType | P_JP_GRBASEDACCTGGRLIST | AccountingDocumentType | Journal Entry Type | |
| FinancialAccountType | P_JP_GRBASEDACCTGGRLIST | FinancialAccountType | Fin. Account Type | |
| ChartOfAccounts | P_JP_GRBASEDACCTGGRLIST | ChartOfAccounts | Node Class | |
| GLAccount | P_JP_GRBASEDACCTGGRLIST | GLAccount | General Ledger | |
| ReferenceDocument | P_JP_GRBASEDACCTGGRLIST | ReferenceDocument | Reference Document | |
| ReferenceDocumentItem | P_JP_GRBASEDACCTGGRLIST | ReferenceDocumentItem | Reference item | |
| PurchasingDocument | P_JP_GRBASEDACCTGGRLIST | PurchasingDocument | Purchasing Document | |
| PurchasingDocumentItem | P_JP_GRBASEDACCTGGRLIST | PurchasingDocumentItem | Purchasing Doc. Item | |
| Product | P_JP_GRBASEDACCTGGRLIST | Product | Product Sold | |
| DebitCreditCodeName | P_JP_GRBASEDACCTGGRLIST | DebitCreditCodeName | ||
| DebitCreditCode | P_JP_GRBASEDACCTGGRLIST | DebitCreditCode | Single-Character Flag | |
| TransactionCurrency | P_JP_GRBASEDACCTGGRLIST | TransactionCurrency | Transaction Currency | |
| AmountInTransactionCurrency | P_JP_GRBASEDACCTGGRLIST | AmountInTransactionCurrency | Pt Crcy Amt | |
| CompanyCodeCurrency | P_JP_GRBASEDACCTGGRLIST | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | P_JP_GRBASEDACCTGGRLIST | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| BaseUnit | P_JP_GRBASEDACCTGGRLIST | BaseUnit | Unit of Measure | |
| Quantity | P_JP_GRBASEDACCTGGRLIST | Quantity | Value | |
| _SourceLedger | P_JP_GRBASEDACCTGGRLIST | _SourceLedger | ||
| _CompanyCode | P_JP_GRBASEDACCTGGRLIST | _CompanyCode | ||
| _FiscalYear | P_JP_GRBASEDACCTGGRLIST | _FiscalYear | ||
| _JournalEntry | P_JP_GRBASEDACCTGGRLIST | _JournalEntry | ||
| _Ledger | P_JP_GRBASEDACCTGGRLIST | _Ledger | ||
| _Supplier | P_JP_APDOCUMENTHEADERLIST | _Supplier | ||
| _Product | P_JP_GRBASEDACCTGGRLIST | _Product | ||
| _PurchasingDocument | P_JP_GRBASEDACCTGGRLIST | _PurchasingDocument | ||
| _PurchasingDocumentItem | P_JP_GRBASEDACCTGGRLIST | _PurchasingDocumentItem | ||
| _TransactionCurrency | P_JP_GRBASEDACCTGGRLIST | _TransactionCurrency | ||
| _CompanyCodeCurrency | P_JP_GRBASEDACCTGGRLIST | _CompanyCodeCurrency | ||
| _BaseUnit | P_JP_GRBASEDACCTGGRLIST | _BaseUnit | ||
| _DebitCreditCode | P_JP_GRBASEDACCTGGRLIST | _DebitCreditCode | ||
| _GLAccountInChartOfAccounts | P_JP_GRBASEDACCTGGRLIST | _GLAccountInChartOfAccounts | ||
| _ChartOfAccounts | P_JP_GRBASEDACCTGGRLIST | _ChartOfAccounts | ||
| _AccountingDocumentType | P_JP_GRBASEDACCTGGRLIST | _AccountingDocumentType | ||
| _AccountingDocumentTypeText | P_JP_GRBASEDACCTGGRLIST | _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_APDOCUMENTITEMLIST3.
-- 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: PJPAPDOCIT3
CREATE VIEW P_JP_APDOCUMENTITEMLIST3 AS
SELECT
IRHeader.Supplier AS Supplier,
po_gr.SourceLedger AS SourceLedger,
po_gr.CompanyCode AS CompanyCode,
po_gr.FiscalYear AS FiscalYear,
po_gr.AccountingDocument AS AccountingDocument,
po_gr.LedgerGLLineItem AS LedgerGLLineItem,
po_gr.Ledger AS Ledger,
cast ( IRHeader.AccountingDocument as glo_jp_anx20_leading_acctg_doc preserving type ) AS JP_Annex205APLeadingAcctgDoc,
po_gr.FiscalPeriod AS FiscalPeriod,
po_gr.PostingDate AS PostingDate,
po_gr.DocumentDate AS DocumentDate,
po_gr.ClearingDate AS ClearingDate,
po_gr.DocumentItemText AS DocumentItemText,
po_gr.AccountingDocumentType AS AccountingDocumentType,
po_gr.FinancialAccountType AS FinancialAccountType,
po_gr.ChartOfAccounts AS ChartOfAccounts,
po_gr.GLAccount AS GLAccount,
po_gr.ReferenceDocument AS ReferenceDocument,
po_gr.ReferenceDocumentItem AS ReferenceDocumentItem,
po_gr.PurchasingDocument AS PurchasingDocument,
po_gr.PurchasingDocumentItem AS PurchasingDocumentItem,
po_gr.Product AS Product,
po_gr.DebitCreditCodeName AS DebitCreditCodeName,
po_gr.DebitCreditCode AS DebitCreditCode,
po_gr.TransactionCurrency AS TransactionCurrency,
po_gr.AmountInTransactionCurrency AS AmountInTransactionCurrency,
po_gr.CompanyCodeCurrency AS CompanyCodeCurrency,
po_gr.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
po_gr.BaseUnit AS BaseUnit,
po_gr.Quantity AS Quantity,
po_gr._SourceLedger AS _SourceLedger,
po_gr._CompanyCode AS _CompanyCode,
po_gr._FiscalYear AS _FiscalYear,
po_gr._JournalEntry AS _JournalEntry,
po_gr._Ledger AS _Ledger,
IRHeader._Supplier AS _Supplier,
po_gr._Product AS _Product,
po_gr._PurchasingDocument AS _PurchasingDocument,
po_gr._PurchasingDocumentItem AS _PurchasingDocumentItem,
po_gr._TransactionCurrency AS _TransactionCurrency,
po_gr._CompanyCodeCurrency AS _CompanyCodeCurrency,
po_gr._BaseUnit AS _BaseUnit,
po_gr._DebitCreditCode AS _DebitCreditCode,
po_gr._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
po_gr._ChartOfAccounts AS _ChartOfAccounts,
po_gr._AccountingDocumentType AS _AccountingDocumentType,
po_gr._AccountingDocumentTypeText AS _AccountingDocumentTypeText
FROM P_JP_GRBASEDACCTGGRLIST AS po_gr
INNER JOIN P_JP_APDOCUMENTHEADERLIST AS IRHeader ON /* join condition not captured in parsed metadata */
;
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