C_StRpOverdueInvoicesCube

DDL: C_STRPOVERDUEINVOICESCUBE SQL: CSROVRDUEINVC Type: view CONSUMPTION

Overdue Invoices Cube for Stat.Reporting

C_StRpOverdueInvoicesCube is a Consumption CDS View (Cube) that provides data about "Overdue Invoices Cube for Stat.Reporting" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 47 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem, StatryRptgEntity. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Parameters (1)

NameTypeDefault
P_KeyDate fipl_keydate

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_StRpJournalEntryLog _ReportedItemsLog _ReportedItemsLog.CompanyCode = $projection.CompanyCode and _ReportedItemsLog.AccountingDocument = $projection.AccountingDocument and _ReportedItemsLog.FiscalYear = $projection.FiscalYear
[0..1] I_DebitCreditCode _DebitCreditCode $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CSROVRDUEINVC view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Overdue Invoices Cube for Stat.Reporting view
Metadata.allowExtensions true view

Fields (47)

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
KEY StatryRptgEntity _ReportedItemsLog StatryRptgEntity Reporting Entity
KEY StatryRptCategory _ReportedItemsLog StatryRptCategory Report ID
KEY StatryRptRunID _ReportedItemsLog StatryRptRunID Report Run ID
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
_ReportedItemsLog _ReportedItemsLog
_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 C_StRpOverdueInvoicesCube.
-- 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: CSROVRDUEINVC
-- Parameters: P_KeyDate : fipl_keydate

CREATE VIEW C_StRpOverdueInvoicesCube AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  AccountingDocumentItem,
  _ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
  _ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
  _ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
  _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
LEFT OUTER JOIN I_StRpJournalEntryLog AS _ReportedItemsLog ON _ReportedItemsLog.CompanyCode = CompanyCode AND _ReportedItemsLog.AccountingDocument = AccountingDocument AND _ReportedItemsLog.FiscalYear = FiscalYear  -- association [0..*]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditCode ON DebitCreditCode = _DebitCreditCode.DebitCreditCode  -- association [0..1]
;