Sie sind auf Seite 1von 8

Balances

This document describes how to calculate Daily Balances in BI for General Ledgers.

Similar to inventory except marker update.

This document talks about G/L Line items data source 0FI_GL_14 into BI and calculation of G/L
Balances.

This Data Source extracts line items from the leading ledger in new General Ledger Accounting.
For all other ledgers, you have to create separate Data Sources.

Tables involved in ERP System are FAGLFLEXA/FAGLFLEXT, BSEG and BKPF. Refer to link above
for more information and details of the data source fields and delta mechanism.

In the current example standard DSO is used for staging data (without any modification ‘SAP
Best Practice’) for data integrity and for future usage of data (raw data). Usage of DSO is
mandatory (because FI Data sources deliver after images can’t load directly to Info cube.)

Refer to the link for DSO Definition provided below.

DSO Definition

Map all the fields from data source to target DSO, make sure to map the all key fields of DSO to
source fields to avoid overwriting of the records which leads to erroneous data and
inconsistencies in BI.

How to model Info cube and Key figures for Calculating Balances.

Data source delivers CREDIT, DEBIT and DEB_CRE_XX (XX represents currency).

Non Cumulative Key Figure

Create new key figure e.g. ZGL_BALN (G/L Balance) as non cumulative and use 0DEB_CRE_XX as
non cumulative value change.

a. In the aggregation tab use Summation


b. In the exception aggregation use Last value as we need balance on any given day.
c. Other properties as per requirement.
Info cube definition

Create new info cube with all require fields and insert newly created key figure ZGL_BALN in the
key figures tab, the value will be filled in the query runtime by using non cumulative value
change and time characteristics available.

In the current design is to show balance on day level hence the lowest granularity in the info
cube Calendar day, by thumb rule we can add other time characteristics into the info cube.

Before activating the info cube from the menu options extras select non cumulative values and
select cal day, check for the consistency and if no errors are found activate the cube.
Transformation mapping from DSO to Info cube

Note: There won’t be any mapping to ZGL_BALN key figure as this value is calculated at the
query run time.
Steps to Load Data:

1. Initialize data source as per client requirements into BI


2. Load data from PSA to DSO full/delta
3. Load data from DSO to Info cube full/delta.

Info cube Data contents:


Bex Query

Create query to show balances by calendar day.

Query Definition: This query is restricted to only one G/L Account to limit the data:
Query Output:
Explanation to Query Data:

In this query consider General Ledger account as our savings account in any bank.

If you look the info cube content on 01/01/2010 there are 2 debit transactions for 2300 which
equals to 4600/- consider this amount as opening balance when we opened the account.

We can have any number of transactions on the same day and there is no restriction

01/01/2010 Report shows the balance as 4600/.

02/01/2010 Balance is 19500 as there is debit transaction of 14,900/

Balance on 3rd and 4th January remains same as there are no transactions in the amount.

05/01/2010 Balance is 21,800 as there is a debit transaction of 2300/-

Same applies further balance change as there are any debit or credit transactions in the
account. Key figure 0DEB_CRE_XX is difference of debit and credit which is net value of the
transaction for the day.

Das könnte Ihnen auch gefallen