P_APInvoiceProcessingTime6

DDL: P_APINVOICEPROCESSINGTIME6 SQL: PFIAPINVPROTIME6 Type: view COMPOSITE Package: FINS_FIS_AP_APPS

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)

SourceAliasJoin Type
P_APInvoiceProcessingTime5 P_APInvoiceProcessingTime5 from

Parameters (5)

NameTypeDefault
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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;