P_APInvoiceProcessingTime5
Accounts Payable. Invoice Processing Time
P_APInvoiceProcessingTime5 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_APInvoiceProcessingTime4) and exposes 35 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. Part of development package FINS_FIS_AP_APPS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_APInvoiceProcessingTime4 | P_APInvoiceProcessingTime4 | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_TodayDate | sydate |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIAPINVPROTIME5 | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (35)
| 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 | ||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| IsSalesRelated | IsSalesRelated | Is Sales Related | ||
| DueCalculationBaseDate | DueCalculationBaseDate | Due Calculation Base Date | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount1Days_t | CashDiscount1Days_t | |||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days_t | CashDiscount2Days_t | |||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| CashDiscountBaseAmount | CashDiscountBaseAmount | Cash Dscnt Base Amt | ||
| CashDiscountBaseAmount_t | CashDiscountBaseAmount_t | |||
| CashDiscountAmount_t | CashDiscountAmount_t | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| Supplier | Supplier | Supplier | ||
| FixedCashDiscount | FixedCashDiscount | Fixed Cash Discount | ||
| FixedCashDiscount_t | FixedCashDiscount_t | |||
| APARToleranceGroup | APARToleranceGroup | Tolerance Group | ||
| TotalAmount | TotalAmount | Total Rate | ||
| ClearingYear | ClearingYear | |||
| CashDiscFixedAmtInTransacCrcy | CashDiscFixedAmtInTransacCrcy | |||
| CshDiscOfferedAmtInTransacCrcy | CshDiscOfferedAmtInTransacCrcy | |||
| DueDate | DueDate | Promised For | ||
| PostingDateOffset | ||||
| ClearingDateOffset |
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_APInvoiceProcessingTime5.
-- 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: PFIAPINVPROTIME5
-- Parameters: P_TodayDate : sydate
CREATE VIEW P_APInvoiceProcessingTime5 AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
AccountingDocumentItem,
ClearingDate,
ClearingAccountingDocument,
FinancialAccountType,
SpecialGLCode,
DebitCreditCode,
AmountInTransactionCurrency,
IsSalesRelated,
DueCalculationBaseDate,
CashDiscount1Days,
CashDiscount1Days_t,
CashDiscount2Days,
CashDiscount2Days_t,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
CashDiscountBaseAmount,
CashDiscountBaseAmount_t,
CashDiscountAmount_t,
PostingDate,
TransactionCurrency,
Supplier,
FixedCashDiscount,
FixedCashDiscount_t,
APARToleranceGroup,
TotalAmount,
ClearingYear,
CashDiscFixedAmtInTransacCrcy,
CshDiscOfferedAmtInTransacCrcy,
DueDate,
abs(dats_days_between(DueDate, PostingDate)) AS PostingDateOffset,
abs(dats_days_between(DueDate, ClearingDate)) AS ClearingDateOffset
FROM P_APInvoiceProcessingTime4
;
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