SlideShare a Scribd company logo
How-to Guide
SAP NetWeaver ‘04
How To…
Calculate
balance sheet
key figures
using the BEx
Query Designer
cell editor
Version 1.00 – December 2004
Applicable Releases:
SAP NetWeaver ’04
(BW 3.5)
© Copyright 2004 SAP AG. All rights reserved.
No part of this publication may be reproduced or
transmitted in any form or for any purpose without the
express permission of SAP AG. The information
contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its
distributors contain proprietary software components of
other software vendors.
Microsoft, Windows, Outlook,and PowerPointare
registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, OS/2, Parallel
Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400,
iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent
Miner, WebSphere, Netfinity, Tivoli, and Informix are
trademarks or registered trademarks of IBM Corporation
in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered
trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame,
WinFrame, VideoFrame, and MultiWinare trademarks
or registered trademarks of Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or
registered trademarks of W3C
®
, World Wide Web
Consortium, Massachusetts Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems,
Inc., used under license for technology invented and
implemented by Netscape.
MaxDB is a trademark of MySQL AB, Sweden.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP
NetWeaver, and other SAP products and services
mentioned herein as well as their respective logos are
trademarks or registered trademarks of SAP AG in
Germany and in several other countries all over the
world. All other product and service names mentioned
are the trademarks of their respective companies. Data
contained in this document serves informational
purposes only. National product specifications may vary.
These materials are subject to change without notice.
These materials are provided by SAP AG and its affiliated
companies ("SAP Group") for informational purposes
only, without representation or warranty of any
kind, and SAP Group shall not be liable for errors or
omissions with respect to the materials. The only
warranties for SAP Group products and services are those
that are set forth in the express warranty statements
accompanying such products and services, if any.
Nothing herein should be construed as constituting an
additional warranty.
These materials are provided “as is” without a warranty
of any kind, either express or implied, including but not
limited to, the implied warranties of merchantability,
fitness for a particular purpose, or non-infringement.
SAP shall not be liable for damages of any kind including
without limitation direct, special, indirect, or
consequential damages that may result from the use of
these materials.
SAP does not warrant the accuracy or completeness of
the information, text, graphics, links or other items
contained within these materials. SAP has no control
over the information that you may access through the
use of hot links contained in these materials and does not
endorse your use of third party web pages nor provide
any warranty whatsoever relating to third party web
pages.
SAP NetWeaver “How-to” Guides are intended to
simplify the product implementation. While specific
product features and procedures typically are explained
in a practical business context, it is not implied that those
features and procedures are the only approach in solving
a specific business problem using SAP NetWeaver. Should
you wish to receive additional information, clarification
or support, please refer to SAP Consulting.
Any software coding and/or code lines / strings (“Code”)
included in this documentation are only examples and
are not intended to be used in a productive system
environment. The Code is only intended better explain
and visualize the syntax and phrasing rules of certain
coding. SAP does not warrant the correctness and
completeness of the Code given herein, and SAP shall
not be liable for errors or damages caused by the usage of
the Code, except if such damages were caused by SAP
intentionally or grossly negligent.
- 1 -
1 Business Scenario
This document describes how you can define and calculate balance sheet key figures
using the cell editor tool of the SAP BW BEx Query Designer.
With release BI Content 3.5.3 Add-On you can find an example query for the Cash Flow
Statement (technical name 0FIGL_VC1_Q0002), which contains numerous balance
sheet key figures (e.g. depreciation, changes to payables). A simplified copy of this
example query will be used to illustrate the step by step solution in section 3 of this
document.
Example: Cash Flow Statement
The cash flow statement delivers a key figure that evaluates the cash flow and cash
holdings of a company. This key figure shows where a company’s funds have been
accrued, where they have been spent, and which investment and financing measures
have been executed.
2 Introduction
This example query portrays the cash flow statement in two different reporting time
frames. The reporting time frames are drilled down in the columns. The balance sheet
key figures for the cash flow statement are calculated using the cell editor of the BEx
Query Designer and drilled down in the report rows.
The cash flow statement is created for one company code, which has to be entered by
means of a variable.
Important Notes:
1. This query is based on the analysis scenario Financial Statements in the SAP
BW System. The query uses the virtual InfoCube General Ledger: Financial
Statements (technical name 0FIGL_VC1) and the characteristic Financial
Statement Item (technical name 0GLACCEXT) to calculate balance sheet key
figures.
2. This query is based on the financial statement version Commercial Balance
Sheet (technical name INT), which is delivered with the SAP R/3 System
(Financials) as a Customizing template. So that the query can be executed
without producing errors, the financial statement version Commercial Balance
Sheet (technical name INT) has to be loaded into the BW system as a hierarchy
for the InfoObject Financial Statement (technical name 0GLACCEXT).
- 2 -
3. Financial statements other to that delivered by SAP (Commercial Balance Sheet;
technical name INT), can be applied in customer systems. Therefore this query
serves as an example and a template to demonstrate the technical realization of
balance sheet key figures in the SAP BW system. In particular, cell calculation
(cell reference and formulas) is used in the BEx Query Designer.
4. Customer-defined queries for balance sheet key figures can be created in the
customer system using this example.
5. Select parameter VCCUBE_0FIGL_VC1_SEL in table RSADMIN. To do this, use
report SAP_RSADMIN_MAINTAIN and observe SAP Note 606445.
- 3 -
3 The Step By Step Solution
This section describes the definition of an example query, which is based on InfoCube
0FIGL_VC1 and on characteristic 0GLACCEXT to calculate balance sheet key figures.
This query displays the cash flow statement in two different reporting period intervals,
which are drilled down in the columns. The balance sheet key figures for the cash flow
statement are drilled down in the report rows.
The Step By Step solution is divided in two major sections:
• The first section describes the definition of filter, free characteristics, columns,
and rows of the Cash Flow Statement query.
• The second section illustrates the usage of the BEx Query Designer cell editor
to calculate (using cell references and formulas) changes of balance sheet key
figures from one reporting period to another.
BEx Query Designer: Definition of filter, free characteristics, columns, and
rows
1. Filter
The fundamental characteristics of the
virtual InfoCube 0FIGL_VC1 are
restricted by the filter of the example
query. Therefore, they cannot be
changed after query selection.
Especially, the example query is
restricted to a single value of the
InfoObject Company Code
(0COMP_CODE), which has to be
entered by means of the variable
0P_COCD.
The key figure of the example query is
also selected in the filter. The calculated
key figure Balance Sheet Value
(0FIGL_VC1_CK001) is the only one
used in the query and will be restricted
by the row definition and cell
calculations in section 3.2.
- 4 -
2. Free Characteristics
For free characteristics the InfoObject
Financial Statement Item (0GLACCEXT)
is used with active display hierarchy,
see Properties in the context menu (next
step 2.1.).
Be aware that this is the only InfoObject,
which supports the analysis scenario
Financial Statements in the SAP BW
System together with the virtual
InfoProvider 0FIGL_VC1.
2.1. Properties of characteristic
“Financial Statement Item”
(0GLACCEXT)
The example query is based on the
financial statement version Commercial
Balance Sheet (technical name INT),
which serves as active display hierarchy
of the free characteristic 0GLACCEXT
(see important notes in section 2
Introduction of this document).
Some nodes of this hierarchy will be
used for the definition of basic balance
sheet key figures within the rows of the
query.
3. Columns
Two reporting time intervals are
compared in the columns of the query.
Create a structure Time Frames in the
columns part of the BEx Query
Designer. Using the context menu of
this structure, create 3 selections for the
columns of the query. Details can be
found in the next steps (3.1. to 3.3.).
- 5 -
3.1. Column Reporting Periods
Use context menu of structure Time
Frames to create new selection
Reporting Periods.
In field Description, choose text variable
&0T_FPERF& and &0T_FPERT& to
display the period interval boundaries at
the column header.
Make a selection for time characteristic
Fiscal year/period (0FISCPER) and
restrict this characteristic using the
variable 0I_FPER (drag and drop
variable 0I_FPER from the list of
Characteristic Value Variables of
0FISCPER to the right side).
3.2. Column Comparison Periods
Use context menu of structure Time
Frames to create new selection
Comparison Periods.
In field Description, choose text variable
&0T_FPERF& and &0T_FPERT& to
display the period interval boundaries at
the column header.
Make a selection for time characteristic
Fiscal year/period (0FISCPER) and
restrict this characteristic using the
variable 0I_FPER2 (drag and drop
variable 0I_FPER2 from the list of
Characteristic Value Variables of
0FISCPER to the right side).
- 6 -
3.3. Column Second Comparison
Periods
Use context menu of structure Time
Frames to create new selection Second
Comparison Periods.
In field Description, choose text variable
&0T_FPERF& and &0T_FPERT& to
display the period interval boundaries at
the column header.
Make a selection for time characteristic
Fiscal year/period (0FISCPER) and
restrict this characteristic using the
variable 0I_FPER3 (drag and drop
variable 0I_FPER3 from the list of
Characteristic Value Variables of
0FISCPER to the right side).
The column Second Comparison
Periods only serves as difference
formation for the report cells calculated.
Therefore, it should be hidden at query
runtime. In the BEx Query Designer
display the context menu of this column
and choose function Properties. In the
following Properties popup find the field
Display Hide and choose the value
Hide (Can be shown) from the drop-
down box.
4. Rows (overview)
The balance sheet key figures for the
cash flow statement are calculated
using the cell editor of the BEx Query
Designer and drilled down in the report
rows.
Create a structure Key Figures in the
rows part of the BEx Query Designer.
Using the context menu of this structure,
create a selection or a formula for each
row of the query. Details can be found in
the next steps (4.1. to 4.4.).
- 7 -
4.1. Basic balance sheet key figures
Basic balance sheet key figures are
defined by selections with regard of the
characteristic Financial Statement Item
(0GLACCEXT). One or several nodes of
the hierarchy Commercial balance sheet
(INT) are selected.
Example Depreciation:
Use context menu of structure Key
Figures to create new selection
Depreciation. Make a selection (drag
and drop InfoObject 0GLACCEXT to the
right side) for characteristic Financial
Statement Item (0GLACCEXT). Use
function restrict on the context menu of
the InfoObject 0GLACCEXT to restrict
this characteristic to node Depreciation
(key 3070000) of the hierarchy
Commercial balance sheet (INT).
Other basic balance sheet key figures of
the example query:
• Result: node 0PLPROFIT
• Reserves: node 2030000
• Inventory and Receivables from
Deliveries and Services: nodes
1041000 and 1042000
• Payables from Deliveries and
Services: node 2044000
The rows Reserves, Inventory and
Receivables from Deliveries and
Services, and Payables from Deliveries
and Services only serve as difference
formations for the report cells
calculated. Therefore, they should be
hidden at query runtime. In the BEx
Query Designer display the context
menu of these rows and choose function
Properties. In the following Properties
popup find the field Display Hide and
choose the value Hide (Can be shown)
from the drop-down box.
Context menu of characteristic 0GLACCEXT Restrict
- 8 -
4.2. Differences of basic balance
sheet key figures
The rows corresponding to differences
of basic balance sheet key figures have
to be defined as placeholders. The
values will be calculated using the BEx
Query Designer cell editor.
Example Changes to Inventories and
Receivables:
Use context menu of structure Key
Figures to create a new formula
Changes to Inventories and
Receivables. Define the formula the
following way:
0 * ‘Inventories and Receivables from
Deliveries and Services’
The row Changes to Payables can be
defined analogously.
4.3. Increase / decrease of basic
balance sheet key figures
The rows corresponding to increase /
decrease of basic balance sheet key
figures have to be defined as
placeholders. The values will be
calculated using the BEx Query
Designer cell editor.
Example Increase of Reserves:
Use context menu of structure Key
Figures to create a new formula
Increase of Reserves. Define the
formula the following way:
0 * 'Reserves'
The row Decrease of Reserves can be
defined analogously.
- 9 -
4.4. Totals
Totals and subtotals are calculated
using formulas.
Use context menu of structure Key
Figures to create a new formula
Operating Cash Flow. Define the
formula the following way:
'Result' + 'Depreciation' + 'Increase of
Reserves' + 'Decrease of Reserves' +
'Changes to Inventories and
Receivables' + 'Changes to Payables'
- 10 -
BEx Query Designer: Cell Editor (using cell references and formulas)
5. Overview
Start the BEx Query Designer cell editor by clicking the button Define Cells. A table will be shown,
which is built up by the columns and rows defined durinf the previous steps (columns: reporting
periods, rows: balance sheet key figures). Initially, the cells of the table are empty and have to be
filled the way as depicted below.
Left two columns of the cell editor:
Right two columns of the cell editor
5.1. Cell References
Using the context menu on a cell of the
table above to define a cell reference via
function New Cell Reference.
After the definition of each cell reference
give them an unique description (column
name / row name), so that the cell
references can be identified more easily.
The description of a cell reference can
be changed using the context menu via
function Properties.
In the table above, all cell references are
marked by the following icon:
Properties of cell reference Reporting Periods/Reserves:
- 11 -
5.2. Differences of basic balance
sheet key figures
In order to calculate changes of basic
balance sheet key figures, use the
function New Formula of the context
menu of the corresponding table cell.
The previously defined cell references
are used as operands of the formulas.
Again, give them an unique description
(column name / row name), so that the
formulas can be identified more easily.
See examples on the right side.
• For the column Reporting Periods,
each formula calculates the
difference:
‘Reporting Periods / <Row Key
Figure>’ – ‘Comparison Periods /
<Row Key Figure>’
• For the column Comparison Periods,
each formula calculates the
difference:
‘Comparison Periods / <Row Key
Figure>’ – ‘Second Comparison
Periods / <Row Key Figure>’
In the table above, all formulas are
marked by the following icon:
Formula Reporting Periods / Changes to Payables
Formula Comparison Periods / Changes to Payables
- 12 -
5.3. Increase / decrease of basic
balance sheet key figures
In order to calculate increases /
decreases of basic balance sheet key
figures, use the function New Formula of
the context menu of the corresponding
table cell. The previously defined cell
references are used as operands of the
formulas.
Again, give them an unique description
(column name / row name), so that the
formulas can be identified more easily.
See examples on the right side.
• For the column Reporting Periods,
each formula calculates the
difference:
‘Reporting Periods / <Row Key
Figure>’ – ‘Comparison Periods /
<Row Key Figure>’
• For the column Comparison Periods,
each formula calculates the
difference:
‘Comparison Periods / <Row Key
Figure>’ – ‘Second Comparison
Periods / <Row Key Figure>’
• For increases of balance sheet key
figures, these differences are the
operand of the mathematical function
Maximum from 0 and Operand
(MAX0). For decreases the
mathematical function Minimum from
0 and Operand (MIN0) is used.
In the table above, all formulas are
marked by the following icon:
Formula Reporting Periods / Increase of Reserves
Formula Comparison Periods / Decrease of Reserves
www.sap.com/netweaver

