P_JP_IRDocumentItem

DDL: P_JP_IRDOCUMENTITEM SQL: PJPIRDOCIT Type: view COMPOSITE Package: GLO_FIN_JP_ANNEX20

Invoice Receipt Document Item List

P_JP_IRDocumentItem is a Composite CDS View that provides data about "Invoice Receipt Document Item List" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItem, P_JP_IRDocumentHeader) and exposes 51 fields with key fields Supplier, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. It has 3 associations to related views. Part of development package GLO_FIN_JP_ANNEX20.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItem GLAccountLineItem from
P_JP_IRDocumentHeader IRHeader inner

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_PurchaseOrderItem _PurchaseOrderItem $projection.PurchasingDocument = _PurchaseOrderItem.PurchaseOrder and $projection.PurchasingDocumentItem = _PurchaseOrderItem.PurchaseOrderItem
[1..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PJPIRDOCIT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY Supplier P_JP_IRDocumentHeader Supplier Supplier
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
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
AccountingDocumentHeaderText P_JP_IRDocumentHeader AccountingDocumentHeaderText Doc.Header Text
DocumentItemText I_GLAccountLineItem DocumentItemText Text
AccountingDocumentType I_GLAccountLineItem AccountingDocumentType Journal Entry Type
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
PurchasingDocument I_GLAccountLineItem PurchasingDocument Purchasing Document
PurchasingDocumentItem I_GLAccountLineItem PurchasingDocumentItem Purchasing Doc. Item
Product I_GLAccountLineItem Product Product Sold
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
OrderPriceUnit _PurchaseOrderItem OrderPriceUnit Order Price Un.
NetPriceQuantity _PurchaseOrderItem NetPriceQuantity Price Unit
NetPriceAmount _PurchaseOrderItem NetPriceAmount Net Price
DocumentCurrency _PurchaseOrderItem DocumentCurrency Document Currency
_SourceLedger I_GLAccountLineItem _SourceLedger
_CompanyCode I_GLAccountLineItem _CompanyCode
_FiscalYear I_GLAccountLineItem _FiscalYear
_JournalEntry _JournalEntry
_Ledger I_GLAccountLineItem _Ledger
_FinancialAccountType I_GLAccountLineItem _FinancialAccountType
_Supplier _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_IRDocumentItem.
-- 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: PJPIRDOCIT

CREATE VIEW P_JP_IRDocumentItem AS
SELECT
  IRHeader.Supplier AS Supplier,
  GLAccountLineItem.SourceLedger AS SourceLedger,
  GLAccountLineItem.CompanyCode AS CompanyCode,
  GLAccountLineItem.FiscalYear AS FiscalYear,
  GLAccountLineItem.AccountingDocument AS AccountingDocument,
  GLAccountLineItem.LedgerGLLineItem AS LedgerGLLineItem,
  GLAccountLineItem.Ledger AS Ledger,
  GLAccountLineItem.FiscalPeriod AS FiscalPeriod,
  GLAccountLineItem.PostingDate AS PostingDate,
  GLAccountLineItem.DocumentDate AS DocumentDate,
  GLAccountLineItem.ClearingDate AS ClearingDate,
  IRHeader.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  GLAccountLineItem.DocumentItemText AS DocumentItemText,
  GLAccountLineItem.AccountingDocumentType AS AccountingDocumentType,
  GLAccountLineItem.FinancialAccountType AS FinancialAccountType,
  GLAccountLineItem.ChartOfAccounts AS ChartOfAccounts,
  GLAccountLineItem.GLAccount AS GLAccount,
  GLAccountLineItem.ReferenceDocument AS ReferenceDocument,
  GLAccountLineItem.ReferenceDocumentItem AS ReferenceDocumentItem,
  GLAccountLineItem.PurchasingDocument AS PurchasingDocument,
  GLAccountLineItem.PurchasingDocumentItem AS PurchasingDocumentItem,
  GLAccountLineItem.Product AS Product,
  GLAccountLineItem.DebitCreditCode AS DebitCreditCode,
  GLAccountLineItem.TransactionCurrency AS TransactionCurrency,
  GLAccountLineItem.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  GLAccountLineItem.CompanyCodeCurrency AS CompanyCodeCurrency,
  GLAccountLineItem.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  GLAccountLineItem.BaseUnit AS BaseUnit,
  GLAccountLineItem.Quantity AS Quantity,
  _PurchaseOrderItem.OrderPriceUnit AS OrderPriceUnit,
  _PurchaseOrderItem.NetPriceQuantity AS NetPriceQuantity,
  _PurchaseOrderItem.NetPriceAmount AS NetPriceAmount,
  _PurchaseOrderItem.DocumentCurrency AS DocumentCurrency,
  GLAccountLineItem._SourceLedger AS _SourceLedger,
  GLAccountLineItem._CompanyCode AS _CompanyCode,
  GLAccountLineItem._FiscalYear AS _FiscalYear,
  GLAccountLineItem._Ledger AS _Ledger,
  GLAccountLineItem._FinancialAccountType AS _FinancialAccountType,
  GLAccountLineItem._Product AS _Product,
  GLAccountLineItem._PurchasingDocument AS _PurchasingDocument,
  GLAccountLineItem._PurchasingDocumentItem AS _PurchasingDocumentItem,
  GLAccountLineItem._TransactionCurrency AS _TransactionCurrency,
  GLAccountLineItem._CompanyCodeCurrency AS _CompanyCodeCurrency,
  GLAccountLineItem._BaseUnit AS _BaseUnit,
  GLAccountLineItem._DebitCreditCode AS _DebitCreditCode,
  GLAccountLineItem._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  GLAccountLineItem._ChartOfAccounts AS _ChartOfAccounts,
  GLAccountLineItem._AccountingDocumentType AS _AccountingDocumentType,
  GLAccountLineItem._AccountingDocumentTypeText AS _AccountingDocumentTypeText
FROM I_GLAccountLineItem AS GLAccountLineItem
INNER JOIN P_JP_IRDocumentHeader AS IRHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderItem AS _PurchaseOrderItem ON PurchasingDocument = _PurchaseOrderItem.PurchaseOrder AND PurchasingDocumentItem = _PurchaseOrderItem.PurchaseOrderItem  -- association [0..1]
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument  -- association [1..1]
;