P_APInvoiceProcessingAnalysis1
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)
| Source | Alias | Join Type |
|---|---|---|
| I_ReceivablesPayablesItem | I_ReceivablesPayablesItem | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | abap.dats | |
| P_StartDate | vdm_v_start_date |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_AccountingDocument | _AccountingDocument | I_ReceivablesPayablesItem.AccountingDocument = _AccountingDocument.AccountingDocument and I_ReceivablesPayablesItem.CompanyCode = _AccountingDocument.CompanyCode and I_ReceivablesPayablesItem.FiscalYear = _AccountingDocument.FiscalYear |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA