P_RU_PseudoReversedDocument1

DDL: P_RU_PSEUDOREVERSEDDOCUMENT1 SQL: PRUPREVERSEDDOC1 Type: view CONSUMPTION

P_RU_PseudoReversedDocument1 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_JournalEntry) and exposes 16 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntry I_JournalEntry from

Annotations (7)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName PRUPREVERSEDDOC1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
AccountingDocumentType AccountingDocumentType Journal Entry Type
PostingDate PostingDate Posting Date for GR
TaxReportingDate TaxReportingDate Tax Reporting Date
DocumentReferenceID DocumentReferenceID Reference
IsReversal
IsReversed
JrnlEntryCntrySpecificRef2 JrnlEntryCntrySpecificRef2 Country/Region Specific Reference 2
OriginalAccountingDocument
OriginalFiscalYear
SenderLogicalSystem SenderLogicalSystem Sender Logical System
SenderCompanyCode SenderCompanyCode Sender Company Code
SenderAccountingDocument SenderAccountingDocument Sender Journal Entry
SenderFiscalYear SenderFiscalYear Sender FiscalYr

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_RU_PseudoReversedDocument1.
-- 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: PRUPREVERSEDDOC1

CREATE VIEW P_RU_PseudoReversedDocument1 AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentType,
  PostingDate,
  TaxReportingDate,
  DocumentReferenceID,
  cast ('X' as fins_xreversing preserving type ) AS IsReversal,
  cast ('' as fins_xreversed preserving type ) AS IsReversed,
  JrnlEntryCntrySpecificRef2,
  substring(JrnlEntryCntrySpecificRef2, 5, 10) AS OriginalAccountingDocument,
  substring(JrnlEntryCntrySpecificRef2, 15, 4) AS OriginalFiscalYear,
  SenderLogicalSystem,
  SenderCompanyCode,
  SenderAccountingDocument,
  SenderFiscalYear
FROM I_JournalEntry
;