Deprecated
This CDS view is deprecated in S/4HANA. Use P_CO_DIANFrmt1001JrnlEntrOplVw instead. View all deprecated CDS views →

P_CO_DIANInvoiceFinDocument

DDL: P_CO_DIANINVOICEFINDOCUMENT SQL: PSRCOINVFINDOC Type: view CONSUMPTION Package: GLO_FIN_IS_CO_DEPREC

DEPRECATED - DO NOT USE!

P_CO_DIANInvoiceFinDocument is a Consumption CDS View that provides data about "DEPRECATED - DO NOT USE!" in SAP S/4HANA. It reads from 2 data sources (I_JournalEntryItem, I_StRpJournalEntryLog) and exposes 16 fields with key fields SourceLedger, Ledger, CompanyCode, FiscalYear, AccountingDocument. Part of development package GLO_FIN_IS_CO_DEPREC.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntryItem JournalEntryItem from
I_StRpJournalEntryLog ReportedItemsLog inner

Parameters (2)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSRCOINVFINDOC view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor P_CO_DIANFrmt1001JrnlEntrOplVw view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger I_JournalEntryItem SourceLedger Source Ledger
KEY Ledger I_JournalEntryItem Ledger Ledger
KEY CompanyCode I_JournalEntryItem CompanyCode Receiver Company Code
KEY FiscalYear
KEY AccountingDocument I_JournalEntryItem AccountingDocument Journal Entry
KEY PurchasingDocument I_JournalEntryItem PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_JournalEntryItem PurchasingDocumentItem Purchasing Doc. Item
StatryRptCategory I_StRpJournalEntryLog StatryRptCategory Report ID
StatryRptgEntity I_StRpJournalEntryLog StatryRptgEntity Reporting Entity
StatryRptRunID I_StRpJournalEntryLog StatryRptRunID Report Run ID
_Ledger I_JournalEntryItem _Ledger
_CompanyCode I_JournalEntryItem _CompanyCode
_FiscalYear I_JournalEntryItem _FiscalYear
_JournalEntry I_JournalEntryItem _JournalEntry
_PurchasingDocument I_JournalEntryItem _PurchasingDocument
_PurchasingDocumentItem I_JournalEntryItem _PurchasingDocumentItem

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_CO_DIANInvoiceFinDocument.
-- 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: PSRCOINVFINDOC
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to

CREATE VIEW P_CO_DIANInvoiceFinDocument AS
SELECT
  JournalEntryItem.SourceLedger AS SourceLedger,
  JournalEntryItem.Ledger AS Ledger,
  JournalEntryItem.CompanyCode AS CompanyCode,
  cast( JournalEntryItem.FiscalYear as fis_gjahr_no_conv preserving type ) AS FiscalYear,
  JournalEntryItem.AccountingDocument AS AccountingDocument,
  JournalEntryItem.PurchasingDocument AS PurchasingDocument,
  JournalEntryItem.PurchasingDocumentItem AS PurchasingDocumentItem,
  ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
  ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
  ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
  JournalEntryItem._Ledger AS _Ledger,
  JournalEntryItem._CompanyCode AS _CompanyCode,
  JournalEntryItem._FiscalYear AS _FiscalYear,
  JournalEntryItem._JournalEntry AS _JournalEntry,
  JournalEntryItem._PurchasingDocument AS _PurchasingDocument,
  JournalEntryItem._PurchasingDocumentItem AS _PurchasingDocumentItem
FROM I_JournalEntryItem AS JournalEntryItem
INNER JOIN I_StRpJournalEntryLog AS ReportedItemsLog ON /* join condition not captured in parsed metadata */
;