Balance Sheet and Profit and Loss Statements in the SAP Business Information Warehouse Exercise.pdf

Embed Size (px)

Citation preview

  • 8/11/2019 Balance Sheet and Profit and Loss Statements in the SAP Business Information Warehouse Exercise.pdf

    1/6

    SAP TECHED 03 BASEL

    BALANCE SHEET AND PROFIT LOSS

    STATEMENT IN SAP BUSINESS

    INFORMATION WAREHOUSE

    BW 251

    Exercises / Solutions

    BARBARA NEUMANN,PRODUCT MANAGER BI,SAPAG

    RICHARD PUTZ,DEVELOPMENT ARCHITECT BI,SAPAG

  • 8/11/2019 Balance Sheet and Profit and Loss Statements in the SAP Business Information Warehouse Exercise.pdf

    2/6

    SAP TECHED 03 BASEL 1

    BALANCE SHEET AND PROFIT&LOSS STATEMENT IN SAPBUSINESS INFORMATION WAREHOUSE

    In this exercise you will learn how to customize the functions available in SAP BW BCT in order to present a balance sheet/P&L and

    make these functions available for another scenario. Our example will show you how to set up the Business Content for a balance

    sheet/P&L statement within profit center accounting.

    System Information

    At the beginning of the exercise the speaker will provide you with your group number and all the information necessary for accessing

    the system.

    Overview

    The BCT objects available within SAP BW Business Content that enable the Balance Sheet and P&L Statement are the following

    virtual InfoCubes with Services:

    0FIGL_VC1 General Ledger Accounting (for Period Accounting)

    0FIGL_VC2 Cost-of-Sales Ledger (for Cost of Sales Accounting)

    These virtual InfoCubes obtain the data to be displayed in the form of a balance sheet and P&L statement from the following Basic

    InfoCubes:

    0FIGL_C01 (Period Accounting)

    0FIGL_C02 (Cost of Sales Accounting)

    The function module (i.e. the virtual InfoProvider Service) is:

    RS_BCT_FIGL_DATA_GET_VC1 (Period Accounting)

    RS_BCT_FIGL_DATA_GET_VC2 (Cost of Sales Accounting)

    In this exercise we want you to adapt the objects for a Profit Center Accounting scenario.

    For an overview of the objects used in this exercise, see the following graphic:

    Schema:

    Virtual InfoCube with Service:CreateZPCyyyyxx(yyyy is the date e.g. 0809, xx is your group number) use InfoCube

    ZPCA_VC00 as a template.

    Function Module (i.e. the virtual InfoCube Service)Use RS_BCT_PCA_DATA_GET_VC00 (available in the function module library, which is

    a copy of function module RS_BCT_FIGL_DATA_GET_VC1)

    Basic InfoCube:ZPCA C00 (contains transaction data loaded from R/3 Profit Center Accounting)

  • 8/11/2019 Balance Sheet and Profit and Loss Statements in the SAP Business Information Warehouse Exercise.pdf

    3/6

    SAP TECHED 03 BASEL SEPTEMBER 30OCTOBER 2,2003 2

    1. Create a virtual InfoCube with Services

    Open the Administrator Workbench (transaction RSA1).Open the area for the InfoProvider and navigate to the InfoArea BI_BALSHEET/BI Balance Sheet/P&L Session.

    Within this InfoArea, create a virtual InfoCube with Services with the technical name ZPCyyyyxx. Use the InfoCube with services

    ZPCA_VC00 as a template.

    In the box InfoCube Type, mark the radio button With Services. Click on the Details button and enter the following flags in the

    Details for Service Cube window:

    Enter the name of the function module that is to provide the data for queries on your virtual InfoCube:

    RS_BCT_PCA_DATA_GET_VC00

    Set a flag for Convert Restrictions. Set a flag for Expand Hierarchy Restrictions.

    Click on the green flag button to confirm your entries.

    Back in the Edit InfoCube window, click on the Create button. Activate the new InfoCube.

    2. Comparison of the virtual InfoCube with Services and the Basic InfoCube

    To gain a better understanding of the differences between the virtual InfoCube and the Basic InfoCube that provides the

    transaction data, and between the properties of the different objects needed to use the contra item function, you should

    compare the definition of the newly created InfoCube with Services (ZPCyyyyxx) with the definition of the Basic

    InfoCube ZPCA_C00.

    To do this open a new screen within the system using the transaction /orsdcube. This opens InfoCube maintenance. Enter

    the name of the Basis Cube (ZPCA_C00) to be compared with your newly created virtual InfoCube (ZPCyyyyxx),then

    click on Display.

    Look at the characteristics tab strip. In the definition of the virtual InfoCube you will find an additional characteristic.

    What is its name and what is the function of this characteristic?

    Now open the key figures tab strip. In the definition of the virtual InfoCube, you will find the key figures 0VAL_FLOW

    and 0VAL_STOCK. Do you know the meaning of these key figures? Explain them.

    3. Checking the function module

    Now take a closer look at the function module that works as a service for the virtual InfoCube RS_BCT_PCA_DATA_GET_VC00

    Use the transaction /nse37 for this. The function builder opens. Please do not change the function module!!Enter the name of the

    function module and click on Display.

    Check the function module and answer the following questions:

    1. Where can you find the name of the Basic InfoCube?

    2. What kind of changes must be made in order to adapt the interface so that another Basic InfoCube can be used as the InfoProvider

    for the virtual InfoCube?

    Answers:

    1. Under tab strip Import, you will find the parameter I_BASIC_INFOPROV. The default value for this Basic InfoProvider is

    ZPCA_C00, which is also the technical name of the Basic InfoCube.

    2. In order to change the Basic InfoProvider you copy the function module and enter another default value under the Import tab

    strip.

    4. Analyzing the transaction data

    To analyze the transaction data from profit center accounting, using the Balance Sheet and P&L statement features, create a query

    based on your virtual InfoCube ZPCyyyyxx.

  • 8/11/2019 Balance Sheet and Profit and Loss Statements in the SAP Business Information Warehouse Exercise.pdf

    4/6

    SAP TECHED 03 BASEL SEPTEMBER 30OCTOBER 2,2003 3

    Open the Query Designer as follows: Start Programs Business Explorer Query Designer. Log in with the user and password you

    have used for the BW system.Please use the following parameters to define your query:

    Filter

    Characteristic Technical Name

    of Characteristic

    Filter Value Technical Name

    of Filter Value

    Currency Type 0CURTYPE Company Code Currency 10

    Fiscal Year Variant 0FISCVARNT Calendar year, 4 spec. periods K4

    Value Type 0VTYPE Actual 10

    Version 0VERSION Plan/Actual Version 0

    Company Code 0COMP_CODE IDES AG 1000

    Controlling Area 0CO_AREA CO Europe 1000

    Free Characteristics

    Profit Center (technical name 0PROFIT_CTR)

    Rows

    Financial Statement Item (technical name 0GLACCEXT)

    Use display hierarchy INT1: Right click on the characteristic Financial Statement Item Properties Enter INT1 on the

    field Hierarchy Name and press OK.

    Columns

    Create a column structure as follows:

    Columns

    Key Figures (Structure)

    Balance Sheet Value (Calculated key figure)

    Periods (Structure)

    Reporting Period / &0T_FPERF& To &0T_FPERT& (Selection)Reporting Period / &0T_FPERF& To &0T_FPERT& (Selection)

    Detailed description of the column structure:

    1. Create a calculated key figure named Balance Sheet Value - Calculation: Key figure Stock Value plus Flow Value.

    This allows the result of the balance sheet to be displayed.

    2. Assign this calculated key figure to the column structure. Proceed as follows: Right-click on the Columns bar and

    choose New Structure. Right-click on the new structure Properties Enter Key Figures for the field Description

    Press OK. Assign calculated key figure Balance Sheet Value via Drag&Drop.

    3. You now have to restrict this calculated key figure to the periods you want to compare by using a selection. Proceed as

    follows: Right-click on the Columns bar and choose New Structure. Right-click on the new structure New

    Selection Dimension Time Choose characteristic Fiscal Year/Period via Drag&Drop Open characteristic value

    variables and choose variable Period/Fiscal Year (Interval Entry, Required) (technical name 0I_FPER) via

    Drag&Drop Enter the following name: Reporting Period &0T_FPERF& To &0T_FPERT& - Click OK.4. Create a second selection within the structure, : Right-click on the new structure New Selection Dimension Time

    Choose characteristic Fiscal Year/Period via Drag&Drop Open characteristic value variables and choose variable

    Comparison Period (Fiscal Year/Period) (technical name 0I_FPER2) via Drag&Drop. Enter the following name:

    Reporting Period &0T_FPERF& To &0T_FPERT&- Click OK.

    5. Finally enter a name for the structure: Right-click on the structure Properties Enter the description Periods Click

    OK.

    Save the query to your favorites, using the technical name ZPCyyyyxx_Q0001 (ZPCyyyyxx is the name of your InfoCube), and the

    descriptionBalance Sheet Group xx. Launch the query to the Web.

    Enter the following variable values:

  • 8/11/2019 Balance Sheet and Profit and Loss Statements in the SAP Business Information Warehouse Exercise.pdf

    5/6

    SAP TECHED 03 BASEL SEPTEMBER 30OCTOBER 2,2003 4

    Period/Fiscal Year (Interval Entry, Required) 001.2001 to 012.2001

    Comparison Period (Fiscal Year/Period) 001.2000 to 012.2000Click Execute.

    Expand the Assets and Liabilities nodes to find the contra items.

    Solution:

    1. Query definition:

    Compare with our ZPCA_VC00_Q001 template. Please do not change this query template. Please only use display mode

    in the query designer.

    2. Contra items:

    The contra items are found in the display hierarchy INT1 of the characteristic Financial statement item by using the

    following paths;

    ASSETSCurrent assetsReceivables and other assetsPayments received on account of orders Advanced

    customer payments

    LIABILITIESPayablesPayments received on account of orders due within one year Advanced customer

    payments

    5. Analyzing the master data hierarchy of the characteristic 0GLACCEXT

    In order to check how the query result was calculated, compare the display hierarchy used in the query with the master data hierarchy

    of the characteristic 0GLACCEXT in the Administrator Workbench.

    Start the Administrator Workbench using the transaction RSAL. Click on the button Maintain Hierarchies (small green tree icon).

    The initial hierarchy maintenance screen opens. Enter the name of the characteristic 0GLACCEXT and press enter. Choose the

    hierarchy INT1 on the following screen and press Display hierarchy. The master data hierarchy of the characteristic

    0GLACCEXT appears.

    Expand the master data hierarchy to the same nodes as you have did before in your query. Check the values of the attribute

    0BAL_DEPEND (expand width of last column Balance Dependency) and the key composition of the characteristic 0GLACCEXT

    (column Node Name).

  • 8/11/2019 Balance Sheet and Profit and Loss Statements in the SAP Business Information Warehouse Exercise.pdf

    6/6

    SAP TECHED 03 BASEL SEPTEMBER 30OCTOBER 2,2003 5

    Copyright 2003 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, NT, EXCEL, Word, PowerPoint and SQL Server are 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, Informix and Informix Dynamic ServerTM are trademarks of IBM Corporation in

    USA 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, the Citrix logo, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame,

    MultiWin and other Citrix product names referenced herein are trademarks of Citrix Systems, Inc.

    HTML, DHTML, XML, XHTML 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.

    MarketSet and Enterprise Buyer are jointly owned trademarks of SAP AG and Commerce One.

    SAP, SAP Logo, R/2, R/3, mySAP, mySAP.com, xApps, mySAP Business Suite, 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.

    SAP assumes no responsibility for errors or omissions in these materials.