P_RO_SAFTPURINVITEMTOTAL

DDL: P_RO_SAFTPURINVITEMTOTAL Type: view_entity CONSUMPTION

P_RO_SAFTPURINVITEMTOTAL is a Consumption CDS View in SAP S/4HANA. It reads from 5 data sources (I_OperationalAcctgDocItem, I_RO_SAFTDocumentTypeMap, P_RO_SAFTInvoiceItemCount, P_RO_SAFTJournalEntryItemExc, P_RO_SAFTOplAcctgDocItmExc) and exposes 13 fields with key fields StatryRptCategory, StatryRptgEntity, StatryRptRunID, SourceLedger, Ledger.

Data Sources (5)

SourceAliasJoin Type
I_OperationalAcctgDocItem Bseg inner
I_RO_SAFTDocumentTypeMap DocType inner
P_RO_SAFTInvoiceItemCount P_RO_SAFTInvoiceItemCount inner
P_RO_SAFTJournalEntryItemExc P_RO_SAFTJournalEntryItemExc inner
P_RO_SAFTOplAcctgDocItmExc P_RO_SAFTOplAcctgDocItmExc inner

Parameters (1)

NameTypeDefault
P_AlternativeGLAccountIsUsed saft_ro_alt_gl_account_flag

Annotations (7)

NameValueLevelField
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY StatryRptCategory Log StatryRptCategory Report ID
KEY StatryRptgEntity Log StatryRptgEntity Reporting Entity
KEY StatryRptRunID Log StatryRptRunID Report Run ID
KEY SourceLedger Acdoca SourceLedger Source Ledger
KEY Ledger Acdoca Ledger Ledger
KEY CompanyCode Acdoca CompanyCode Receiver Company Code
KEY FiscalYear Acdoca FiscalYear G/L Fiscal Year
KEY AccountingDocument Acdoca AccountingDocument Journal Entry
KEY LedgerGLLineItem Acdoca LedgerGLLineItem Journal Entry Item
AccountingDocumentItem Acdoca AccountingDocumentItem Posting View Item
AccountingDocumentType Acdoca AccountingDocumentType Journal Entry Type
PostingDate Acdoca PostingDate Posting Date for GR
CompanyCodeCurrency Acdoca CompanyCodeCurrency Local Currency

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_RO_SAFTPURINVITEMTOTAL.
-- 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.
-- Parameters: P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag

CREATE VIEW P_RO_SAFTPURINVITEMTOTAL AS
SELECT
  Log.StatryRptCategory AS StatryRptCategory,
  Log.StatryRptgEntity AS StatryRptgEntity,
  Log.StatryRptRunID AS StatryRptRunID,
  Acdoca.SourceLedger AS SourceLedger,
  Acdoca.Ledger AS Ledger,
  Acdoca.CompanyCode AS CompanyCode,
  Acdoca.FiscalYear AS FiscalYear,
  Acdoca.AccountingDocument AS AccountingDocument,
  Acdoca.LedgerGLLineItem AS LedgerGLLineItem,
  Acdoca.AccountingDocumentItem AS AccountingDocumentItem,
  Acdoca.AccountingDocumentType AS AccountingDocumentType,
  Acdoca.PostingDate AS PostingDate,
  Acdoca.CompanyCodeCurrency AS CompanyCodeCurrency
INNER JOIN P_RO_SAFTJournalEntryItemExc ON /* join condition not captured in parsed metadata */
INNER JOIN I_RO_SAFTDocumentTypeMap AS DocType ON /* join condition not captured in parsed metadata */
INNER JOIN I_OperationalAcctgDocItem AS Bseg ON /* join condition not captured in parsed metadata */
INNER JOIN P_RO_SAFTOplAcctgDocItmExc ON /* join condition not captured in parsed metadata */
INNER JOIN P_RO_SAFTInvoiceItemCount ON /* join condition not captured in parsed metadata */
;