P_APInvoiceProcessingAnalysis1

DDL: P_APINVOICEPROCESSINGANALYSIS1 SQL: PFIAPINVPROALY1 Type: view COMPOSITE Package: FINS_FIS_AP_APPS

Invoice Processing Analysis

P_APInvoiceProcessingAnalysis1 is a Composite CDS View that provides data about "Invoice Processing Analysis" in SAP S/4HANA. It reads from 1 data source (I_ReceivablesPayablesItem) and exposes 13 fields with key fields CompanyCode, AccountingDocument, AccountingDocumentItem, FiscalYear. It has 1 association to related views. Part of development package FINS_FIS_AP_APPS.

Data Sources (1)

SourceAliasJoin Type
I_ReceivablesPayablesItem I_ReceivablesPayablesItem from

Parameters (2)

NameTypeDefault
P_KeyDate abap.dats
P_StartDate vdm_v_start_date

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_AccountingDocument _AccountingDocument I_ReceivablesPayablesItem.AccountingDocument = _AccountingDocument.AccountingDocument and I_ReceivablesPayablesItem.CompanyCode = _AccountingDocument.CompanyCode and I_ReceivablesPayablesItem.FiscalYear = _AccountingDocument.FiscalYear

Annotations (6)

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

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_ReceivablesPayablesItem CompanyCode Receiver Company Code
KEY AccountingDocument I_ReceivablesPayablesItem AccountingDocument Journal Entry
KEY AccountingDocumentItem I_ReceivablesPayablesItem AccountingDocumentItem Posting View Item
KEY FiscalYear I_ReceivablesPayablesItem FiscalYear G/L Fiscal Year
Supplier I_ReceivablesPayablesItem Creditor Supplier
PaymentBlockingReason I_ReceivablesPayablesItem PaymentBlockingReason Pmnt block
AccountingDocumentCategory I_ReceivablesPayablesItem AccountingDocumentCategory Journal Entry Category
AccountingDocCreatedByUser _AccountingDocument AccountingDocCreatedByUser User which created overhead document
CompanyCodeCurrency I_ReceivablesPayablesItem CompanyCodeCurrency Local Currency
PostingDate I_ReceivablesPayablesItem PostingDate Posting Date for GR
ClearingDate I_ReceivablesPayablesItem ClearingDate Clearing Date
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_APInvoiceProcessingAnalysis1.
-- 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: PFIAPINVPROALY1
-- Parameters: P_KeyDate : abap.dats, P_StartDate : vdm_v_start_date

CREATE VIEW P_APInvoiceProcessingAnalysis1 AS
SELECT
  I_ReceivablesPayablesItem.CompanyCode AS CompanyCode,
  I_ReceivablesPayablesItem.AccountingDocument AS AccountingDocument,
  I_ReceivablesPayablesItem.AccountingDocumentItem AS AccountingDocumentItem,
  I_ReceivablesPayablesItem.FiscalYear AS FiscalYear,
  I_ReceivablesPayablesItem.Creditor AS Supplier,
  I_ReceivablesPayablesItem.PaymentBlockingReason AS PaymentBlockingReason,
  I_ReceivablesPayablesItem.AccountingDocumentCategory AS AccountingDocumentCategory,
  _AccountingDocument.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
  I_ReceivablesPayablesItem.CompanyCodeCurrency AS CompanyCodeCurrency,
  I_ReceivablesPayablesItem.PostingDate AS PostingDate,
  I_ReceivablesPayablesItem.ClearingDate AS ClearingDate,
  cast(-I_ReceivablesPayablesItem.AmountInCompanyCodeCurrency as dmshb_farp) AS AmountInCompanyCodeCurrency,
  cast( 1 as abap.int4 ) AS NumberOfItems
FROM I_ReceivablesPayablesItem
LEFT OUTER JOIN I_AccountingDocument AS _AccountingDocument ON I_ReceivablesPayablesItem.AccountingDocument = _AccountingDocument.AccountingDocument AND I_ReceivablesPayablesItem.CompanyCode = _AccountingDocument.CompanyCode AND I_ReceivablesPayablesItem.FiscalYear = _AccountingDocument.FiscalYear  -- association [0..1]
;