P_RU_PseudoReversedDocument1
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)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | I_JournalEntry | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | FiscalYear | FiscalYear | ||
| AccountingDocumentType | AccountingDocumentType | |||
| PostingDate | PostingDate | |||
| TaxReportingDate | TaxReportingDate | |||
| DocumentReferenceID | DocumentReferenceID | |||
| IsReversal | ||||
| IsReversed | ||||
| JrnlEntryCntrySpecificRef2 | JrnlEntryCntrySpecificRef2 | |||
| OriginalAccountingDocument | ||||
| OriginalFiscalYear | ||||
| SenderLogicalSystem | SenderLogicalSystem | |||
| SenderCompanyCode | SenderCompanyCode | |||
| SenderAccountingDocument | SenderAccountingDocument | |||
| SenderFiscalYear | SenderFiscalYear |
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'PRUPREVERSEDDOC1'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
define view P_RU_PseudoReversedDocument1
as select from I_JournalEntry
{
key CompanyCode,
key AccountingDocument,
key 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
}
where
JrnlEntryCntrySpecificRef2 like 'NEG^%'
and IsReversal = ''
and IsReversed = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRY"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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