C_MX_JrnlEntrItmInvcDetailsC
Journal Entries Items with Invoices Cube
C_MX_JrnlEntrItmInvcDetailsC is a Consumption CDS View (Cube) that provides data about "Journal Entries Items with Invoices Cube" in SAP S/4HANA. It reads from 2 data sources (P_MX_JrnlEntrItmInvcCompType, P_MX_JrnlEntryDistinctGLAcct) and exposes 26 fields with key fields SourceLedger, Ledger, CompanyCode, AccountingDocument, FiscalYear. Part of development package GLO_FIN_IS_GL_MX_JE.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_MX_JrnlEntrItmInvcCompType | P_MX_JrnlEntrItmInvcCompType | from |
| P_MX_JrnlEntryDistinctGLAcct | P_MX_JrnlEntryDistinctGLAcct | inner |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_AlternativeGLAccount | figlmx_prim | |
| P_Ledger | fins_ledger | |
| P_FiscalYear | fis_gjahr_no_conv | |
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMXJEINVDETC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Journal Entries Items with Invoices Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | JournalEntryWithCompType | SourceLedger | Source Ledger |
| KEY | Ledger | JournalEntryWithCompType | Ledger | Ledger |
| KEY | CompanyCode | JournalEntryWithCompType | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | JournalEntryWithCompType | AccountingDocument | Journal Entry |
| KEY | FiscalYear | JournalEntryWithCompType | FiscalYear | G/L Fiscal Year |
| KEY | GLAccount | P_MX_JrnlEntryDistinctGLAcct | GLAccount | General Ledger |
| KEY | DocumentItemText | P_MX_JrnlEntryDistinctGLAcct | DocumentItemText | Text |
| KEY | StatryRptCategory | JournalEntryWithCompType | StatryRptCategory | Report ID |
| KEY | StatryRptgEntity | JournalEntryWithCompType | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptRunID | JournalEntryWithCompType | StatryRptRunID | Report Run ID |
| ClearingAccountingDocument | ||||
| DocumentReferenceID | JournalEntryWithCompType | DocumentReferenceID | Reference | |
| ElectronicInvoiceUUID | JournalEntryWithCompType | ElectronicInvoiceUUID | Mexico UUID | |
| Country | ||||
| TaxNumber1 | JournalEntryWithCompType | TaxNumber1 | VAT Reg. No. | |
| InvoiceReferenceFiscalYear | ||||
| AccountingDocumentType | ||||
| Supplier | ||||
| Customer | ||||
| FinancialAccountType | ||||
| ClearingDate | ||||
| PostingDate | ||||
| AmountInTransactionCurrency | ||||
| TransactionCurrency | JournalEntryWithCompType | TransactionCurrency | Transaction Currency | |
| ExchangeRate | ||||
| LedgerGLLineItem |
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 C_MX_JrnlEntrItmInvcDetailsC.
-- 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: CMXJEINVDETC
-- Parameters: P_AlternativeGLAccount : figlmx_prim, P_Ledger : fins_ledger, P_FiscalYear : fis_gjahr_no_conv, P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to
CREATE VIEW C_MX_JrnlEntrItmInvcDetailsC AS
SELECT
JournalEntryWithCompType.SourceLedger AS SourceLedger,
JournalEntryWithCompType.Ledger AS Ledger,
JournalEntryWithCompType.CompanyCode AS CompanyCode,
JournalEntryWithCompType.AccountingDocument AS AccountingDocument,
JournalEntryWithCompType.FiscalYear AS FiscalYear,
P_MX_JrnlEntryDistinctGLAcct.GLAccount AS GLAccount,
P_MX_JrnlEntryDistinctGLAcct.DocumentItemText AS DocumentItemText,
JournalEntryWithCompType.StatryRptCategory AS StatryRptCategory,
JournalEntryWithCompType.StatryRptgEntity AS StatryRptgEntity,
JournalEntryWithCompType.StatryRptRunID AS StatryRptRunID,
cast ('' as augbl ) AS ClearingAccountingDocument,
JournalEntryWithCompType.DocumentReferenceID AS DocumentReferenceID,
JournalEntryWithCompType.ElectronicInvoiceUUID AS ElectronicInvoiceUUID,
cast ('' as land1 ) AS Country,
JournalEntryWithCompType.TaxNumber1 AS TaxNumber1,
cast ('0000' as fis_gjahr_no_conv preserving type ) AS InvoiceReferenceFiscalYear,
cast ('' as blart ) AS AccountingDocumentType,
cast ('' as lifnr ) AS Supplier,
cast ('' as kunnr ) AS Customer,
'' AS FinancialAccountType,
cast ('00000000' as augdt ) AS ClearingDate,
cast ('00000000' as budat ) AS PostingDate,
abs(cast(sum( JournalEntryWithCompType.AmountInTransactionCurrency ) as fis_wsl preserving type ) ) AS AmountInTransactionCurrency,
JournalEntryWithCompType.TransactionCurrency AS TransactionCurrency,
cast(JournalEntryWithCompType.ExchangeRate as abap.dec(9,5)) AS ExchangeRate,
'' AS LedgerGLLineItem
FROM P_MX_JrnlEntrItmInvcCompType
INNER JOIN P_MX_JrnlEntryDistinctGLAcct 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