C_CN_GLAcctBalPerd

DDL: C_CN_GLACCTBALPERD SQL: CVCNGLABALPERD Type: view CONSUMPTION

G/L Account Balances by Period

C_CN_GLAcctBalPerd is a Consumption CDS View that provides data about "G/L Account Balances by Period" in SAP S/4HANA. It reads from 1 data source (P_CN_GLAcctItems) and exposes 21 fields with key fields CompanyCode, FiscalYear, Ledger, FiscalPeriod, GLAccountInfo.

Data Sources (1)

SourceAliasJoin Type
P_CN_GLAcctItems P_CN_GLAcctItems from

Parameters (5)

NameTypeDefault
P_CompanyCode fis_bukrs
P_FiscalYear fis_gjahr
P_Ledger fis_rldnr
P_CurrencyRole fac_crcyrole
P_DisplayAltvAcct figlcn_disalteracct

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CVCNGLABALPERD view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label G/L Account Balances by Period view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY Ledger Ledger Ledger
KEY FiscalPeriod FiscalPeriod Tax period
KEY GLAccountInfo DisplayGLAccount
KEY GLAccount GLAccount General Ledger
KEY BusinessArea BusinessArea Business Area
KEY Segment Segment Segment number
KEY ProfitCenter ProfitCenter Profit Center
KEY GLAccountGroup GLAccountGroup Account Group
KEY FunctionalArea FunctionalArea Sendr Fctl Area
KEY AccountIsMarkedForDeletion AccountIsMarkedForDeletion Deletion Flag
KEY DisplayCurrency DisplayCurrency Display Currency
KEY TransactionCurrency TransactionCurrency Transaction Currency
AlternativeGLAccount AlternativeGLAccount Group Account
TotalAmountInDisplayCrcy
TotalDebitAmtInDisplayCrcy
TotalCreditAmtInDisplayCrcy
TotalAmountInTransactionCrcy
TotalDebitAmountInTransCrcy
TotalCreditAmountInTransCrcy

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_GLAcctBalPerd.
-- 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: CVCNGLABALPERD
-- Parameters: P_CompanyCode : fis_bukrs, P_FiscalYear : fis_gjahr, P_Ledger : fis_rldnr, P_CurrencyRole : fac_crcyrole, P_DisplayAltvAcct : figlcn_disalteracct

CREATE VIEW C_CN_GLAcctBalPerd AS
SELECT
  CompanyCode,
  FiscalYear,
  Ledger,
  FiscalPeriod,
  DisplayGLAccount AS GLAccountInfo,
  GLAccount,
  BusinessArea,
  Segment,
  ProfitCenter,
  GLAccountGroup,
  FunctionalArea,
  AccountIsMarkedForDeletion,
  DisplayCurrency,
  TransactionCurrency,
  AlternativeGLAccount,
  sum(AmountInDisplayCurrency) AS TotalAmountInDisplayCrcy,
  sum(DebitAmountInDisplayCrcy) AS TotalDebitAmtInDisplayCrcy,
  sum(CreditAmountInDisplayCrcy) AS TotalCreditAmtInDisplayCrcy,
  sum(AmountInTransactionCurrency) AS TotalAmountInTransactionCrcy,
  sum(DebitAmountInTransCrcy) AS TotalDebitAmountInTransCrcy,
  sum(CreditAmountInTransCrcy) AS TotalCreditAmountInTransCrcy
FROM P_CN_GLAcctItems
;