Report Painter: More Advanced concepts

¥ SAP AG

Report Painter: More Advanced concepts
Copyright 1998- Gail Corbitt 1998Contents of this file are for the exclusive use of the special MINS 298C class dealing with SAP software at CSU Chico for the Fall 1998 semester. Any other use in either electronic or hardcopy form is prohibited without the express written permission of the author. This material is confidential. Do not share it with anyone not enrolled in the class. Lecture #2: Report Painter 2

¥ SAP AG

Report Painter: More Advanced concepts 
Objectives: 
    

Exploding Rows Creating Libraries Creating Models Adding Text and other Layout Features Performing Calculations Finishing up Report Painter

¥ SAP AG

Exploding Rows  Occurs when you have a Row Value that consists of more values  Example: Cost Center Codes 40000 .43000 could be split out to individual codes or collapsed  Default is to NOT explode  To change this default: Edit --> Rows --> Explode ¥ SAP AG .

Exploding Report Rows Cost elements Actual 30. 5. . 5.000 5.000 5.000 5. 5.000 5.000 5.000 20.000 30. 5.000 5.000 Plan 5. 5. Explode Group 1 400000 400100 Group 2 600000 600100 Single values ¥ SAP AG 5.000 10.000 10.000 10.000 10.000 20.000 Var.000 10.000 10.000 5.000 Plan Var. 5.000 Plan 20. 10. 10.000 10. 15. 10. 10. 10.000 5. 5.000 10.000 5.000 5. 10.000 10.000 Do not explode Cost element group Total Cost elements Actual Total 400000 400100 * Group 1 600000 600100 * Group 2 ** Total Cost elements 400000 400100 600000 600100 5.000 Var. 5.000 5.000 Actual 5.

