I_AvgDailyBalGroupReporting

DDL: I_AVGDAILYBALGROUPREPORTING SQL: IADBGRCUBE Type: view COMPOSITE

Average Daily Balances in the group reporting format

I_AvgDailyBalGroupReporting is a Composite CDS View (Cube) that provides data about "Average Daily Balances in the group reporting format" in SAP S/4HANA. It reads from 1 data source (P_GLE_ADB_GR_07) and exposes 82 fields with key field ConsolidationRecordNumber. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Accounting Enhancements for Banking
StatusReleased
Purpose
This CDS view provides the average daily balances for consolidation units with respect to different dimensions such as the FS item and subitem. It is used in the ADB group reporting calculation report to calculate ADBs and store the result in the group reporting table. The result is processed further and ADBs are reported in group reporting. This CDS view provides the data to answer the following business question: What are the month-to-date, quarter-to-date, and year-to-date average daily balances for consolidation units, FS items along with different dimensions such as subitem, cost center, and profit center.

Prerequisites
Authorizations Users who want to use this CDS view must be assigned the following authorization objects: GLE_ADB_GR (Authorization Check for Executing ADB for Group Reporting)

Structure
Business Objects This view is built on the following business objects: Journal entry ADB calculation view Parameters The main input parameters of the CDS view are as follows: P_FiscalYearStartDate is the date from which a fiscal year starts with respect to which the ADBs are to be calculated. P_FiscalQuarterStartDate is the date from which a fiscal quarter starts with respect to which the ADBs are to be calculated. P_FiscalMonthStartDate is the date from which a fiscal month starts with respect to which the ADBs are to be calculated. P_ReportingDate is the date for which ADBs are calculated and reported. P_ConsolidationDimension represents the consolidation dimension of group reporting for which ADBs are to be calculated. P_ConsolidationUnit represents the consolidation unit of group reporting for which ADBs are to be calculated. P_ConsolidationVersion represents the consolidation version of group reporting that is associated with actuals and for which data is released from the universal journal. P_FiscalYearPeriod represents the period of group reporting for which ADBs are to be calculated. P_CreationDateTimeRgFr : The postings in accounting made after this time are considered for the ADB calculation. P_CreationDateTimeRgTo : The postings in accounting made before this time are considered for the ADB calculation. Fields Used for Filtering Measures and Attributes All relevant dimensions such as FS Item , Subitem , Breakdown Category , Profit Center , Cost Center , Segment , Business Area are included. The following are important measures: Month-to-date average balance Quarter-to-date average balance Year-to-date average balance

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
P_GLE_ADB_GR_07 P_GLE_ADB_GR_07 from

Parameters (12)

NameTypeDefault
P_FiscalYearStartDate gle_dte_adb_keydate
P_FiscalHalfYearStartDate gle_dte_adb_keydate
P_FiscalQuarterStartDate gle_dte_adb_keydate
P_FiscalMonthStartDate gle_dte_adb_keydate
P_ReportingDate gle_dte_adb_keydate
P_ConsolidationDimension fc_dimen
P_ConsolidationUnit fc_bunit
P_ConsolidationVersion fc_rvers
P_FiscalYearPeriod fincs_fiscalyearper
P_CreationDateTimeRgFr gle_dte_adb_timestamp
P_CreationDateTimeRgTo gle_dte_adb_timestamp
P_ArchiveDataIsIncluded abap_boolean

Associations (1)

CardinalityTargetAliasCondition
[1..1] E_JournalEntryItem _Extension $projection.Ledger = _Extension.SourceLedger and $projection.CompanyCode = _Extension.CompanyCode and $projection.ReferenceFiscalYear = _Extension.FiscalYear and $projection.AccountingDocument = _Extension.AccountingDocument and $projection.LedgerGLLineItem = _Extension.LedgerGLLineItem

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IADBGRCUBE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
Analytics.dataCategory #CUBE view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Average Daily Balances in the group reporting format view

Fields (82)

