C_MX_JrnlEntrAuxFrgnCompnDets

DDL: C_MX_JRNLENTRAUXFRGNCOMPNDETS SQL: CMXJEAUXFRGNCOMP Type: view CONSUMPTION Package: GLO_FIN_IS_GL_MX_JE

MX Folios Foreign Compensation Details

C_MX_JrnlEntrAuxFrgnCompnDets is a Consumption CDS View that provides data about "MX Folios Foreign Compensation Details" in SAP S/4HANA. It reads from 2 data sources (P_MX_JrnlEntrForeignCompDets, P_MX_JrnlEntryDistinctGLAcct) and exposes 15 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_JrnlEntrForeignCompDets P_MX_JrnlEntrForeignCompDets 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 (11)

NameValueLevelField
AbapCatalog.sqlViewName CMXJEAUXFRGNCOMP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label MX Folios Foreign Compensation Details view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger JournalEntryItem SourceLedger Source Ledger
KEY Ledger JournalEntryItem Ledger Ledger
KEY CompanyCode JournalEntryItem CompanyCode Receiver Company Code
KEY AccountingDocument JournalEntryItem AccountingDocument Journal Entry
KEY FiscalYear JournalEntryItem FiscalYear G/L Fiscal Year
KEY GLAccount DistinctGLAccount GLAccount General Ledger
KEY DocumentItemText DistinctGLAccount DocumentItemText Text
KEY StatryRptgEntity JournalEntryItem StatryRptgEntity Reporting Entity
KEY StatryRptCategory JournalEntryItem StatryRptCategory Report ID
KEY StatryRptRunID JournalEntryItem StatryRptRunID Report Run ID
TransactionCurrency JournalEntryItem TransactionCurrency Transaction Currency
AmountInTransactionCurrency
ExchangeRate
DocumentReferenceID JournalEntryItem DocumentReferenceID Reference
TaxNumber1 JournalEntryItem TaxNumber1 VAT Reg. No.

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_JrnlEntrAuxFrgnCompnDets.
-- 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: CMXJEAUXFRGNCOMP
-- 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_JrnlEntrAuxFrgnCompnDets AS
SELECT
  JournalEntryItem.SourceLedger AS SourceLedger,
  JournalEntryItem.Ledger AS Ledger,
  JournalEntryItem.CompanyCode AS CompanyCode,
  JournalEntryItem.AccountingDocument AS AccountingDocument,
  JournalEntryItem.FiscalYear AS FiscalYear,
  DistinctGLAccount.GLAccount AS GLAccount,
  DistinctGLAccount.DocumentItemText AS DocumentItemText,
  JournalEntryItem.StatryRptgEntity AS StatryRptgEntity,
  JournalEntryItem.StatryRptCategory AS StatryRptCategory,
  JournalEntryItem.StatryRptRunID AS StatryRptRunID,
  JournalEntryItem.TransactionCurrency AS TransactionCurrency,
  abs(cast(sum( JournalEntryItem.AmountInTransactionCurrency ) as fis_wsl preserving type ) ) AS AmountInTransactionCurrency,
  abs(cast(JournalEntryItem.ExchangeRate as abap.dec(9,5)) ) AS ExchangeRate,
  JournalEntryItem.DocumentReferenceID AS DocumentReferenceID,
  JournalEntryItem.TaxNumber1 AS TaxNumber1
FROM P_MX_JrnlEntrForeignCompDets
INNER JOIN P_MX_JrnlEntryDistinctGLAcct ON /* join condition not captured in parsed metadata */
;