typically numeric) Pre-Defined Columns  Defined by SAP  Consist of Key Figures and Characteristics  Can Define Your own ¥ SAP AG .Report Painter: Creating New Libraries  Library defines what objects (attributes of objects) can be included in it¶s reports  Defines Selected:    Characteristics (attributes that are key fields) Key Figures (types of ³measures´ or values -.

Predefined columns Combinations of characteristics and key figures ¥ SAP AG ..content-related reports .Library A library contains: . version..) Report group C Report group B Report group A .Key figures Value fields in selected data records .Characteristics Criteria for selecting data records (cost element.

Report Painter: Creating New Libraries  Report Painter --> Report Writer --> Library --> Change  Copy and then Modify (Add and Delete attributes)  Create: Creates a custom library for your reports  Create a Library for your Reports   Report Painter --> Report Writer --> Library --> Create Start name with a Z  Display Existing Libraries:  Report Painter --> Report Writer --> Library --> Display --> Utilities -> Catalog ¥ SAP AG .

activity fiscal year : : LIBRARY : Z01 TABLE : CCSS Description: Cost Center Accounting Reports ¥ SAP AG . activity fiscal year Stat. quantity plan Disp.Library Maintenance Characteristics Name X X X X X X Controlling area Cost center Cost element Order Fiscal year Period : : Position 1 2 3 4 5 6 X X X X X X Key figures Name Position 1 2 3 4 5 6 Costs Quantity Activity quantity Stat. current period Act. currency Variable costs : : Predef. quantity Costs in obj. columns Name X X X X X X Position 1 2 3 4 5 6 Actual costs Plan costs Act. qty.

Report Painter: Models  Model = Template  Sets of Rows OR Columns You May Want to Re-use  Models are Static: If you Change a Model you Must Change All Reports That Use the Model OR Have Reports with Different Versions of the Model  Report Painter --> Model --> Create  Use for column Definition: Within Report Definition: Edit --> Columns --> Get Column Model Edit Rows -.> Get Row Model (for Rows)  ¥ SAP AG .

&1GJAHB ? Period &1PERIV .Flexible Reports with Variables KOKRS GJAHR Controlling area &1KOKRE ? PERBL ? KSTAR Fiscal year &1GJAHV .&1PERIB ? Cost Element & 1KSTAR Resulting selection screen: Controlling area from fiscal year to fiscal year from period to period Cost element group (set) or value(s) ¥ SAP AG -------------------------------------------------------------------------------------------------- .

Formula: Rolling Periods or Previous June with This June Set: Set up groups that corresponds to the way the data are structured. Plant. Groups in CO can be used as a Set Parameter    Find parameter ID through technical info in field definition ¥ SAP AG .Using Variables in Report Painter  Variable: Defined Parameter that Users fill in at Run Time  Year. Company Code. Work Center. Starting Period and Ending Period. for the Data  Types of Variables:  Value: single Value such as Controlling Area. For example. etc. etc.

Value Variables Variable Field name 1PERIV PERBL Entry: Characteristic values Controlling area: Fiscal year: 001 1996 to Period: to Cost center: to 1PERIV 1PERIB Default value Description Table 1 from period CCSS Use parameter ID or group 1KOSET ¥ SAP AG .

Current year? MILLER 2.1 ¥ SAP AG . Formula variable 1GJAHVJ: Internal variable that determines the previous year 1GJAHVJ = 1GJAHLJ .Formula Variables Default values from the system 1. Previous year? Formula variable 1GJAHLJ: System exit that determines the current fiscal year from the controlling area and the fiscal year variant.

Variables for Groups (Set Variables) Entry: Characteristic values Controlling area: Fiscal year: 0001 1996 to Period: to Cost center: to or group 1KOSET 1PERIV 1PERIB Variable Field name Reference set Description Table 1KOSET KOSTL 1-S-KOSTL-AL Cost center group CCSS ¥ SAP AG .

Adding Blocks and Sections  Block: Columns that are grouped together    Example: Sales report in $ by Product vs Quantity by Product Row Structure is identical for all column blocks Menu Path: Go To --> New Column Block  Section: Rows that are grouped together  Example: Planned and Actual Costs by Cost Center and by Product Group Column Structure is identical for all row blocks Menu Path: Go To --> New Section   ¥ SAP AG .

key figures Employee Telephone costs : Actual Plan Actual Plan Var.Sections Example Cost elements 400000 400100 : Activity types Direct labor hours Direct repair hours : Stat. Section 1 Section 2 Section 3 ¥ SAP AG . Actual Plan Var.

.. : ... ..... qty Plan qty.... ... . : . .. .. .... Var. ... Act. Column block 2: Quantities Cost elem.... : ... : .. . identical row structure ¥ SAP AG ... ... 400000 400100 400200 : * Total ... .... 400000 400100 400200 : * Total . : ...... Act. .. costs Plan costs Var.Column Blocks Example Column block 1: Costs Cost elem... . .. ... : . .. ..

etc. parameters. characteristics. ¥ SAP AG .Adding Text to a Report  Types of Text     Title page Header (top of every page) Footer (foot of every page) Last Page  Entering Text    Menu Path: Extras --> Report Text Enter directly Can also use variables.

... for example Person responsible: < Selection parameters for example From period (value) To period (value) Fiscal year (value) . Special variables for example...Entering Text Standard variables Report name: From period: Fiscal year : Cost center: < < < < > > > > > Page: < > To period: < > Report name Page number Date of selection Author of report Library description .... person responsible for the cost center Characteristics for example Controlling area Cost center ¥ SAP AG .

Standard Layouts  Standard layouts used in many companies so all reports have same look and feel  Basically a Corporate Template for reports  Define a Standard in layouts   Menu Path: Report Writer --> Standard layout --> Create Attach a layout to a report by displaying it -.this is used for the report you are working on Defaults provided by SAP (see drop down list)  ¥ SAP AG .

. Color 4300 Wages 4400 Add. . .. .... .... ...... costs * Total Overscore and underscore ¥ SAP AG ...Layout Settings Column width No. ....... .... ....sign Text type --------- --------- --------- --------- Level of detail Cost element 4200 Salaries ... .. . ..... format +/.... . . ........ .....

break character .Standard Layout Report Definition Column totals Totals position X left right Layout Column width Right margin Unit width 1 to 5 X 3 characters Standard Layout: TRAINING Column break none X line Other character Other value Variants 1 to 5 Column texts Text type Alignment Master data text Left-justified X Field value and text X Centered Field name and fld value Right-justified Field value Suppress ¥ SAP AG Miscellaneous Suppress zero columns Underline col.

Calculations in Report Painter  Cells are given Z values as you click on cells you want to use for calculations  Suppress Rows and Columns that you want to use for calculations but don¶t want to show Z001 Z002 ¥ SAP AG .

key figures Employee Telephone units X001 Actual costs Plan costs Actual Plan Z001 Employee / actual Cell Z001 Z001 ¥ SAP AG X002 .Cells in Formula Columns Section 1 Costs Act. Plan Act. per employee Key figure with characteristics Predefined column Formula Formula: X001 / Z001 Section 2 Stat.

Section 2: Stat.Calculation Using Cells Section 1: Costs Plan Actual Act. actual key figures Plan Telephone units Actual Total Employee Section 3: Important statistics Plan Costs / Employee Telephone units / Employee ¥ SAP AG Actual ./Empl.

......... .. Total Formula: Z001 / Z002 Cell Z001 Z001 Cell Z002 Z002 Actual Plan Var...............Sections with Calculated Key Figures Section 1 Costs ..... .. . Costs per employee ¥ SAP AG ... ............................ Section 2 Stat. key figures Employee Telephone costs Actual Plan Section 3 Actual Plan Z001 Z002 Costs / Actual Employee / Act...

5.000 500 1.000 5. 1.000 2.000 1. 4.500 1. 1.000 4.000 4. 300 2. suppressed columns ¥ SAP AG . 1.Suppressed Rows and Columns Order 1000 2000 3000 4000 Debit previous year (Period 1 .000 4. 1. 2.13) 13) Debit current year (Period 1 .000 700 2.4) Total debit (Column 1 + Column 2) 1.

