P_PE_FISlsEntrWthOriginalDoc
Peru Sales Entry from FI with Original Document
P_PE_FISlsEntrWthOriginalDoc is a Consumption CDS View that provides data about "Peru Sales Entry from FI with Original Document" in SAP S/4HANA. It reads from 3 data sources (I_GLAccountLineItemRawData, I_JournalEntry, I_StRpJournalEntryHeaderLog) and exposes 21 fields with key fields CompanyCode, FiscalYear, AccountingDocument, StatryRptCategory, StatryRptgEntity. Part of development package GLO_FIN_IS_PE.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | GLAccountLineItem | inner |
| I_JournalEntry | JournalEntry | from |
| I_StRpJournalEntryHeaderLog | StRpLog | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_JournalEntry | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_JournalEntry | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_JournalEntry | AccountingDocument | Journal Entry |
| KEY | StatryRptCategory | I_StRpJournalEntryHeaderLog | StatryRptCategory | Report ID |
| KEY | StatryRptgEntity | I_StRpJournalEntryHeaderLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptRunID | I_StRpJournalEntryHeaderLog | StatryRptRunID | Report Run ID |
| KEY | Ledger | I_GLAccountLineItemRawData | SourceLedger | Source Ledger |
| FiscalPeriod | I_JournalEntry | FiscalPeriod | Tax period | |
| DocumentDate | I_JournalEntry | DocumentDate | Journal Entry Date | |
| PostingDate | I_JournalEntry | PostingDate | Posting Date for GR | |
| AccountingDocumentType | I_JournalEntry | AccountingDocumentType | Journal Entry Type | |
| IsReversed | I_JournalEntry | IsReversed | Reversed? | |
| OriginalReferenceDocument | I_JournalEntry | OriginalReferenceDocument | Reference Key | |
| DocumentReferenceID | I_JournalEntry | DocumentReferenceID | Reference | |
| ExchangeRate | I_JournalEntry | AbsoluteExchangeRate | Absolute Exchange Rate | |
| CompanyCodeCurrency | I_JournalEntry | CompanyCodeCurrency | Local Currency | |
| TransactionCurrency | I_JournalEntry | TransactionCurrency | Transaction Currency | |
| Customer | I_GLAccountLineItemRawData | Customer | Sold-to Party | |
| DocumentNetDueDate | ||||
| PE_OriginalDocumentDate | ||||
| OriginalDocumentReferenceID |
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_PE_FISlsEntrWthOriginalDoc.
-- 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.
CREATE VIEW P_PE_FISlsEntrWthOriginalDoc AS
SELECT
JournalEntry.CompanyCode AS CompanyCode,
JournalEntry.FiscalYear AS FiscalYear,
JournalEntry.AccountingDocument AS AccountingDocument,
StRpLog.StatryRptCategory AS StatryRptCategory,
StRpLog.StatryRptgEntity AS StatryRptgEntity,
StRpLog.StatryRptRunID AS StatryRptRunID,
GLAccountLineItem.SourceLedger AS Ledger,
JournalEntry.FiscalPeriod AS FiscalPeriod,
JournalEntry.DocumentDate AS DocumentDate,
JournalEntry.PostingDate AS PostingDate,
JournalEntry.AccountingDocumentType AS AccountingDocumentType,
JournalEntry.IsReversed AS IsReversed,
JournalEntry.OriginalReferenceDocument AS OriginalReferenceDocument,
JournalEntry.DocumentReferenceID AS DocumentReferenceID,
JournalEntry.AbsoluteExchangeRate AS ExchangeRate,
JournalEntry.CompanyCodeCurrency AS CompanyCodeCurrency,
JournalEntry.TransactionCurrency AS TransactionCurrency,
GLAccountLineItem.Customer AS Customer,
cast(min(GLAccountLineItem.NetDueDate) as faedt_fpos preserving type) AS DocumentNetDueDate,
cast( coalesce( InvoiceReference.DocumentDate, OriginalJournalEntry.DocumentDate ) as fipe_original_document_date preserving type) AS PE_OriginalDocumentDate,
cast( coalesce( InvoiceReference.DocumentReferenceID, OriginalJournalEntry.DocumentReferenceID ) as fis_xblnr1 preserving type ) AS OriginalDocumentReferenceID
FROM I_JournalEntry AS JournalEntry
INNER JOIN I_StRpJournalEntryHeaderLog AS StRpLog ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAccountLineItemRawData AS GLAccountLineItem ON /* join condition not captured in parsed metadata */
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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