P_CO_DIANInvoiceFinDocument
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)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | JournalEntryItem | from |
| I_StRpJournalEntryLog | ReportedItemsLog | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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