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

P_CO_DIANJrnlEntrWthInvcFinDoc

DDL: P_CO_DIANJRNLENTRWTHINVCFINDOC SQL: PSRCOJRNLWINVCFD Type: view CONSUMPTION

P_CO_DIANJrnlEntrWthInvcFinDoc is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_CO_DIANGeneralLedgerAccount, I_CO_DIANItemType, I_JournalEntryItem) and exposes 11 fields with key fields Ledger, CompanyCode, FiscalYear, AccountingDocument, CO_DIANReportFormat.

Data Sources (3)

SourceAliasJoin Type
I_CO_DIANGeneralLedgerAccount DIAN_GLAccount inner
I_CO_DIANItemType DIANItemType inner
I_JournalEntryItem InvoiceFinDocument left_outer

Parameters (2)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSRCOJRNLWINVCFD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
VDM.viewType #CONSUMPTION 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_DIANFrmt1001WhldgTaxItem view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY Ledger JournalEntryItem Ledger Ledger
KEY CompanyCode JournalEntryItem CompanyCode Receiver Company Code
KEY FiscalYear
KEY AccountingDocument JournalEntryItem AccountingDocument Journal Entry
KEY CO_DIANReportFormat I_CO_DIANGeneralLedgerAccount CO_DIANReportFormat Report Format
KEY CO_DIANReportItemType I_CO_DIANGeneralLedgerAccount CO_DIANReportItemType Item Type
KEY IncgInvoiceAccountingDocument I_JournalEntryItem AccountingDocument Journal Entry
_Ledger JournalEntryItem _Ledger
_CompanyCode JournalEntryItem _CompanyCode
_FiscalYear JournalEntryItem _FiscalYear
_JournalEntry JournalEntryItem _JournalEntry

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

CREATE VIEW P_CO_DIANJrnlEntrWthInvcFinDoc AS
SELECT
  JournalEntryItem.Ledger AS Ledger,
  JournalEntryItem.CompanyCode AS CompanyCode,
  cast( JournalEntryItem.FiscalYear as fis_gjahr_no_conv preserving type ) AS FiscalYear,
  JournalEntryItem.AccountingDocument AS AccountingDocument,
  DIAN_GLAccount.CO_DIANReportFormat AS CO_DIANReportFormat,
  DIAN_GLAccount.CO_DIANReportItemType AS CO_DIANReportItemType,
  InvoiceFinDocument.AccountingDocument AS IncgInvoiceAccountingDocument,
  JournalEntryItem._Ledger AS _Ledger,
  JournalEntryItem._CompanyCode AS _CompanyCode,
  JournalEntryItem._FiscalYear AS _FiscalYear,
  JournalEntryItem._JournalEntry AS _JournalEntry
INNER JOIN I_CO_DIANGeneralLedgerAccount AS DIAN_GLAccount ON /* join condition not captured in parsed metadata */
INNER JOIN I_CO_DIANItemType AS DIANItemType ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_JournalEntryItem AS InvoiceFinDocument ON /* join condition not captured in parsed metadata */
;