P_APInvoiceProcessingAnalysis5

DDL: P_APINVOICEPROCESSINGANALYSIS5 SQL: PFIAPINVPROALY5 Type: view COMPOSITE Package: FINS_FIS_AP_APPS

Invoice Processing Analysis

P_APInvoiceProcessingAnalysis5 is a Composite CDS View that provides data about "Invoice Processing Analysis" in SAP S/4HANA. It reads from 2 data sources (P_APInvoiceProcessingAnalysis3, P_APInvoiceProcessingAnalysis4) and exposes 19 fields with key fields CompanyCode, Supplier, PaymentBlockingReason, AccountingDocCreatedByUser, AccountingDocumentCategory. Part of development package FINS_FIS_AP_APPS.

Data Sources (2)

SourceAliasJoin Type
P_APInvoiceProcessingAnalysis3 P_APInvoiceProcessingAnalysis3 from
P_APInvoiceProcessingAnalysis4 P_APInvoiceProcessingAnalysis4 union_all

Parameters (2)

NameTypeDefault
P_KeyDate abap.dats
P_StartDate vdm_v_start_date

Annotations (6)

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

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY Supplier Supplier Supplier
KEY PaymentBlockingReason PaymentBlockingReason Pmnt block
KEY AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
KEY AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
KEY YearMonth YearMonth Year Month
KEY SupplierInvoiceStatus SupplierInvoiceStatus Inv. status
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency
P_StartDateP_StartDatekeyCompanyCode
KEY Supplier Supplier Supplier
KEY PaymentBlockingReason PaymentBlockingReason Pmnt block
KEY AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
KEY AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
KEY YearMonth YearMonth Year Month
KEY SupplierInvoiceStatus SupplierInvoiceStatus Inv. status
CompanyCodeCurrency CompanyCodeCurrency Local Currency
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_APInvoiceProcessingAnalysis5.
-- 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: PFIAPINVPROALY5
-- Parameters: P_KeyDate : abap.dats, P_StartDate : vdm_v_start_date

CREATE VIEW P_APInvoiceProcessingAnalysis5 AS
SELECT
  CompanyCode,
  Supplier,
  PaymentBlockingReason,
  AccountingDocCreatedByUser,
  AccountingDocumentCategory,
  YearMonth,
  SupplierInvoiceStatus,
  CompanyCodeCurrency,
  sum(AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
  sum(NumberOfItems) AS NumberOfItems
FROM P_APInvoiceProcessingAnalysis3
-- UNION ALL with additional select branch(es): P_APInvoiceProcessingAnalysis4
;