More Related Content

PPTX
Управління документацією: як побудувати ефективну структуру?
PPT
Working with structures and cells
DOCX
ali afiv khasan smk N 2 slawi
PDF
La Stampa - Candidati in fuga dal faccia a faccia
DOCX
Daftar pertanyaan pemeriksaan pemerintahan
PDF
Regulamento de funcionamento do servizo de almorzo na escola
PPT
Sistema Cardiorespiratorio
Управління документацією: як побудувати ефективну структуру?
Working with structures and cells
ali afiv khasan smk N 2 slawi
La Stampa - Candidati in fuga dal faccia a faccia
Daftar pertanyaan pemeriksaan pemerintahan
Regulamento de funcionamento do servizo de almorzo na escola
Sistema Cardiorespiratorio

Viewers also liked (10)

PPTX
Reuben Marketing Services Website Audit PowerPoint
PDF
Connecting Collections, March 2010. Almut Grűner, UKMCG Medicine At The Movies
PPT
UMP Cuiabá - Planejamento 2011.
PDF
suemoneathគោលសំខាន់ក្នុងសិង្គាលិកសូត្រ
PDF
Silabus
PPT
1st lecture islam
PDF
Biomass power plants
PDF
265 англ. яз. 11кл. spotlight (англ. в фокусе) афанасьева о.в, дули дж, михе...
ODP
презентация Open document
PDF
Chapter 06
Reuben Marketing Services Website Audit PowerPoint
Connecting Collections, March 2010. Almut Grűner, UKMCG Medicine At The Movies
UMP Cuiabá - Planejamento 2011.
suemoneathគោលសំខាន់ក្នុងសិង្គាលិកសូត្រ
Silabus
1st lecture islam
Biomass power plants
265 англ. яз. 11кл. spotlight (англ. в фокусе) афанасьева о.в, дули дж, михе...
презентация Open document
Chapter 06
Ad