Additional Considerations  Variation: Allows you to run the same report at detail or summary level determined at run time  Define the Variation function in Report Definition under General Data Selection At Run time push variation button and select the desired variation level Execute the Report Group    Multiple Selection: Run the same report but separate every time by variable.e. Cost Center ¥ SAP AG . I.

Multiple Selection Example CoArea from 0001 to 0002 (or set) FYear from 1992 to 1993 (or set) Reports to be output CoArea 0001 FYear 1992 CoArea 0001 FYear 1993 4 combinations 1 2 3 4 CoArea 0002 FYear 1992 CoArea 0002 FYear 1993 ¥ SAP AG .

S02120. . .to) ¥ SAP AG . S02120.Multiple Selection (continued) Hierarchy S02000 S02000 Warehouse S02000 ENERGY -2210 Electricity S02110 Warehouse1 S02120 Warehouse2 -2220 Water -2230 Gas Fixed X "" "" Hierarchy "" X "" Selected groups S02000 1 Area report all sets 5 Reports only basic sets S02110. S02200 3 Reports (or value(s) from . S02200 02110.

Variation S02000 S02000 Warehouse S02000 ENERGY -2240 Electricity -2250 Water -2260 Gas S02110 Warehouse 1 S02120 Warehouse 2 .2210 Incoming warehouse .2230 Semi-finished product Variation Explode Do not explode Single values ¥ SAP AG .2220 Outgoing warehouse .

Leveraging Existing Reports  Run a Report in SAP    Extras --> Display Definition Extras --> Technical Info (drill down on Program name) Shows you ABAP code  Copy from these reports and then modify  When you create the report use Options --> Copy From ¥ SAP AG .

Sign up to vote on this title
UsefulNot useful