P_APInvoiceProcessingTime6
Accounts Payable. Invoice Processing Time
P_APInvoiceProcessingTime6 is a Composite CDS View that provides data about "Accounts Payable. Invoice Processing Time" in SAP S/4HANA. It reads from 1 data source (P_APInvoiceProcessingTime5) and exposes 16 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. Part of development package FINS_FIS_AP_APPS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_APInvoiceProcessingTime5 | P_APInvoiceProcessingTime5 | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_TodayDate | sydate | |
| P_OverdueInterval1Days | farp_overdue_interval1 | |
| P_OverdueInterval2Days | farp_overdue_interval2 | |
| P_PostingDelayDesc | farp_posting_delay_desc | |
| P_PaymentDelayDesc | farp_payment_delay_desc |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIAPINVPROTIME6 | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| ClearingDate | ClearingDate | Clearing Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| DueDate | DueDate | Promised For | ||
| DelayType | DelayType | |||
| TotalAmount | TotalAmount | Total Rate | ||
| Supplier | Supplier | Supplier | ||
| CashDiscAmtLostInTransacCrcy | CashDiscAmtLostInTransacCrcy | |||
| int4else0endasPostDelayInvoiceNo | ||||
| int4else0endasClearDelayInvoiceNo | ||||
| PostingDelayDesc | ||||
| PaymentDelayDesc |
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_APInvoiceProcessingTime6.
-- 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: PFIAPINVPROTIME6
-- Parameters: P_TodayDate : sydate, P_OverdueInterval1Days : farp_overdue_interval1, P_OverdueInterval2Days : farp_overdue_interval2, P_PostingDelayDesc : farp_posting_delay_desc, P_PaymentDelayDesc : farp_payment_delay_desc
CREATE VIEW P_APInvoiceProcessingTime6 AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
AccountingDocumentItem,
ClearingDate,
PostingDate,
TransactionCurrency,
DueDate,
DelayType,
TotalAmount,
Supplier,
CashDiscAmtLostInTransacCrcy,
(case when DueDate < PostingDate then cast(1 as abap.int4) else 0 end) as PostDelayInvoiceNo AS int4else0endasPostDelayInvoiceNo,
(case when DueDate >= PostingDate then cast(1 as abap.int4) else 0 end) as ClearDelayInvoiceNo AS int4else0endasClearDelayInvoiceNo,
:P_PostingDelayDesc AS PostingDelayDesc,
:P_PaymentDelayDesc AS PaymentDelayDesc
FROM P_APInvoiceProcessingTime5
;
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