Similar to Cellediting bex (20)

PDF
Day 9 __10_introduction_to_bi_enterprise_reporting_1___2
PDF
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
PDF
SAP BI 7.0 Info Providers
PPT
Unit 2 b_ex_query_designer
PPT
Sap Bw 3.5 Overview
DOC
How to broadcast a b ex report through e
PDF
Bw migration strategy 6a19f233 0e01-0010-6593-c47af5a8df3b
PDF
Copy b wsimple
PDF
information-broadcasting-in-sap-bw-35
PPTX
BEX.pptx
PPT
SAP BI/DW Training with BO Integration
PPT
SAP 102 - BW Basics.ppt
PPT
Ibm Cognos B Iund Pmfj
PDF
Business planning and consolidation 5.x%3a logic explained%2c part 1
PDF
How to manage allocations in bpc 7.0
PPT
SAP - Business Objects - Ri happy
PDF
The most important SAP Finance tables for Alteryx users
PDF
IBM Cognos 10 Framework Manager Metadata Modeling: Tips and Tricks
PPT
Sap bi training with bo integrations
PDF
How to use abap cds for data provisioning in bw
Day 9 __10_introduction_to_bi_enterprise_reporting_1___2
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
SAP BI 7.0 Info Providers
Unit 2 b_ex_query_designer
Sap Bw 3.5 Overview
How to broadcast a b ex report through e
Bw migration strategy 6a19f233 0e01-0010-6593-c47af5a8df3b
Copy b wsimple
information-broadcasting-in-sap-bw-35
BEX.pptx
SAP BI/DW Training with BO Integration
SAP 102 - BW Basics.ppt
Ibm Cognos B Iund Pmfj
Business planning and consolidation 5.x%3a logic explained%2c part 1
How to manage allocations in bpc 7.0
SAP - Business Objects - Ri happy
The most important SAP Finance tables for Alteryx users
IBM Cognos 10 Framework Manager Metadata Modeling: Tips and Tricks
Sap bi training with bo integrations
How to use abap cds for data provisioning in bw
Ad