KeyFieldSource TableSource FieldDescription
KEY ConsolidationRecordNumber ConsolidationRecordNumber
Ledger Ledger Ledger
LedgerGLLineItem LedgerGLLineItem Journal Entry Item
AccountingDocument AccountingDocument Journal Entry
ConsolidationLedger ConsolidationLedger Ledger
ConsolidationVersion ConsolidationVersion Version
FiscalYear FiscalYear G/L Fiscal Year
ReferenceFiscalYear ReferenceFiscalYear Original FY
TransactionCurrency TransactionCurrency Transaction Currency
LocalCurrency LocalCurrency Local Currency
GroupCurrency GroupCurrency Ledger curr.
BaseUnit BaseUnit Unit of Measure
FiscalPeriod FiscalPeriod Tax period
ConsolidationDimension P_GLE_ADB_GR_07 ConsolidationDimension Dimension
ConsolidationUnit ConsolidationUnit Consolidation Unit
ConsolidationChartOfAccounts ConsolidationChartOfAccounts Cons. COA
FinancialStatementItem FinancialStatementItem FS Item
PartnerConsolidationUnit PartnerConsolidationUnit Partner Unit
CompanyCode CompanyCode Receiver Company Code
SubItemCategory SubItemCategory Subitem Category
SubItem SubItem Subitem Number
MTDAvgDailyBalInBalTransCrcy tsl_m
QTDAvgDailyBalInBalTransCrcy tsl_q
HYTDAvgDailyBalInBalTransCrcy tsl_h
YTDAvgDailyBalInBalTransCrcy tsl_y
MTDAvgDailyBalInCCCrcy hsl_m
QTDAvgDailyBalInCCCrcy hsl_q
HYTDAvgDailyBalInCCCrcy hsl_h
YTDAvgDailyBalInCCCrcy hsl_y
MTDAvgDailyBalInGlobCrcy ksl_m
QTDAvgDailyBalInGlobCrcy ksl_q
HYTDAvgDailyBalInGlobCrcy ksl_h
YTDAvgDailyBalInGlobCrcy ksl_y
GLAccount GLAccount General Ledger
CostCenter CostCenter Cost Center
ProfitCenter ProfitCenter Profit Center
FunctionalArea FunctionalArea Sendr Fctl Area
BusinessArea BusinessArea Business Area
Segment Segment Segment number
FinancialTransactionType FinancialTransactionType Transact. Type
ChartOfAccounts ChartOfAccounts Node Class
AssignmentReference AssignmentReference Assignment Reference
ControllingArea ControllingArea Controlling Area
PartnerCostCenter PartnerCostCenter Sender Cost Ctr
PartnerProfitCenter PartnerProfitCenter Profit Center
PartnerFunctionalArea PartnerFunctionalArea Rec. Fntcl Area
PartnerBusinessArea PartnerBusinessArea Trdg Part.BA
PartnerCompany PartnerCompany Trading Partner
PartnerSegment PartnerSegment Partner Segment
OrderID OrderID Order ID
Customer Customer Sold-to Party
Supplier Supplier Supplier
Material Material Vehicle Model
MaterialGroup MaterialGroup Product Group
Plant Plant Valuation Area
WBSElementExternalID WBSElementExternalID WBS Element External ID
Project Project WBS Element
BillingDocumentType BillingDocumentType Billing Type
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
SoldProduct SoldProduct Product Sold
SoldProductGroup SoldProductGroup Product Sold Group
CustomerGroup CustomerGroup Customer Group
CustomerSupplierCountry CustomerSupplierCountry Customer or Supplier Country/Region
CustomerSupplierIndustry CustomerSupplierIndustry Industry
SalesDistrict SalesDistrict Sales District
BillToParty BillToParty Inv. Recipient
ShipToParty ShipToParty Ship-To Party (obsolete)
CustomerSupplierCorporateGroup CustomerSupplierCorporateGroup Group
CreationDateTime CreationDateTime Timestamp
WBSElementInternalID WBSElementInternalID WBS Internal ID
ReferenceDocumentNumber
ConsolidationGroup
GLRecordType
PostingLevel
InvesteeConsolidationUnit
ConsolidationAcquisitionPeriod
ConsolidationApportionment
CurrencyConversionsDiffType
ConsolidationAcquisitionYear
ConsolidationDocumentType

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 I_AvgDailyBalGroupReporting.
-- 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: IADBGRCUBE
-- Parameters: P_FiscalYearStartDate : gle_dte_adb_keydate, P_FiscalHalfYearStartDate : gle_dte_adb_keydate, P_FiscalQuarterStartDate : gle_dte_adb_keydate, P_FiscalMonthStartDate : gle_dte_adb_keydate, P_ReportingDate : gle_dte_adb_keydate, P_ConsolidationDimension : fc_dimen, P_ConsolidationUnit : fc_bunit, P_ConsolidationVersion : fc_rvers, P_FiscalYearPeriod : fincs_fiscalyearper, P_CreationDateTimeRgFr : gle_dte_adb_timestamp, P_CreationDateTimeRgTo : gle_dte_adb_timestamp, P_ArchiveDataIsIncluded : abap_boolean

