P_MX_GLAccountBalance3
P_MX_GLAccountBalance3 is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (P_MX_GLAccountBalance2, P_MX_GLAccountBalance2, I_StRpGLAccountLog, I_StRpGLAccountLog) and exposes 34 fields with key fields Ledger, CompanyCode, ChartOfAccounts, GLAccount, StatryRptgEntity.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_MX_GLAccountBalance2 | P_MX_GLAccountBalance2 | inner |
| P_MX_GLAccountBalance2 | P_MX_GLAccountBalance2 | inner |
| I_StRpGLAccountLog | ReportedGLAcctLog | from |
| I_StRpGLAccountLog | ReportedGLAcctLog | union_all |
Parameters (11)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to | |
| P_FromFiscalPeriod | fis_period_from | |
| P_ToFiscalPeriod | fis_period_to | |
| P_AlternativeGLAccount | figlmx_prim | |
| P_RestrictedMigrationSource | 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 (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMXGLACCTBAL3 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | TrialBalanceItem | Ledger | Ledger |
| KEY | CompanyCode | TrialBalanceItem | CompanyCode | Receiver Company Code |
| KEY | ChartOfAccounts | TrialBalanceItem | ChartOfAccounts | Node Class |
| KEY | GLAccount | TrialBalanceItem | GLAccount | General Ledger |
| KEY | StatryRptgEntity | I_StRpGLAccountLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | I_StRpGLAccountLog | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | I_StRpGLAccountLog | StatryRptRunID | Report Run ID |
| FiscalPeriod | TrialBalanceItem | FiscalPeriod | Tax period | |
| ReportingCurrency | TrialBalanceItem | ReportingCurrency | Currency | |
| StartingBalanceAmtInRptgCrcy | TrialBalanceItem | StartingBalanceAmtInRptgCrcy | ||
| DebitAmountInReportingCurrency | TrialBalanceItem | DebitAmountInReportingCurrency | ||
| CreditAmountInReportingCrcy | TrialBalanceItem | CreditAmountInReportingCrcy | ||
| EndingBalanceAmtInRptgCrcy | TrialBalanceItem | EndingBalanceAmtInRptgCrcy | ||
| P_FromPostingDate | ||||
| P_ToPostingDate | ||||
| P_FromFiscalPeriod | ||||
| P_ToFiscalPeriod | ||||
| P_AlternativeGLAccount | ||||
| P_RestrictedMigrationSource | ||||
| P_CompanyCode | ||||
| Ledger | Ledger | |||
| KEY | CompanyCode | TrialBalanceItem | CompanyCode | Receiver Company Code |
| KEY | ChartOfAccounts | TrialBalanceItem | ChartOfAccounts | Node Class |
| KEY | GLAccount | TrialBalanceItem | GLAccount | General Ledger |
| KEY | StatryRptgEntity | I_StRpGLAccountLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | I_StRpGLAccountLog | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | I_StRpGLAccountLog | StatryRptRunID | Report Run ID |
| FiscalPeriod | TrialBalanceItem | FiscalPeriod | Tax period | |
| ReportingCurrency | TrialBalanceItem | ReportingCurrency | Currency | |
| StartingBalanceAmtInRptgCrcy | TrialBalanceItem | StartingBalanceAmtInRptgCrcy | ||
| DebitAmountInReportingCurrency | TrialBalanceItem | DebitAmountInReportingCurrency | ||
| CreditAmountInReportingCrcy | TrialBalanceItem | CreditAmountInReportingCrcy | ||
| EndingBalanceAmtInRptgCrcy | TrialBalanceItem | EndingBalanceAmtInRptgCrcy | ||
| AlternativeGLAccountIsUsed | TrialBalanceItem | AlternativeGLAccountIsUsed |
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 P_MX_GLAccountBalance3.
-- 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_AlternativeGLAccount : figlmx_prim, P_RestrictedMigrationSource : 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 P_MX_GLAccountBalance3 AS
SELECT
TrialBalanceItem.Ledger AS Ledger,
TrialBalanceItem.CompanyCode AS CompanyCode,
TrialBalanceItem.ChartOfAccounts AS ChartOfAccounts,
TrialBalanceItem.GLAccount AS GLAccount,
ReportedGLAcctLog.StatryRptgEntity AS StatryRptgEntity,
ReportedGLAcctLog.StatryRptCategory AS StatryRptCategory,
ReportedGLAcctLog.StatryRptRunID AS StatryRptRunID,
TrialBalanceItem.FiscalPeriod AS FiscalPeriod,
TrialBalanceItem.ReportingCurrency AS ReportingCurrency,
TrialBalanceItem.StartingBalanceAmtInRptgCrcy AS StartingBalanceAmtInRptgCrcy,
TrialBalanceItem.DebitAmountInReportingCurrency AS DebitAmountInReportingCurrency,
TrialBalanceItem.CreditAmountInReportingCrcy AS CreditAmountInReportingCrcy,
TrialBalanceItem.EndingBalanceAmtInRptgCrcy AS EndingBalanceAmtInRptgCrcy,
TrialBalanceItem.AlternativeGLAccountIsUsed AS P_FromPostingDate,
P_ToPostingDate: $parameters.P_ToPostingDate AS P_ToPostingDate,
P_FromFiscalPeriod: $parameters.P_FromFiscalPeriod AS P_FromFiscalPeriod,
P_ToFiscalPeriod: $parameters.P_ToFiscalPeriod AS P_ToFiscalPeriod,
P_AlternativeGLAccount: $parameters.P_AlternativeGLAccount AS P_AlternativeGLAccount,
P_RestrictedMigrationSource: $parameters.P_RestrictedMigrationSource AS P_RestrictedMigrationSource,
P_CompanyCode: $parameters.P_CompanyCode AS P_CompanyCode,
TrialBalanceItem.AlternativeGLAccountIsUsed AS AlternativeGLAccountIsUsed
FROM I_StRpGLAccountLog AS ReportedGLAcctLog
INNER JOIN P_MX_GLAccountBalance2 ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_StRpGLAccountLog
;
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