C_MX_JrnlEntrAuxFrgnCompnDets
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)
| Source | Alias | Join Type |
|---|---|---|
| P_MX_JrnlEntrForeignCompDets | P_MX_JrnlEntrForeignCompDets | 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 (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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