C_MX_GLAccountBalance

DDL: C_MX_GLACCOUNTBALANCE Type: view CONSUMPTION Package: GLO_FIN_IS_GL_MX_AUX_ACCT

MX GL Account Balance

C_MX_GLAccountBalance is a Consumption CDS View that provides data about "MX GL Account Balance" in SAP S/4HANA. It reads from 2 data sources (P_MX_FinancialStmntStructure2, P_MX_GLAccountBalance4) and exposes 15 fields with key fields Ledger, CompanyCode, ChartOfAccounts, GLAccount, StatryRptCategory. Part of development package GLO_FIN_IS_GL_MX_AUX_ACCT.

Data Sources (2)

SourceAliasJoin Type
P_MX_FinancialStmntStructure2 P_MX_FinancialStmntStructure2 inner
P_MX_GLAccountBalance4 P_MX_GLAccountBalance4 from

Parameters (12)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_FromFiscalPeriod fis_period_from
P_ToFiscalPeriod fis_period_to
P_FinancialStatementVariant versn_011
P_AlternativeGLAccount figlmx_prim
P_MigrationItemIsMigrated figlmx_migsource
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_CompanyCode fis_bukrs
P_Ledger fins_ledger

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CMXGLACCTBAL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY Ledger TrialBalanceItem Ledger Ledger
KEY CompanyCode TrialBalanceItem CompanyCode Receiver Company Code
KEY ChartOfAccounts TrialBalanceItem ChartOfAccounts Node Class
KEY GLAccount FSV GLAccount General Ledger
KEY StatryRptCategory TrialBalanceItem StatryRptCategory Report ID
KEY StatryRptgEntity TrialBalanceItem StatryRptgEntity Reporting Entity
KEY StatryRptRunID TrialBalanceItem StatryRptRunID Report Run ID
KEY FiscalPeriod TrialBalanceItem FiscalPeriod Tax period
GLAccountType FSV GLAccountType G/L Account Type
GLAccountInfo FSV GLAccountInfo
ReportingCurrency TrialBalanceItem ReportingCurrency Currency
StartingBalanceAmtInRptgCrcy TrialBalanceItem StartingBalanceAmtInRptgCrcy
DebitAmountInReportingCurrency TrialBalanceItem DebitAmountInReportingCurrency
CreditAmountInReportingCrcy TrialBalanceItem CreditAmountInReportingCrcy
EndingBalanceAmtInRptgCrcy TrialBalanceItem EndingBalanceAmtInRptgCrcy

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_GLAccountBalance.
-- 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.
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_FromFiscalPeriod : fis_period_from, P_ToFiscalPeriod : fis_period_to, P_FinancialStatementVariant : versn_011, P_AlternativeGLAccount : figlmx_prim, P_MigrationItemIsMigrated : figlmx_migsource, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_CompanyCode : fis_bukrs, P_Ledger : fins_ledger

CREATE VIEW C_MX_GLAccountBalance AS
SELECT
  TrialBalanceItem.Ledger AS Ledger,
  TrialBalanceItem.CompanyCode AS CompanyCode,
  TrialBalanceItem.ChartOfAccounts AS ChartOfAccounts,
  FSV.GLAccount AS GLAccount,
  TrialBalanceItem.StatryRptCategory AS StatryRptCategory,
  TrialBalanceItem.StatryRptgEntity AS StatryRptgEntity,
  TrialBalanceItem.StatryRptRunID AS StatryRptRunID,
  TrialBalanceItem.FiscalPeriod AS FiscalPeriod,
  FSV.GLAccountType AS GLAccountType,
  FSV.GLAccountInfo AS GLAccountInfo,
  TrialBalanceItem.ReportingCurrency AS ReportingCurrency,
  TrialBalanceItem.StartingBalanceAmtInRptgCrcy AS StartingBalanceAmtInRptgCrcy,
  TrialBalanceItem.DebitAmountInReportingCurrency AS DebitAmountInReportingCurrency,
  TrialBalanceItem.CreditAmountInReportingCrcy AS CreditAmountInReportingCrcy,
  TrialBalanceItem.EndingBalanceAmtInRptgCrcy AS EndingBalanceAmtInRptgCrcy
FROM P_MX_GLAccountBalance4
INNER JOIN P_MX_FinancialStmntStructure2 ON /* join condition not captured in parsed metadata */
;