C_CN_GLAcctBalanceSumQuery
G/L Account Balances
C_CN_GLAcctBalanceSumQuery is a Consumption CDS View that provides data about "G/L Account Balances" in SAP S/4HANA. It reads from 1 data source (I_CN_GLAcctBalanceSumCube) and exposes 35 fields. It is used in 1 Fiori application: Display G/L Account Balances in Country/Region-Specific Format.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CN_GLAcctBalanceSumCube | I_CN_GLAcctBalanceSumCube | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | fis_bukrs | |
| P_FiscalYear | fis_gjahr | |
| P_Ledger | fis_rldnr | |
| P_CurrencyRole | fac_crcyrole | |
| P_DisplayAltvAcct | figlcn_disalteracct | |
| P_DspTimeDependentDesc | figlcn_distddesc |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | CVCNGLABALSUM | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| OData.publish | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_QUERY | view | |
| EndUserText.label | G/L Account Balances | view | |
| UI.presentationVariant.sortOrder.by | #GLACCOUNT | view | |
| UI.presentationVariant.sortOrder.direction | #ASC | view |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F2141 | Display G/L Account Balances in Country/Region-Specific Format | Analytical | With this app you can display general ledger account balances for specified fiscal periods and in a format based on local accounting practices. It provides information such as account number, opening balance, closing balance, debit and credit amounts in different currencies. This app is used especially by General Ledger accountants to check the completeness and correctness of the financial statements for a specified period. |
Display G/L Account Balances in Country/Region-Specific Format
Business Role: General Ledger Accountant for China
With this app you can display general ledger account balances for specified fiscal periods and in a format based on the country/region-specific accounting practices. It provides information such as account number, opening balance, closing balance, debit and credit amounts in different views. This app is used by General Ledger accountants to check the completeness and correctness of the financial statements for a specified period. This app supports the following countries/regions:China Japan Singapore Thailand
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| Ledger | Ledger | Ledger | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| GLAccount | GLAccount | General Ledger | ||
| GLAcctLineDescription | GLAcctLineDescription | |||
| GLAccountInfo | GLAccountInfo | |||
| GLAccountHierarchy | GLAccountHierarchy | |||
| GLAccountGroup | GLAccountGroup | Account Group | ||
| GLAccountTransactionType | GLAccountTransactionType | |||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| ProfitCenterGroup | ProfitCenterGroup | |||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| AccountIsMarkedForDeletion | AccountIsMarkedForDeletion | Deletion Flag | ||
| DisplayCurrency | DisplayCurrency | Display Currency | ||
| StartingBalAmtInDspCrcy | Beginning Balance | |||
| DebitAmountInDisplayCrcy | Current Debit | |||
| CreditAmountInDisplayCrcy | Current Credit | |||
| PeriodBalAmtInDspCrcy | Current Balance with sign | |||
| AmountInDisplayCurrency | Current Balance | |||
| EndingBalAmtInDspCrcy | Ending Balance | |||
| YTDDebitAmtInDspCurrency | Year-to-Date Debit | |||
| YTDCreditAmtInDspCurrency | Year-to-Date Credit | |||
| YTDBalAmtInDisplayCurrency | Year-to-Date Balance | |||
| CarryFwdBalAmtInDspCrcy | Year-Beginning Balance | |||
| CreditDebitDirection | Direction | |||
| AlternativeGLAccount | AlternativeGLAccount | Dont look at this column | ||
| IntmdEndingBalAmtInDisplayCrcy | EndingBalAmtInDspCrcy | Dont look at this column | ||
| GLAcctDebitAmountInDisplayCrcy | DebitAmountInDisplayCrcy | Dont look at this column | ||
| GLAcctCreditAmtInDisplayCrcy | CreditAmountInDisplayCrcy | Dont look at this column | ||
| DebitAmtInDisplayCrcy | YTDDebitAmtInDspCurrency | Dont look at this column | ||
| CreditAmountInDisplayCurrency | YTDCreditAmtInDspCurrency | Dont look at this column |
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_CN_GLAcctBalanceSumQuery.
-- 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: CVCNGLABALSUM
-- Parameters: P_CompanyCode : fis_bukrs, P_FiscalYear : fis_gjahr, P_Ledger : fis_rldnr, P_CurrencyRole : fac_crcyrole, P_DisplayAltvAcct : figlcn_disalteracct, P_DspTimeDependentDesc : figlcn_distddesc
CREATE VIEW C_CN_GLAcctBalanceSumQuery AS
SELECT
Ledger,
CompanyCode,
FiscalPeriod,
FiscalYear,
GLAccount,
GLAcctLineDescription,
GLAccountInfo,
GLAccountHierarchy,
GLAccountGroup,
GLAccountTransactionType,
ProfitCenter,
ChartOfAccounts,
ProfitCenterGroup,
FunctionalArea,
BusinessArea,
Segment,
AccountIsMarkedForDeletion,
DisplayCurrency,
cast( cast( 0 as abap.dec(23,2)) as fis_start_bal_hsl_ui ) AS StartingBalAmtInDspCrcy,
cast( cast( 0 as abap.dec(23,2)) as fis_dr_bal_hsl ) AS DebitAmountInDisplayCrcy,
cast( cast( 0 as abap.dec(23,2)) as fis_cr_bal_hsl ) AS CreditAmountInDisplayCrcy,
cast( cast( 0 as abap.dec(23,2)) as fis_bal_hsl ) AS PeriodBalAmtInDspCrcy,
cast( cast( 0 as abap.dec(23,2)) as fis_bal_hsl ) AS AmountInDisplayCurrency,
cast( cast( 0 as abap.dec(23,2)) as fis_end_bal_hsl_ui ) AS EndingBalAmtInDspCrcy,
cast( cast( 0 as abap.dec(23,2)) as fis_dr_bal_hsl ) AS YTDDebitAmtInDspCurrency,
cast( cast( 0 as abap.dec(23,2)) as fis_cr_bal_hsl ) AS YTDCreditAmtInDspCurrency,
cast( cast( 0 as abap.dec(23,2)) as fis_bal_hsl ) AS YTDBalAmtInDisplayCurrency,
cast( cast( 0 as abap.dec(23,2)) as fis_start_bal_hsl_ui ) AS CarryFwdBalAmtInDspCrcy,
cast( '0' as figlcn_drcr_direction ) AS CreditDebitDirection,
AlternativeGLAccount,
EndingBalAmtInDspCrcy AS IntmdEndingBalAmtInDisplayCrcy,
DebitAmountInDisplayCrcy AS GLAcctDebitAmountInDisplayCrcy,
CreditAmountInDisplayCrcy AS GLAcctCreditAmtInDisplayCrcy,
YTDDebitAmtInDspCurrency AS DebitAmtInDisplayCrcy,
YTDCreditAmtInDspCurrency AS CreditAmountInDisplayCurrency
FROM I_CN_GLAcctBalanceSumCube
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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