P_APInvoiceProcessingAnalysis4

DDL: P_APINVOICEPROCESSINGANALYSIS4 SQL: PFIAPINVPROALY4 Type: view COMPOSITE Package: FINS_FIS_AP_APPS

Invoice Processing Analysis

P_APInvoiceProcessingAnalysis4 is a Composite CDS View that provides data about "Invoice Processing Analysis" in SAP S/4HANA. It reads from 1 data source (I_ParkedPayablesItem) and exposes 14 fields with key fields CompanyCode, AccountingDocument, AccountingDocumentItem, FiscalYear. Part of development package FINS_FIS_AP_APPS.

Data Sources (1)

SourceAliasJoin Type
I_ParkedPayablesItem I_ParkedPayablesItem from

Parameters (2)

NameTypeDefault
P_KeyDate abap.dats
P_StartDate vdm_v_start_date

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PFIAPINVPROALY4 view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_ParkedPayablesItem CompanyCode Receiver Company Code
KEY AccountingDocument I_ParkedPayablesItem AccountingDocument Journal Entry
KEY AccountingDocumentItem I_ParkedPayablesItem AccountingDocumentItem Posting View Item
KEY FiscalYear I_ParkedPayablesItem FiscalYear G/L Fiscal Year
Supplier I_ParkedPayablesItem Creditor Supplier
PaymentBlockingReason I_ParkedPayablesItem PaymentBlockingReason Pmnt block
AccountingDocumentCategory _ParkedAccountingDocument AccountingDocumentCategory Journal Entry Category
AccountingDocCreatedByUser _ParkedAccountingDocument AccountingDocCreatedByUser User which created overhead document
CompanyCodeCurrency _ParkedAccountingDocument CompanyCodeCurrency Local Currency
PostingDate _ParkedAccountingDocument PostingDate Posting Date for GR
PostingDate52asYearMonth
SupplierInvoiceStatus
AmountInCompanyCodeCurrency
NumberOfItems

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_APInvoiceProcessingAnalysis4.
-- 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: PFIAPINVPROALY4
-- Parameters: P_KeyDate : abap.dats, P_StartDate : vdm_v_start_date

CREATE VIEW P_APInvoiceProcessingAnalysis4 AS
SELECT
  I_ParkedPayablesItem.CompanyCode AS CompanyCode,
  I_ParkedPayablesItem.AccountingDocument AS AccountingDocument,
  I_ParkedPayablesItem.AccountingDocumentItem AS AccountingDocumentItem,
  I_ParkedPayablesItem.FiscalYear AS FiscalYear,
  I_ParkedPayablesItem.Creditor AS Supplier,
  I_ParkedPayablesItem.PaymentBlockingReason AS PaymentBlockingReason,
  _ParkedAccountingDocument.AccountingDocumentCategory AS AccountingDocumentCategory,
  _ParkedAccountingDocument.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
  _ParkedAccountingDocument.CompanyCodeCurrency AS CompanyCodeCurrency,
  _ParkedAccountingDocument.PostingDate AS PostingDate,
  CONCAT( SUBSTRING(_ParkedAccountingDocument.PostingDate, 1, 4), SUBSTRING(_ParkedAccountingDocument.PostingDate, 5, 2) ) as YearMonth AS PostingDate52asYearMonth,
  'P' AS SupplierInvoiceStatus,
  cast(-I_ParkedPayablesItem.AmountInCompanyCodeCurrency as dmshb_farp) AS AmountInCompanyCodeCurrency,
  cast( 1 as abap.int4 ) AS NumberOfItems
FROM I_ParkedPayablesItem
;