CREATE VIEW I_AvgDailyBalGroupReporting AS
SELECT
  ConsolidationRecordNumber,
  Ledger,
  LedgerGLLineItem,
  AccountingDocument,
  ConsolidationLedger,
  ConsolidationVersion,
  FiscalYear,
  ReferenceFiscalYear,
  TransactionCurrency,
  LocalCurrency,
  GroupCurrency,
  BaseUnit,
  FiscalPeriod,
  P_GLE_ADB_GR_07.ConsolidationDimension AS ConsolidationDimension,
  ConsolidationUnit,
  ConsolidationChartOfAccounts,
  FinancialStatementItem,
  PartnerConsolidationUnit,
  CompanyCode,
  SubItemCategory,
  SubItem,
  tsl_m AS MTDAvgDailyBalInBalTransCrcy,
  tsl_q AS QTDAvgDailyBalInBalTransCrcy,
  tsl_h AS HYTDAvgDailyBalInBalTransCrcy,
  tsl_y AS YTDAvgDailyBalInBalTransCrcy,
  hsl_m AS MTDAvgDailyBalInCCCrcy,
  hsl_q AS QTDAvgDailyBalInCCCrcy,
  hsl_h AS HYTDAvgDailyBalInCCCrcy,
  hsl_y AS YTDAvgDailyBalInCCCrcy,
  ksl_m AS MTDAvgDailyBalInGlobCrcy,
  ksl_q AS QTDAvgDailyBalInGlobCrcy,
  ksl_h AS HYTDAvgDailyBalInGlobCrcy,
  ksl_y AS YTDAvgDailyBalInGlobCrcy,
  GLAccount,
  CostCenter,
  ProfitCenter,
  FunctionalArea,
  BusinessArea,
  Segment,
  FinancialTransactionType,
  ChartOfAccounts,
  AssignmentReference,
  ControllingArea,
  PartnerCostCenter,
  PartnerProfitCenter,
  PartnerFunctionalArea,
  PartnerBusinessArea,
  PartnerCompany,
  PartnerSegment,
  OrderID,
  Customer,
  Supplier,
  Material,
  MaterialGroup,
  Plant,
  WBSElementExternalID,
  Project,
  BillingDocumentType,
  SalesOrganization,
  DistributionChannel,
  OrganizationDivision,
  SoldProduct,
  SoldProductGroup,
  CustomerGroup,
  CustomerSupplierCountry,
  CustomerSupplierIndustry,
  SalesDistrict,
  BillToParty,
  ShipToParty,
  CustomerSupplierCorporateGroup,
  CreationDateTime,
  WBSElementInternalID,
  cast('' as char32 ) AS ReferenceDocumentNumber,
  cast('' as fc_congr) AS ConsolidationGroup,
  cast('0' as rrcty) AS GLRecordType,
  cast(' ' as fc_plevl) AS PostingLevel,
  cast(' ' as fincs_investeeconsunit) AS InvesteeConsolidationUnit,
  cast('000' as rpacq) AS ConsolidationAcquisitionPeriod,
  cast('0' as fc_rpflg) AS ConsolidationApportionment,
  cast('0' as fc_rtflg) AS CurrencyConversionsDiffType,
  cast('0000' as fc_ryacq) AS ConsolidationAcquisitionYear,
  cast('' as fc_docty) AS ConsolidationDocumentType
FROM P_GLE_ADB_GR_07
LEFT OUTER JOIN E_JournalEntryItem AS _Extension ON Ledger = _Extension.SourceLedger AND CompanyCode = _Extension.CompanyCode AND ReferenceFiscalYear = _Extension.FiscalYear AND AccountingDocument = _Extension.AccountingDocument AND LedgerGLLineItem = _Extension.LedgerGLLineItem  -- association [1..1]
;