P_Pl_OverdueInvoicesHlp

DDL: P_PL_OVERDUEINVOICESHLP SQL: PSROVRDUEINVH Type: view CONSUMPTION

Helper view for Overdue Invoices

P_Pl_OverdueInvoicesHlp is a Consumption CDS View that provides data about "Helper view for Overdue Invoices" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 43 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Parameters (1)

NameTypeDefault
P_KeyDate fipl_keydate

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSROVRDUEINVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Helper view for Overdue Invoices view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
DocumentReferenceID _JournalEntry DocumentReferenceID Reference
AccountingDocumentType AccountingDocumentType Journal Entry Type
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
TaxReportingDate _JournalEntry TaxReportingDate Tax Reporting Date
Customer Customer Sold-to Party
CustomerName _Customer CustomerName Name of Customer
Supplier Supplier Supplier
SupplierName _Supplier SupplierName Supplier Name
DueCalculationBaseDate DueCalculationBaseDate Due Calculation Base Date
NetDueDate NetDueDate Net Due Date
PaymentTerms PaymentTerms Pyt Terms
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
NetPaymentDays NetPaymentDays Net Pmt Terms Period
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
GLAccount GLAccount General Ledger
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
TransactionCurrency TransactionCurrency Transaction Currency
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DebitCreditCode DebitCreditCode Single-Character Flag
TaxCode TaxCode Tax Code
DocumentItemText DocumentItemText Text
ClearingDate ClearingDate Clearing Date
IsCleared
NetDueDays
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_AccountingDocumentType _AccountingDocumentType
_DebitCreditCode _DebitCreditCode
_Customer _Customer
_Supplier _Supplier
_JournalEntry _JournalEntry
_TransactionCurrency _TransactionCurrency
_CompanyCodeCurrency _CompanyCodeCurrency
ChartOfAccounts I_OperationalAcctgDocItem ChartOfAccounts Node Class
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts

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_Pl_OverdueInvoicesHlp.
-- 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: PSROVRDUEINVH
-- Parameters: P_KeyDate : fipl_keydate

CREATE VIEW P_Pl_OverdueInvoicesHlp AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  AccountingDocumentItem,
  _JournalEntry.DocumentReferenceID AS DocumentReferenceID,
  AccountingDocumentType,
  DocumentDate,
  PostingDate,
  _JournalEntry.TaxReportingDate AS TaxReportingDate,
  Customer,
  _Customer.CustomerName AS CustomerName,
  Supplier,
  _Supplier.SupplierName AS SupplierName,
  DueCalculationBaseDate,
  NetDueDate,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  GLAccount,
  AmountInTransactionCurrency,
  AmountInCompanyCodeCurrency,
  TransactionCurrency,
  CompanyCodeCurrency,
  DebitCreditCode,
  TaxCode,
  DocumentItemText,
  ClearingDate,
  dats_is_valid( ClearingDate ) AS IsCleared,
  dats_days_between( DueCalculationBaseDate, NetDueDate ) AS NetDueDays,
  I_OperationalAcctgDocItem.ChartOfAccounts AS ChartOfAccounts
FROM I_OperationalAcctgDocItem
;