P_PE_JournalEntryFSStructure2

DDL: P_PE_JOURNALENTRYFSSTRUCTURE2 SQL: PPEJRNLEFSS2 Type: view CONSUMPTION

P_PE_JournalEntryFSStructure2 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_FinancialStatementStructure, I_JournalEntryItem) and exposes 7 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger, FinancialStatementHierarchy.

Data Sources (2)

SourceAliasJoin Type
I_FinancialStatementStructure FinancialStatement from
I_JournalEntryItem JournalEntryItem inner

Parameters (4)

NameTypeDefault
P_CompanyCode fis_bukrs
P_FiscalYear fis_gjahr_no_conv
P_Ledger rldnr
P_FinancialStatementHierarchy hryid

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PPEJRNLEFSS2 view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntryItem CompanyCode Receiver Company Code
KEY FiscalYear I_JournalEntryItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_JournalEntryItem AccountingDocument Journal Entry
KEY Ledger I_JournalEntryItem Ledger Ledger
KEY FinancialStatementHierarchy I_FinancialStatementStructure FinancialStatementHierarchy Hierarchy ID
KEY GLAccount I_JournalEntryItem GLAccount General Ledger
AmountInTransactionCurrency

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_JournalEntryFSStructure2.
-- 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: PPEJRNLEFSS2
-- Parameters: P_CompanyCode : fis_bukrs, P_FiscalYear : fis_gjahr_no_conv, P_Ledger : rldnr, P_FinancialStatementHierarchy : hryid

CREATE VIEW P_PE_JournalEntryFSStructure2 AS
SELECT
  JournalEntryItem.CompanyCode AS CompanyCode,
  JournalEntryItem.FiscalYear AS FiscalYear,
  JournalEntryItem.AccountingDocument AS AccountingDocument,
  JournalEntryItem.Ledger AS Ledger,
  FinancialStatement.FinancialStatementHierarchy AS FinancialStatementHierarchy,
  JournalEntryItem.GLAccount AS GLAccount,
  max( JournalEntryItem.AmountInTransactionCurrency ) AS AmountInTransactionCurrency
FROM I_FinancialStatementStructure AS FinancialStatement
INNER JOIN I_JournalEntryItem AS JournalEntryItem ON /* join condition not captured in parsed metadata */
;