P_MX_GLAcctWithJournalEntry
P_MX_GLAcctWithJournalEntry is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 15 fields with key fields HierarchyNodeUniqueID, FinancialStatementVariant, ChartOfAccounts, CompanyCode, AccountingDocument. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | JournalEntryItem | inner |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to | |
| P_AlternativeGLAccount | figlmx_prim | |
| P_FiscalYear | fis_gjahr |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_JournalEntry | _JournalEntry | $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument |
| [0..1] | I_FiscalYearForCompanyCode | _FiscalYear | $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode |
| [1..1] | I_Ledger | _Ledger | $projection.Ledger = _Ledger.Ledger |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMXGLACCTJRNL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #P | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyNodeUniqueID | FSV | HierarchyNodeUniqueID | |
| KEY | FinancialStatementVariant | FSV | FinancialStatementVariant | |
| KEY | ChartOfAccounts | FSV | ChartOfAccounts | Node Class |
| KEY | CompanyCode | FSV | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_GLAccountLineItemRawData | AccountingDocument | Journal Entry |
| KEY | FiscalYear | |||
| KEY | Ledger | I_GLAccountLineItemRawData | SourceLedger | Source Ledger |
| KEY | GLAccount | FSV | GLAccount | General Ledger |
| OperationalGLAccount | FSV | OperationalGLAccount | Operational G/L Acct | |
| OperationalChartOfAccounts | FSV | OperationalChartOfAccounts | ||
| JrnlEntryItemMigrationSource | I_GLAccountLineItemRawData | JrnlEntryItemMigrationSource | Migr. Source | |
| _GLAccountInChartOfAccounts | FSV | _GLAccountInChartOfAccounts | ||
| _JournalEntry | _JournalEntry | |||
| _FiscalYear | _FiscalYear | |||
| _Ledger | _Ledger |
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_MX_GLAcctWithJournalEntry.
-- 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: PMXGLACCTJRNL
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_AlternativeGLAccount : figlmx_prim, P_FiscalYear : fis_gjahr
CREATE VIEW P_MX_GLAcctWithJournalEntry AS
SELECT
FSV.HierarchyNodeUniqueID AS HierarchyNodeUniqueID,
FSV.FinancialStatementVariant AS FinancialStatementVariant,
FSV.ChartOfAccounts AS ChartOfAccounts,
FSV.CompanyCode AS CompanyCode,
JournalEntryItem.AccountingDocument AS AccountingDocument,
cast( JournalEntryItem.FiscalYear as fis_gjahr_no_conv preserving type ) AS FiscalYear,
JournalEntryItem.SourceLedger AS Ledger,
FSV.GLAccount AS GLAccount,
FSV.OperationalGLAccount AS OperationalGLAccount,
FSV.OperationalChartOfAccounts AS OperationalChartOfAccounts,
JournalEntryItem.JrnlEntryItemMigrationSource AS JrnlEntryItemMigrationSource,
FSV._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts
INNER JOIN I_GLAccountLineItemRawData AS JournalEntryItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument -- association [1..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger -- association [1..1]
;
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