Recently uploaded (20)

PDF
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
project resource management chapter-09.pdf
PDF
STKI Israel Market Study 2025 version august
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Architecture types and enterprise applications.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Tartificialntelligence_presentation.pptx
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
cloud_computing_Infrastucture_as_cloud_p
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Module 1.ppt Iot fundamentals and Architecture
DP Operators-handbook-extract for the Mautical Institute
1 - Historical Antecedents, Social Consideration.pdf
WOOl fibre morphology and structure.pdf for textiles
Getting started with AI Agents and Multi-Agent Systems
Programs and apps: productivity, graphics, security and other tools
project resource management chapter-09.pdf
STKI Israel Market Study 2025 version august
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Architecture types and enterprise applications.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Tartificialntelligence_presentation.pptx
OMC Textile Division Presentation 2021.pptx
Developing a website for English-speaking practice to English as a foreign la...
NewMind AI Weekly Chronicles – August ’25 Week III
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
How ambidextrous entrepreneurial leaders react to the artificial intelligence...

Cellediting bex

  • 1. How-to Guide SAP NetWeaver ‘04 How To… Calculate balance sheet key figures using the BEx Query Designer cell editor Version 1.00 – December 2004 Applicable Releases: SAP NetWeaver ’04 (BW 3.5)
  • 2. © Copyright 2004 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook,and PowerPointare registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWinare trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C ® , World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. These materials are provided “as is” without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages. SAP NetWeaver “How-to” Guides are intended to simplify the product implementation. While specific product features and procedures typically are explained in a practical business context, it is not implied that those features and procedures are the only approach in solving a specific business problem using SAP NetWeaver. Should you wish to receive additional information, clarification or support, please refer to SAP Consulting. Any software coding and/or code lines / strings (“Code”) included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent.
  • 3. - 1 - 1 Business Scenario This document describes how you can define and calculate balance sheet key figures using the cell editor tool of the SAP BW BEx Query Designer. With release BI Content 3.5.3 Add-On you can find an example query for the Cash Flow Statement (technical name 0FIGL_VC1_Q0002), which contains numerous balance sheet key figures (e.g. depreciation, changes to payables). A simplified copy of this example query will be used to illustrate the step by step solution in section 3 of this document. Example: Cash Flow Statement The cash flow statement delivers a key figure that evaluates the cash flow and cash holdings of a company. This key figure shows where a company’s funds have been accrued, where they have been spent, and which investment and financing measures have been executed. 2 Introduction This example query portrays the cash flow statement in two different reporting time frames. The reporting time frames are drilled down in the columns. The balance sheet key figures for the cash flow statement are calculated using the cell editor of the BEx Query Designer and drilled down in the report rows. The cash flow statement is created for one company code, which has to be entered by means of a variable. Important Notes: 1. This query is based on the analysis scenario Financial Statements in the SAP BW System. The query uses the virtual InfoCube General Ledger: Financial Statements (technical name 0FIGL_VC1) and the characteristic Financial Statement Item (technical name 0GLACCEXT) to calculate balance sheet key figures. 2. This query is based on the financial statement version Commercial Balance Sheet (technical name INT), which is delivered with the SAP R/3 System (Financials) as a Customizing template. So that the query can be executed without producing errors, the financial statement version Commercial Balance Sheet (technical name INT) has to be loaded into the BW system as a hierarchy for the InfoObject Financial Statement (technical name 0GLACCEXT).
  • 4. - 2 - 3. Financial statements other to that delivered by SAP (Commercial Balance Sheet; technical name INT), can be applied in customer systems. Therefore this query serves as an example and a template to demonstrate the technical realization of balance sheet key figures in the SAP BW system. In particular, cell calculation (cell reference and formulas) is used in the BEx Query Designer. 4. Customer-defined queries for balance sheet key figures can be created in the customer system using this example. 5. Select parameter VCCUBE_0FIGL_VC1_SEL in table RSADMIN. To do this, use report SAP_RSADMIN_MAINTAIN and observe SAP Note 606445.
  • 5. - 3 - 3 The Step By Step Solution This section describes the definition of an example query, which is based on InfoCube 0FIGL_VC1 and on characteristic 0GLACCEXT to calculate balance sheet key figures. This query displays the cash flow statement in two different reporting period intervals, which are drilled down in the columns. The balance sheet key figures for the cash flow statement are drilled down in the report rows. The Step By Step solution is divided in two major sections: • The first section describes the definition of filter, free characteristics, columns, and rows of the Cash Flow Statement query. • The second section illustrates the usage of the BEx Query Designer cell editor to calculate (using cell references and formulas) changes of balance sheet key figures from one reporting period to another. BEx Query Designer: Definition of filter, free characteristics, columns, and rows 1. Filter The fundamental characteristics of the virtual InfoCube 0FIGL_VC1 are restricted by the filter of the example query. Therefore, they cannot be changed after query selection. Especially, the example query is restricted to a single value of the InfoObject Company Code (0COMP_CODE), which has to be entered by means of the variable 0P_COCD. The key figure of the example query is also selected in the filter. The calculated key figure Balance Sheet Value (0FIGL_VC1_CK001) is the only one used in the query and will be restricted by the row definition and cell calculations in section 3.2.
  • 6. - 4 - 2. Free Characteristics For free characteristics the InfoObject Financial Statement Item (0GLACCEXT) is used with active display hierarchy, see Properties in the context menu (next step 2.1.). Be aware that this is the only InfoObject, which supports the analysis scenario Financial Statements in the SAP BW System together with the virtual InfoProvider 0FIGL_VC1. 2.1. Properties of characteristic “Financial Statement Item” (0GLACCEXT) The example query is based on the financial statement version Commercial Balance Sheet (technical name INT), which serves as active display hierarchy of the free characteristic 0GLACCEXT (see important notes in section 2 Introduction of this document). Some nodes of this hierarchy will be used for the definition of basic balance sheet key figures within the rows of the query. 3. Columns Two reporting time intervals are compared in the columns of the query. Create a structure Time Frames in the columns part of the BEx Query Designer. Using the context menu of this structure, create 3 selections for the columns of the query. Details can be found in the next steps (3.1. to 3.3.).
  • 7. - 5 - 3.1. Column Reporting Periods Use context menu of structure Time Frames to create new selection Reporting Periods. In field Description, choose text variable &0T_FPERF& and &0T_FPERT& to display the period interval boundaries at the column header. Make a selection for time characteristic Fiscal year/period (0FISCPER) and restrict this characteristic using the variable 0I_FPER (drag and drop variable 0I_FPER from the list of Characteristic Value Variables of 0FISCPER to the right side). 3.2. Column Comparison Periods Use context menu of structure Time Frames to create new selection Comparison Periods. In field Description, choose text variable &0T_FPERF& and &0T_FPERT& to display the period interval boundaries at the column header. Make a selection for time characteristic Fiscal year/period (0FISCPER) and restrict this characteristic using the variable 0I_FPER2 (drag and drop variable 0I_FPER2 from the list of Characteristic Value Variables of 0FISCPER to the right side).
  • 8. - 6 - 3.3. Column Second Comparison Periods Use context menu of structure Time Frames to create new selection Second Comparison Periods. In field Description, choose text variable &0T_FPERF& and &0T_FPERT& to display the period interval boundaries at the column header. Make a selection for time characteristic Fiscal year/period (0FISCPER) and restrict this characteristic using the variable 0I_FPER3 (drag and drop variable 0I_FPER3 from the list of Characteristic Value Variables of 0FISCPER to the right side). The column Second Comparison Periods only serves as difference formation for the report cells calculated. Therefore, it should be hidden at query runtime. In the BEx Query Designer display the context menu of this column and choose function Properties. In the following Properties popup find the field Display Hide and choose the value Hide (Can be shown) from the drop- down box. 4. Rows (overview) The balance sheet key figures for the cash flow statement are calculated using the cell editor of the BEx Query Designer and drilled down in the report rows. Create a structure Key Figures in the rows part of the BEx Query Designer. Using the context menu of this structure, create a selection or a formula for each row of the query. Details can be found in the next steps (4.1. to 4.4.).
  • 9. - 7 - 4.1. Basic balance sheet key figures Basic balance sheet key figures are defined by selections with regard of the characteristic Financial Statement Item (0GLACCEXT). One or several nodes of the hierarchy Commercial balance sheet (INT) are selected. Example Depreciation: Use context menu of structure Key Figures to create new selection Depreciation. Make a selection (drag and drop InfoObject 0GLACCEXT to the right side) for characteristic Financial Statement Item (0GLACCEXT). Use function restrict on the context menu of the InfoObject 0GLACCEXT to restrict this characteristic to node Depreciation (key 3070000) of the hierarchy Commercial balance sheet (INT). Other basic balance sheet key figures of the example query: • Result: node 0PLPROFIT • Reserves: node 2030000 • Inventory and Receivables from Deliveries and Services: nodes 1041000 and 1042000 • Payables from Deliveries and Services: node 2044000 The rows Reserves, Inventory and Receivables from Deliveries and Services, and Payables from Deliveries and Services only serve as difference formations for the report cells calculated. Therefore, they should be hidden at query runtime. In the BEx Query Designer display the context menu of these rows and choose function Properties. In the following Properties popup find the field Display Hide and choose the value Hide (Can be shown) from the drop-down box. Context menu of characteristic 0GLACCEXT Restrict
  • 10. - 8 - 4.2. Differences of basic balance sheet key figures The rows corresponding to differences of basic balance sheet key figures have to be defined as placeholders. The values will be calculated using the BEx Query Designer cell editor. Example Changes to Inventories and Receivables: Use context menu of structure Key Figures to create a new formula Changes to Inventories and Receivables. Define the formula the following way: 0 * ‘Inventories and Receivables from Deliveries and Services’ The row Changes to Payables can be defined analogously. 4.3. Increase / decrease of basic balance sheet key figures The rows corresponding to increase / decrease of basic balance sheet key figures have to be defined as placeholders. The values will be calculated using the BEx Query Designer cell editor. Example Increase of Reserves: Use context menu of structure Key Figures to create a new formula Increase of Reserves. Define the formula the following way: 0 * 'Reserves' The row Decrease of Reserves can be defined analogously.
  • 11. - 9 - 4.4. Totals Totals and subtotals are calculated using formulas. Use context menu of structure Key Figures to create a new formula Operating Cash Flow. Define the formula the following way: 'Result' + 'Depreciation' + 'Increase of Reserves' + 'Decrease of Reserves' + 'Changes to Inventories and Receivables' + 'Changes to Payables'
  • 12. - 10 - BEx Query Designer: Cell Editor (using cell references and formulas) 5. Overview Start the BEx Query Designer cell editor by clicking the button Define Cells. A table will be shown, which is built up by the columns and rows defined durinf the previous steps (columns: reporting periods, rows: balance sheet key figures). Initially, the cells of the table are empty and have to be filled the way as depicted below. Left two columns of the cell editor: Right two columns of the cell editor 5.1. Cell References Using the context menu on a cell of the table above to define a cell reference via function New Cell Reference. After the definition of each cell reference give them an unique description (column name / row name), so that the cell references can be identified more easily. The description of a cell reference can be changed using the context menu via function Properties. In the table above, all cell references are marked by the following icon: Properties of cell reference Reporting Periods/Reserves:
  • 13. - 11 - 5.2. Differences of basic balance sheet key figures In order to calculate changes of basic balance sheet key figures, use the function New Formula of the context menu of the corresponding table cell. The previously defined cell references are used as operands of the formulas. Again, give them an unique description (column name / row name), so that the formulas can be identified more easily. See examples on the right side. • For the column Reporting Periods, each formula calculates the difference: ‘Reporting Periods / <Row Key Figure>’ – ‘Comparison Periods / <Row Key Figure>’ • For the column Comparison Periods, each formula calculates the difference: ‘Comparison Periods / <Row Key Figure>’ – ‘Second Comparison Periods / <Row Key Figure>’ In the table above, all formulas are marked by the following icon: Formula Reporting Periods / Changes to Payables Formula Comparison Periods / Changes to Payables
  • 14. - 12 - 5.3. Increase / decrease of basic balance sheet key figures In order to calculate increases / decreases of basic balance sheet key figures, use the function New Formula of the context menu of the corresponding table cell. The previously defined cell references are used as operands of the formulas. Again, give them an unique description (column name / row name), so that the formulas can be identified more easily. See examples on the right side. • For the column Reporting Periods, each formula calculates the difference: ‘Reporting Periods / <Row Key Figure>’ – ‘Comparison Periods / <Row Key Figure>’ • For the column Comparison Periods, each formula calculates the difference: ‘Comparison Periods / <Row Key Figure>’ – ‘Second Comparison Periods / <Row Key Figure>’ • For increases of balance sheet key figures, these differences are the operand of the mathematical function Maximum from 0 and Operand (MAX0). For decreases the mathematical function Minimum from 0 and Operand (MIN0) is used. In the table above, all formulas are marked by the following icon: Formula Reporting Periods / Increase of Reserves Formula Comparison Periods / Decrease of Reserves