C_MX_JrnlEntrItmInvcDetailsC

DDL: C_MX_JRNLENTRITMINVCDETAILSC SQL: CMXJEINVDETC Type: view CONSUMPTION Package: GLO_FIN_IS_GL_MX_JE

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)

SourceAliasJoin Type
P_MX_JrnlEntrItmInvcCompType P_MX_JrnlEntrItmInvcCompType from
P_MX_JrnlEntryDistinctGLAcct P_MX_JrnlEntryDistinctGLAcct inner

Parameters (5)

NameTypeDefault
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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;