P_Pl_OverdueInvoicesHlp
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)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | fipl_keydate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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