P_APInvoiceProcessingAnalysis2

DDL: P_APINVOICEPROCESSINGANALYSIS2 SQL: PFIAPINVPROALY2 Type: view COMPOSITE Package: FINS_FIS_AP_APPS

Invoice Processing Analysis

P_APInvoiceProcessingAnalysis2 is a Composite CDS View that provides data about "Invoice Processing Analysis" in SAP S/4HANA. It reads from 1 data source (P_APInvoiceProcessingAnalysis1) and exposes 10 fields with key fields CompanyCode, Supplier, PaymentBlockingReason, AccountingDocCreatedByUser, AccountingDocumentCategory. Part of development package FINS_FIS_AP_APPS.

Data Sources (1)

SourceAliasJoin Type
P_APInvoiceProcessingAnalysis1 P_APInvoiceProcessingAnalysis1 from

Parameters (2)

NameTypeDefault
P_KeyDate abap.dats
P_StartDate vdm_v_start_date

Annotations (6)

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

Fields (10)

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 PostingDate PostingDate Posting Date for GR
KEY ClearingDate ClearingDate Clearing Date
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_APInvoiceProcessingAnalysis2.
-- 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: PFIAPINVPROALY2
-- Parameters: P_KeyDate : abap.dats, P_StartDate : vdm_v_start_date

CREATE VIEW P_APInvoiceProcessingAnalysis2 AS
SELECT
  CompanyCode,
  Supplier,
  PaymentBlockingReason,
  AccountingDocCreatedByUser,
  AccountingDocumentCategory,
  PostingDate,
  ClearingDate,
  CompanyCodeCurrency,
  sum(AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
  sum(NumberOfItems) AS NumberOfItems
FROM P_APInvoiceProcessingAnalysis1
;