ca705 - basics of report painter - report writer

253

Click here to load reader

Upload: de-non

Post on 29-Jan-2016

138 views

Category:

Documents


39 download

DESCRIPTION

CA705 - Basics of Report Painter - Report Writer

TRANSCRIPT

Page 1: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705Basics of Report Painter/Report

WritermySAP ERP Financials

Date

Training Center

Instructors

Education Website

Participant HandbookCourse Version: 2005 Q3Course Duration: 2 Day(s)Material Number: 50073808

An SAP course - use it to learn, reference it for work

Page 2: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Copyright

Copyright © 2005 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without theexpress 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 softwarecomponents of other software vendors.

Trademarks

� Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® and SQL Server® areregistered trademarks of Microsoft Corporation.

� IBM®, DB2®, OS/2®, DB2/6000®, Parallel Sysplex®, MVS/ESA®, RS/6000®, AIX®, S/390®,AS/400®, OS/390®, and OS/400® are registered trademarks of IBM Corporation.

� ORACLE® is a registered trademark of ORACLE Corporation.� INFORMIX®-OnLine for SAP and INFORMIX® Dynamic ServerTM are registered trademarks

of Informix Software Incorporated.� 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 ofCitrix Systems, Inc.

� HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C®, World WideWeb 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.� SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP

EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP.com Logo and mySAP.com aretrademarks or registered trademarks of SAP AG in Germany and in several other countries allover the world. All other products mentioned are trademarks or registered trademarks of theirrespective companies.

Disclaimer

THESE MATERIALS ARE PROVIDED BY SAP ON AN "AS IS" BASIS, AND SAP EXPRESSLYDISCLAIMS ANY AND ALL WARRANTIES, EXPRESS OR APPLIED, INCLUDING WITHOUTLIMITATION WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE, WITH RESPECT TO THESE MATERIALS AND THE SERVICE, INFORMATION, TEXT,GRAPHICS, LINKS, OR ANY OTHER MATERIALS AND PRODUCTS CONTAINED HEREIN. INNO EVENT SHALL SAP BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL,CONSEQUENTIAL, OR PUNITIVE DAMAGES OF ANY KIND WHATSOEVER, INCLUDINGWITHOUT LIMITATION LOST REVENUES OR LOST PROFITS, WHICH MAY RESULT FROMTHE USE OF THESE MATERIALS OR INCLUDED SOFTWARE COMPONENTS.

Page 3: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

About This HandbookThis handbook is intended to complement the instructor-led presentation of thiscourse, and serve as a source of reference. It is not suitable for self-study.

Typographic ConventionsAmerican English is the standard used in this handbook. The following typographicconventions are also used.

Type Style Description

Example text Words or characters that appear on the screen. Theseinclude field names, screen titles, pushbuttons as well asmenu names, paths, and options.

Also used for cross-references to other documentationboth internal (in this documentation) and external (inother locations, such as SAPNet).

Example text Emphasized words or phrases in body text, titles ofgraphics, and tables

EXAMPLE TEXT Names of elements in the system. These include reportnames, program names, transaction codes, table names,and individual key words of a programming language,when surrounded by body text, for example SELECTand INCLUDE.

Example text Screen output. This includes file and directory namesand their paths, messages, names of variables andparameters, and passages of the source text of a program.

Example text Exact user entry. These are words and characters thatyou enter in the system exactly as they appear in thedocumentation.

<Example text> Variable user entry. Pointed brackets indicate that youreplace these words and characters with appropriateentries.

2005/Q3 © 2005 SAP AG. All rights reserved. iii

Page 4: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

About This Handbook CA705

Icons in Body TextThe following icons are used in this handbook.

Icon Meaning

For more information, tips, or background

Note or further explanation of previous point

Exception or caution

Procedures

Indicates that the item is displayed in the instructor�spresentation.

iv © 2005 SAP AG. All rights reserved. 2005/Q3

Page 5: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

ContentsCourse Overview ...... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii

Course Goals.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .viiCourse Objectives .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vii

Unit 1: Introduction to Report Painter/Report Writer... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1Report Painter/Report Writer Overview.... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

Unit 2: Creating Reports Using Report Painter.... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Structuring Reports ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Generating and Executing Reports.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Unit 3: Row and Column Models..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81Using Row and Column Models .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Unit 4: Section and Horizontal Pages..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97Defining Sections and Horizontal Pages .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

Unit 5: Formatting Reports..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133Using Standard Layouts and Format Groups ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .135

Unit 6: Variations and Extracts ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157Using Variations and Extracts in Mass Reports .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158

Unit 7: Reports in a Live System...... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .179Assigning and Transporting Report Groups.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180

Unit 8: Working with Sets..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197Introduction to Sets ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199

2005/Q3 © 2005 SAP AG. All rights reserved. v

Page 6: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Contents CA705

Appendix 1: Course Appendix ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .217

Appendix 2: Authorization Maintenance ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223

Appendix 3: Data in Exercises ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .229

Appendix 4: Glossary ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .231

Appendix 5: Menu Paths ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237

Index ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243

vi © 2005 SAP AG. All rights reserved. 2005/Q3

Page 7: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Course OverviewThe course provides an overview of the basic functions of the Report Painter andReport Writer. To begin with, you will learn about the relationship between individualReport Writer components and learn to create a library and define a report withvariables and permanent selection criteria. In addition, you will learn to create rowand column templates.

The course will cover information on how to structure a report and performcalculations in a report. You will learn to use standard layouts and formattingfunctions in a report. You will also learn to transport and assign report groups. Finally,you will learn to use basic sets and single-dimension sets in a report definition.

Target AudienceThis course is intended for the following audiences:

� Project team members responsible for the information system

Course PrerequisitesRequired Knowledge

� SAP01 SAP Overview

Recommended Knowledge

� Knowledge of Cost Center Accounting� AC010� AC040� AC405

Course GoalsThis course will prepare you to:

� Explain the basic functions of the Report Painter

Course ObjectivesAfter completing this course, you will be able to:

2005/Q3 © 2005 SAP AG. All rights reserved. vii

Page 8: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Course Overview CA705

� Explain the relationship between a reporting table, library, report, and reportgroup

� Create a library� Define a report with variables and permanent selection criteria� Create row and column templates to help you define reports� Structure a report using sections and horizontal pages� Perform calculations within a report using cells and formulas� Use the layout and formatting functions for a Report Painter report� Use integrated report groups in a live system� Assign report groups to an activity group� Define a report/report interface to branch to a different report or a transaction� Transport reporting objects� Send reports using mail� Use basic sets and single-dimension sets in a report definition

SAP Software Component InformationThe information in this course pertains to the following SAP Software Componentsand releases:

viii © 2005 SAP AG. All rights reserved. 2005/Q3

Page 9: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1Introduction to Report Painter/Report

Writer

Unit OverviewThis unit provides a detailed overview of the Report Painter and the Report Writer,which are reporting tools available in SAP System. To begin with, the unit lists thereporting tools available in SAP System. Then, the unit also explains the uses of theReport Painter and the relationship between the various Report Writer components,such as reporting table, key figure, and library.

Unit ObjectivesAfter completing this unit, you will be able to:

� List the reporting tools available in SAP System� Explain the uses of the Report Painter� Explain the relationship between the Report Writer components

Unit ContentsLesson: Report Painter/Report Writer Overview... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

Exercise 1: Report Components .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

2005/Q3 © 2005 SAP AG. All rights reserved. 1

Page 10: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

Figure 1: CA705 � Course Overview Diagram

2 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 11: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Lesson: Report Painter/Report Writer Overview

Lesson OverviewThis lesson provides an overview of the Report Painter and Report Writer. To beginwith, the lesson lists the reporting tools available in SAP System. Next, the lessonexplains the uses of the Report Painter. Finally, the lesson explains the relationshipbetween the various Report Writer components.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� List the reporting tools available in SAP System� Explain the uses of the Report Painter� Explain the relationship between the Report Writer components

Business ExampleYou work as a financial consultant for XYZ Cement Company. The company needsCost Center Accounting reports. You need to create this report using the ReportWriter. You begin your task by exploring the various Report Writer components tobe used for creating this report.

2005/Q3 © 2005 SAP AG. All rights reserved. 3

Page 12: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

Overview of Reporting Tools and Applications in SAPSystem

Figure 2: Overview of the Reporting Tools in SAP System

Quick Viewer and SAP Query are menu-driven tools that help a user compilelists. SAP Query comprises an extensive suite of functions for defining reports andcompiling various types of reports, such as straightforward lists, statistics, and rankedlists. The user can choose the data for the list from any SAP System table.

With the Report Painter, users can report on data from a wide variety of applications.The form layout tool enables a user to see the report in the form in which it will appearwhen the data is output. The Report Writer uses sets exclusively to map the row andcolumn structures, thereby supporting more complex reports.

The drill-down reporting facility provided by SAP is an online information systemfeaturing user-friendly functions that help you navigate through your data. It can alsobe used to evaluate your data on the basis of all the features contained in the datadescription. With this interactive drill-down reporting facility, you can use any keyfigures to describe your report.

The data can be analyzed in the Logistics Information System using both standardand flexible analyses. Standard analyses are based on statistics files or informationstructures in the Logistics Information System to which important key figures areupdated directly from the relevant application. Flexible analyses can be used toevaluate SAP data structures and form the basis for ad-hoc analyses.

4 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 13: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Figure 3: Overview: Applications

The graphic is an overview of the applications that work with the Report Painter/Writer.

Uses of Report Painter

Figure 4: Using the Report Painter

2005/Q3 © 2005 SAP AG. All rights reserved. 5

Page 14: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

The graphical user interface (GUI) of the Report Painter can be used for variouspurposes, such as to define:

� Planning layouts� Drill-down reports� Report Writer reports

In this course, you will learn how to compile Report Writer reports using the ReportPainter.

Figure 5: Report Painter as a User Interface

The Report Painter performs a similar function to the Report Writer but is mucheasier to use. To create reports with the Report Painter, you do not need to be familiarwith the set concept of the Report Writer.

The Report Painter is based on the What You See Is What You Get (WYSIWYG)principle.

The Report Painter uses a graphical report structure that forms the basis of reportdefinition and displays the rows and columns of the report as they will appear whenthe report is compiled.

The Report Painter represents the interface between the user and Report Writer.Reports created in the Report Painter are converted and executed by the system inthe Report Writer.

6 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 15: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Report Writer Components

Figure 6: Report Writer Components

Each Report Writer report is based on a reporting table. With Overhead CostControlling reports, this is the table CCSS. The logical reporting table can include oneor more physical database tables.

The reporting table contains all of the fields that can be used to compile a report.Characteristics are non-numeric fields. Examples of characteristics include�accounts�, �cost centers�, and �business areas�. Basic key figures are numeric valuefields, such as �local currency�, �total cost�, and �activity quantity�.

A key figure comprises a basic key figure and one or more characteristics. You canuse key figures to define standard columns, which you can reuse in your reports.Examples of key figures include �actual costs in the current fiscal year� and �plannedcosts in the closed fiscal year�.

A library is a collection of characteristics, basic key figures, and key figures that areselected from the entries in a Report Writer table. SAP ships a wide variety of standardlibraries. You can also create your own libraries to satisfy your reporting requirements.

Every new report must be created for a library. Before a report can be run, it must beincluded in a report group. A report group can contain one or more reports. Whena report group is generated, executable ABAP programs are created to select andformat the data.

2005/Q3 © 2005 SAP AG. All rights reserved. 7

Page 16: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

Figure 7: Hierarchy of the Report Writer Components: Example

The reporting table CCSS is shipped for Overhead Cost Controlling reports.

The standard libraries include the library 1 VK Cost Center � Absorption Costing andthe library 601 Internal Orders.

Note: Other examples are provided in the Appendix.

Figure 8: Library

8 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 17: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Every report is assigned to a library. A library is a collection of characteristics, basickey figures, and key figures that are selected from the entries in a Report Writer table.

A characteristic is a non-numeric field. Examples of characteristics include�accounts�, �cost centers�, and �business areas�.

A basic key figure is a numeric value field. Examples of key figures include �localcurrency�, �total cost�, and �activity quantity�.

A key figure comprises a basic key figure and one or more characteristics. You canuse key figures to define standard columns, which you can reuse in your reports.Examples of key figures include �actual costs in the current fiscal year� and �plannedcosts in the closed fiscal year�.

Figure 9: Library Maintenance

The position assigned to the characteristics, basic key figures, and key figures when thelibrary is maintained determines the order of these objects when the report is defined.

2005/Q3 © 2005 SAP AG. All rights reserved. 9

Page 18: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

10 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 19: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Exercise 1: Report Components

Exercise ObjectivesAfter completing this exercise, you will be able to:� Explain the relationship between a Reporting Table, Library, Report Group,

and Report

Business ExampleSince you have to build Report Painter reports to address internal reporting needs inManagement Accounting, you use the CCSS table.

You know that there are many other reporting tables out there, and you have heard thatthe Report Painter can be used in other application areas as well.

Task 1:Explain the relationship between a Reporting Table, Library, Report Group, andReport.

1. What is the purpose of a reporting table?

2. Name some reporting tables in mySAP ERP and the applications for whichthey were created.

Reporting table Description

3. What is the purpose of a library?

4. For one of the Reporting Tables listed in step 2, locate some of the librariesassociated with that table.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 11

Page 20: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

Reporting table Library

5. What is the purpose of a report group?

Task 2:The report 1SIP-001 is shipped with mySAP ERP. For this report, answer thefollowing questions.

1. Report 1SIP-001

Reporting tableLibraryReport group

2. How did you locate the information?

Continued on next page

12 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 21: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Task 3:Note the characteristics, basic key figures, and key figures of the following report:

Figure 10:

Figure 11:

1. Create library Z## (## = group number) with description �CA705 group ##�. Asa template, use library 1VK. First, delete the selections for all key figures, andthen, those for all basic key figures. The characteristics, basic key figures, andkey figures that you require are listed below.

Content: Library Z##

Characteristics Basic key figures Key figures

Controlling area (KOKRS) Costs (SWKG) Actual costs(ISWKG)

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 13

Page 22: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

Cost center (KOSTL) Quantities(SMEG)

Actual qty (ISMEG)

Cost elements (KSTAR) Stat qty (SSME) Actual stat qty(ISSME)

Fiscal year (GJAHR) Plan costs (PSWKG)Period (PERBL) Plan qty (PSMEG)Value type (WRTTP) Plan stat qty

(PSSME)Version (VERSN)Statistical key figures (STAGR)Valuation (VALUTYP)

Position the characteristics, basic key figures, and key figures in the order theyare listed in the table.

14 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 23: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Solution 1: Report ComponentsTask 1:Explain the relationship between a Reporting Table, Library, Report Group, andReport.

1. What is the purpose of a reporting table?

a) Reporting tables contain a list of the characteristics, basic key figures,and key figures that can be used to build your report library. Thesecharacteristics and basic key figures are the data fields accumulated foryour application area.

2. Name some reporting tables in mySAP ERP and the applications for whichthey were created.

Reporting table Description

a)

Reporting table DescriptionCCSS For Controlling reportsGLPCT EC-PCA Totals TableKKBC Product Costing in COS001 For SIS reports in LIS

3. What is the purpose of a library?

a) A library is a subset of the fields in a reporting table. It can be used tocreate a more precise list of characteristics, basic key figures, and keyfigures for which you are reporting. Users are authorized to use libraries.Therefore, libraries can be used to restrict access to certain data for yourreport builders.

In addition, libraries can be used to organize reports by their content.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 15

Page 24: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

4. For one of the Reporting Tables listed in step 2, locate some of the librariesassociated with that table.

Reporting table Library

a)

Reporting table LibraryCCSS 1VK, 1ABGLPCT 8A0, 8A1, 8A2KKBC 7K0, 7KC, 7KE,�

Choose Report Painter→ Utilities→ Catalog→ Reports � Selectioncriteria - Table �Possible entries (F4).

5. What is the purpose of a report group?

a) Report Group helps group similar reports to enhance performance. Whenreports contain the same characteristics and share the same data, data isselected faster and processing time is shorter because report data is selectedonly once for all reports in the group, as opposed to individually for eachreport.

Task 2:The report 1SIP-001 is shipped with mySAP ERP. For this report, answer thefollowing questions.

1. Report 1SIP-001

Continued on next page

16 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 25: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Reporting tableLibraryReport group

a) Report ISIP-001

Reporting table CCSSLibrary 1VKReport group 1SIP

2. How did you locate the information?

a) Use the Cataloging function to locate information on the report. ChooseInformation Systems→ Ad-Hoc Reports→ Report Painter→ Utilities→ Catalog→ Reports to locate the library information. Then, executethe report (→ Goto→ Execute) and read the technical information bychoosing Extras→ Tech. information.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 17

Page 26: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

Task 3:Note the characteristics, basic key figures, and key figures of the following report:

Figure 12:

Figure 13:

1. Create library Z## (## = group number) with description �CA705 group ##�. Asa template, use library 1VK. First, delete the selections for all key figures, andthen, those for all basic key figures. The characteristics, basic key figures, andkey figures that you require are listed below.

Content: Library Z##

Characteristics Basic key figures Key figures

Controlling area (KOKRS) Costs (SWKG) Actual costs(ISWKG)

Continued on next page

18 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 27: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Cost center (KOSTL) Quantities(SMEG)

Actual qty (ISMEG)

Cost elements (KSTAR) Stat qty (SSME) Actual stat qty(ISSME)

Fiscal year (GJAHR) Plan costs (PSWKG)Period (PERBL) Plan qty (PSMEG)Value type (WRTTP) Plan stat qty

(PSSME)Version (VERSN)Statistical key figures (STAGR)Valuation (VALUTYP)

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 19

Page 28: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 1: Introduction to Report Painter/Report Writer CA705

Position the characteristics, basic key figures, and key figures in the order theyare listed in the table.

a) Choose Report Writer→ Library→ Create

Library: Z##

Table: Leave blank

Copy from: 1VK

Enter:

Description: CA705 Group ##

Click Key figures.

Deselect all the key figures by choosing Deselect all.

Click Basic key figures.

Deselect all of the key figures by choosing Deselect All.

Click Characteristics.

Select the characteristics listed in the table above.

Arrange the characteristics in the order they are listed in the table.

Click Basic key figures.

Select the basic key figures listed above.

Arrange the basic key figures in the order they are listed in the table.

Click Key figures.

Select the key figures shown in the table.

Position the key figures in the order they are listed in the table.

Save the library with Library→ Save or by choosing Save or Ctrl+S.

20 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 29: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Report Painter/Report Writer Overview

Lesson Summary

You should now be able to:� List the reporting tools available in SAP System� Explain the uses of the Report Painter� Explain the relationship between the Report Writer components

2005/Q3 © 2005 SAP AG. All rights reserved. 21

Page 30: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

Unit SummaryYou should now be able to:� List the reporting tools available in SAP System� Explain the uses of the Report Painter� Explain the relationship between the Report Writer components

22 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 31: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

Test Your Knowledge

1. A Report Writer library is a collection of characteristics, basic key figures, andkey figures that are selected from the entries in a Report Painter table.Determine whether this statement is true or false.□ True□ False

2. The provided bymySAP ERP is an online information system featuring user-friendly functionsthat help navigate data.Fill in the blanks to complete the sentence.

3. What are the uses of the graphical user interface of the Report Painter?

2005/Q3 © 2005 SAP AG. All rights reserved. 23

Page 32: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Test Your Knowledge CA705

Answers

1. A Report Writer library is a collection of characteristics, basic key figures, andkey figures that are selected from the entries in a Report Painter table.

Answer: True

A Report Writer library is a collection of characteristics, basic key figures, andkey figures that are selected from the entries in a Report Writer table.

2. The drill-down reporting facility provided by mySAP ERP is an onlineinformation system featuring user-friendly functions that help navigate data.

Answer: drill-down reporting facility

3. What are the uses of the graphical user interface of the Report Painter?

Answer: The graphical user interface of the Report Painter can be used to defineplanning layouts, drill-down reports, and Report Writer reports.

24 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 33: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2Creating Reports Using Report Painter

Unit OverviewThis unit explains how to structure, generate, and execute a Report Painter report. Theunit begins with the description of the structure of a Report Painter report. Next, theunit explains how to define rows, columns, and general data selections in a ReportPainter report. Further, this unit explains how report groups are used to generate andexecute reports. This involves exploding rows and sorting hierarchies in reports.Finally, the unit describes how variables can be used for report definition and howtext can be entered in reports.

Unit ObjectivesAfter completing this unit, you will be able to:

� Define the structure of a Report Painter report� Define rows in a Report Painter report� Define columns in a Report Painter report� Define general data selections in a Report Painter report� Explain how report groups are used to generate and execute reports� Use variables for report definition� Enter text in reports

Unit ContentsLesson: Structuring Reports.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Exercise 2: Components of a Report Painter Report . . . . . . . . . . . . . . . . . . . . . . . 37Lesson: Generating and Executing Reports .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Exercise 3: Building and Executing a Report With a Total Row... . . . . . . . . 47Exercise 4: Using Hierarchies: Explode function .. . . . . . . . . . . . . . . . . . . . . . . . . . 55Exercise 5: Using Hierarchies: Sequence (Sort) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

2005/Q3 © 2005 SAP AG. All rights reserved. 25

Page 34: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Figure 14: Structure of Report Painter Reports: Overview

26 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 35: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Structuring Reports

Lesson: Structuring Reports

Lesson OverviewThis lesson explains how to structure a Report Painter report. First, the lessondescribes the structure of a Report Painter report. Next, it explains how to define rowsand columns in a Report Painter report. Finally, the lesson explains how to definegeneral data selections in a Report Painter report.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� Define the structure of a Report Painter report� Define rows in a Report Painter report� Define columns in a Report Painter report� Define general data selections in a Report Painter report

Business ExampleYou work as a financial consultant for XYZ Cement Company. You are a memberof the project team responsible for creating reports using Report Painter and ReportWriter. The management of your company wants to know how much each cost centeris spending toward each account. You need to create a report using Report Painter,which shows these details.

2005/Q3 © 2005 SAP AG. All rights reserved. 27

Page 36: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Structure of Report Painter Reports

Figure 15: Basic Report Structure

To define a report, you must determine the row and column structure and the generaldata selection criteria.

28 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 37: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Structuring Reports

Figure 16: Report Painter Report Structures

With the format presented by the Report Painter, you can easily enter rows, columns,and general selection criteria.

The rows constitute characteristic values or groups.

The columns contain basic key figures, such as costs and quantities withcharacteristic values for key figures, which are combinations of predefined basickey figures/characteristic values.

General data selections are carried out using characteristic values, which are validthroughout the entire report.

2005/Q3 © 2005 SAP AG. All rights reserved. 29

Page 38: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Defining Rows and Columns

Figure 17: Row and Column Definition

You can use either a combination of characteristic values or a formula to define a row.

Columns contain a combination of a key figure and optional restricting characteristicvalues. You can also use predefined columns to display business-relevantcombinations of key figures and characteristics, such as, actual costs in the currentperiod and scheduled activity.

30 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 39: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Structuring Reports

Figure 18: Row Definition

To define rows, you select the characteristics you want to display in these rows andenter the appropriate values.

You can enter specific values, intervals of values, or a group.

In the report definition, you can use groups created in the master data maintenance.

2005/Q3 © 2005 SAP AG. All rights reserved. 31

Page 40: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Figure 19: Formula Rows

You can use the formula editor to define formula rows. The formulas used can refer toother rows in the same section and to cells selected in the report.

Figure 20: Using Key Figures

32 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 41: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Structuring Reports

SAP delivers a number of predefined columns for the libraries in Overhead CostManagement. You can copy these predefined columns directly into your reports andmodify them as required.

Figure 21: Defining a Single Column

One way to define a column is to combine a key figure with several characteristics.

To restrict the characteristics, you can enter intervals or groups as in the case ofdefining single values for the report rows.

2005/Q3 © 2005 SAP AG. All rights reserved. 33

Page 42: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Figure 22: Formula Columns

Using the formula editor, you can calculate additional columns within a section. Theformulas used can refer to other columns in the same section or to cells selectedin the report.

Restricting Data in Reports

Figure 23: General Data Selection

34 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 43: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Structuring Reports

After you have defined the rows and columns, you can define additional criteria thatare valid for the entire report. The additional criteria you select will restrict thedata processed in the report. These restrictions are stored in so-called general dataselections.

2005/Q3 © 2005 SAP AG. All rights reserved. 35

Page 44: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

36 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 45: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Structuring Reports

Exercise 2: Components of a Report PainterReport

Exercise ObjectivesAfter completing this exercise, you will be able to:� Explain the following key terms in the Report Painter: Characteristic, basic key

figure, and key figure

Business ExampleManagement requires the summary values for specific cost centers that were derivedfrom certain cost element accounts.

You know that this report is not included in the Management Accounting reportingtree. This means that you have to create it using the Report Painter.

Task:Using your own words, define the key terms associated with Report Painter.

1. What is a characteristic?

2. What is a basic key figure?

3. What is a key figure?

4. What is the purpose of the General Data Selections?

2005/Q3 © 2005 SAP AG. All rights reserved. 37

Page 46: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Solution 2: Components of a Report PainterReportTask:Using your own words, define the key terms associated with Report Painter.

1. What is a characteristic?

a) A characteristic, also called �field� or �dimension� in previous releases, is anon-numeric field. Examples of characteristics include �accounts�, �costcenters�, and �business areas�. The characteristics, when combined, forma unique key that identifies your data records for database data retrieval.Your organizational elements can be regarded as characteristics.

2. What is a basic key figure?

a) A basic key figure is a value field, such as posted amounts or quantities.Basic key figures are used to determine which value fields are displayed ina report, such as transaction currency, group currency, and quantities.

3. What is a key figure?

a) A key figure contains a basic key figure, which is combined with restrictingcharacteristics. These characteristics, such as the value type actual andplan, are used as additions to the basic key figure. For data fields, whichare represented frequently in reports, key figures (which are predefinedcolumns) can be used to define reports more quickly.

4. What is the purpose of the General Data Selections?

a) In addition to the explicit data in the rows and columns, you can alsodefine criteria that are valid throughout the entire report, which can becharacteristic values or characteristic groups, to further restrict the dataprocessed in the report. These restrictions are specified in the general dataselections. In the report 1SIP-001 shipped with the system, the generaldata selections contain the characteristics �Company code�, �Fiscal year�,�Period�, and �Cost center�.

38 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 47: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Structuring Reports

Lesson Summary

You should now be able to:� Define the structure of a Report Painter report� Define rows in a Report Painter report� Define columns in a Report Painter report� Define general data selections in a Report Painter report

2005/Q3 © 2005 SAP AG. All rights reserved. 39

Page 48: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Lesson: Generating and Executing Reports

Lesson OverviewThis lesson explains how report groups are used to generate and execute reports.The lesson also describes how variables can be used for report definition and howtext can be entered in reports.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� Explain how report groups are used to generate and execute reports� Use variables for report definition� Enter text in reports

Business ExampleYou work as a financial consultant for XYZ Cement Company. The management ofthe company wants a report with the details of how much each cost center is spendingtoward each account. You have created this report using the Report Painter. Thecompany wants you to group this report to a report group. Reports that read the samedata should be grouped together in report groups to improve processing times. Assignthis report to a report group and generate and execute the report group.

40 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 49: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Using Report Groups

Figure 24: Report Generation and Execution

Before a report can be output, it must be included in a report group.

A report group is a collection of reports in a library that are executed in one run.Combining several reports in a report group can be useful if the reports are intendedto evaluate the same dataset. In this case, the data is read once and then distributedamong different reports.

You cannot process reports from different libraries in the same report group.

When a report group is generated, the system creates ABAP reports that you can run.

In the first ABAP, inputs are proposed and verified with regard to output parameters,the data source, and extract parameters. In addition, values or sets are proposed forselection if the report definition contains variables.

In the second ABAP, data is selected from the database.

The last ABAP formats data so that it can be output.

2005/Q3 © 2005 SAP AG. All rights reserved. 41

Page 50: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Figure 25: Exploding Report Rows

When using groups or several single values to define rows, you can define whetheronly a totals row is to be displayed, or the complete group hierarchy with subtotals isto be exploded, or every single value in a row is to be displayed. The system is set upin such a way that only those rows are displayed for which corresponding data exists.

Sorting Hierarchies

Figure 26: Sorting Hierarchies

42 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 51: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

If you use a combination of several characteristics in a row block and this row blockis exploded, you can choose the hierarchical sequence in which the characteristicsare displayed.

Using Variables in Reports

Figure 27: Flexible Reports with Variables

Instead of using fixed values in the report definition, you can also use variables.When you execute a report group, an input field appears on the report selection screenfor each variable used.

There are three types of variables: value variables, variables for groups (set variables),and formula variables.

2005/Q3 © 2005 SAP AG. All rights reserved. 43

Page 52: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Defining Text

Figure 28: Texts

You can define texts at the following points within a report:

� Title page� Header� Footer� Final page

When the report is exported, say, to Excel, the worksheet header is taken from theexported text. The header and footer in the report are intended for lists and, therefore,do not appear in the worksheet. This also applies to the title page and final page.

44 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 53: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Figure 29: Entering Text

You can enter text directly for the title page, header, footer, and final page. You canalso use the following types of text variables:

� General variables� Selection parameters� Characteristics� Special variables

2005/Q3 © 2005 SAP AG. All rights reserved. 45

Page 54: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

46 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 55: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Exercise 3: Building and Executing a ReportWith a Total Row

Exercise ObjectivesAfter completing this exercise, you will be able to:� Create a Report Painter report� Assign reports to other report groups� Execute a report

Business ExampleThe management wants you to create a report that displays cost center-wise actualcosts vis-à-vis planned costs and the resulting variances for the current year. You needto use the Report Painter to create this report.

Task:You have been asked to create a report that contains the following information:

Figure 30:

The general selection criteria throughout the report are the controlling area 1000, thecost center group H1010, the current fiscal year, and the periods 1 - 12.

1. Use the Report Painter to build this report. Name the report Z1##-001(description: �Rep. w. totals lines�) and assign it to the report group Z1##.Create your report for your own library Z##.

Note: Define column 1 using a key figure. Define column 1 using�Basic key figure with characteristics�.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 47

Page 56: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Use the following cost element groups:

Cost element group DescriptionOAS_WAGES WagesOAS_SALAR SalariesOAS_P_IMP Inc. costs

Instructions for defining the report Z1##-001.

- Define Rows

- Define Formula (Total) Row

- Define Column 1 - Actual Costs

- Define Column 2 - Plan Costs

- Define Formula (Variance) Column

- Define General Data Selections

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

2. How do you access the row information?

3. How do you access the column information?

4. What is the difference between the two element types that can be used to definea column: a) a key figure and b) a basic key figure with characteristics?

5. What is the difference between generating and executing a report group?

6. Which menu path did you use to link your report to a report group?

48 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 57: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Solution 3: Building and Executing a ReportWith a Total RowTask:You have been asked to create a report that contains the following information:

Figure 31:

The general selection criteria throughout the report are the controlling area 1000, thecost center group H1010, the current fiscal year, and the periods 1 - 12.

1. Use the Report Painter to build this report. Name the report Z1##-001(description: �Rep. w. totals lines�) and assign it to the report group Z1##.Create your report for your own library Z##.

Note: Define column 1 using a key figure. Define column 1 using�Basic key figure with characteristics�.

Use the following cost element groups:

Cost element group DescriptionOAS_WAGES WagesOAS_SALAR SalariesOAS_P_IMP Inc. costs

Instructions for defining the report Z1##-001.

- Define Rows

- Define Formula (Total) Row

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 49

Page 58: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

- Define Column 1 - Actual Costs

- Define Column 2 - Plan Costs

- Define Formula (Variance) Column

- Define General Data Selections

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

a) Instructions for defining the report Z1##-001.

From the main R/3 menu, choose

1. Information Systems→ Ad-hoc Reports→ Report Painter2. Report→ Create

Library: Z##

Report: Z1##-001

Description: �Rep. w. totals lines�.

Click Create to access the report definition interface.

Define Rows

Double-click row 1.

1. Select the cost element in the Available Characteristics dialog box.Click Move selected to left.

2. In the Selected characteristics pane, click the Group field and enterthe cost element group OAS_WAGES. Click Confirm or Enter.

You have defined row 1. Now define the remaining three rows.

When you define Rows 2 and 3, an additional prompt is displayed in whichyou can choose the element type. Select Characteristics. Click Confirm orEnter.

Define Formula (Total) Row

Continued on next page

50 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 59: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Double-click row 4.

1. In the Select Element Type screen, choose Formula. Click Confirmor Enter.

2. In the Enter Formula screen, use the pushbuttons at the bottom ofthe screen to define the Total Row as Y001 + Y002 + Y003. ClickConfirm or Enter.

3. In the Enter Texts screen, enter texts for the total row. Copy the textto the Medium and Long fields. Click Confirm or Enter.

Define Column 1 - Actual Costs

Double-click column 1.

1. In the Select Element Type screen, choose Predefined key figure.Click Confirm or Enter.

2. In the Choose Predefined Column screen, choose Actual costs. ClickConfirm or Enter.

3. Click Confirm or Enter to review the ensuing screens. These screensshow how the key figure is defined. That is, these screens display thebasic key figures and characteristics and their values that were usedto define the key figure.

You have now defined column 1.

Define Column 2 - Plan Costs

Double-click column 2.

1. In the Select Element Type screen, choose Key figure withcharacteristics. Click Confirm or Enter.

2. Under �Basic key figure�, choose Costs.3. Select Value type and Version in the Available Characteristics pane.

Click Move selected to left.4. Enter the value 01 for the Value Type to denote plan values. Enter

the value 0 for the version to denote the current version and entera suitable text. Click Confirm.

You have now defined column 2.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 51

Page 60: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Define Formula (Variance) Column

Double-click column 3.

1. In the Select Element Type screen, choose Formula. Click Confirmor Enter.

2. In the Enter Formula screen, use the pushbuttons to define theVariance Column as X001 � X002. Click Confirm or Enter.

3. In the Enter Texts screen, enter texts for the variance column. Copythe text to the Medium and Long fields. Click Confirm or Enter.

Define General Data Selections

1. Choose Edit→ Gen. data selection.2. In the Available Characteristics pane, choose the characteristics that

are to be included in the general parameters for the report (see tablebelow). Click Move selected to left.

3. In the Selected Characteristics pane, enter the parameter values forthe report. Click Confirm or Enter.

Use the following table for the characteristic and the associated values.

Controlling area 1000 in the From fieldFiscal year Current fiscal year in the From fieldPeriod 1 to 12 in the From and To fields

respectivelyCost center H1010 in the Group field

You have now defined the general data selections.

Check and Save the Report

Check the report for any errors, or missing characteristics, by choosingReport→ Check or use Check or F6.

Save the Report via Report→ Save or use Save or CTRL+S.

Assign the Report to a Report Group

Continued on next page

52 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 61: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

You can assign the report to a report group by choosing: Environment→Assign report group.

1. Enter the value Z1##.

This creates the report group which is assigned to the library Z##.

Execute the Report

Choose Report→ Execute.

2. How do you access the row information?

a) Double-click the row to access the detail screens.

3. How do you access the column information?

a) Double-click the column to access the detail screen.

4. What is the difference between the two element types that can be used to definea column: a) a key figure and b) a basic key figure with characteristics?

a) A key figure has already been defined in mySAP ERP by SAP or byanother member of your reporting team. A basic key figure column withrestricting characteristics is a column in which you can define your columninformation �on-the-fly�. That is, you can dynamically select your basickey figures and characteristics.

5. What is the difference between generating and executing a report group?

a) Generating a report group creates the ABAP code for the report.

Executing the report group executes the ABAP code.

6. Which menu path did you use to link your report to a report group?

a) From the report definition, choose:

Environment→ Assign report group.

2005/Q3 © 2005 SAP AG. All rights reserved. 53

Page 62: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

54 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 63: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Exercise 4: Using Hierarchies: Explodefunction

Exercise ObjectivesAfter completing this exercise, you will be able to:� Analyze an existing hierarchy and use different explode options for your report� Use the explode function

Business ExampleThe management was delighted to see how quickly you generated the report. Now,they want you to create the same report for the entire company�s cost elementhierarchy.

Task 1:Use the diagram below to answer the following questions:

Figure 32:

1. If the hierarchy was used as a report row, how would the report results screenappear when the explode level was set to �explode�?

2. If the hierarchy was used as a report row, how would the report results screenappear when the explode level was set to �Do Not Explode�?

3. If set to single values?

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 55

Page 64: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Task 2:Create another report Z2##-001 with the following structure:

Figure 33:

The general selection criteria throughout the entire report are the controlling area1000, the cost center group H1010, the current fiscal year, and the periods 1 - 12.

1. The cost element group CA705_COST contains all the accounts, including thesubtotals listed in this report. The report should contain automatic subtotalsbecause cost element groups are used instead of row formulas. Use theappropriate explode level to obtain this row structure.

Name the report Z2##-001 and assign it to the report group Z2##. Use thelibrary Z##.

Instructions for defining the report Z2##-001.

- Define Rows

- Define Columns

- Define Formula (Variance)

- Define General Data Selections

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

2. Which menu path did you use to set the explode level for your report row?

3. Modify your report to test the explode options and look at the changes in yourreport results.

56 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 65: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Solution 4: Using Hierarchies: ExplodefunctionTask 1:Use the diagram below to answer the following questions:

Figure 34:

1. If the hierarchy was used as a report row, how would the report results screenappear when the explode level was set to �explode�?

a) 1

2

3

*Q1

4

5

6

*Q2

**First six months

7

8

9

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 57

Page 66: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

*Q3

10

11

12

*Q4

**Second six months

***Year

2. If the hierarchy was used as a report row, how would the report results screenappear when the explode level was set to �Do Not Explode�?

a) Year

3. If set to single values?

a) 1

2

3

10

11

12

Continued on next page

58 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 67: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Task 2:Create another report Z2##-001 with the following structure:

Figure 35:

The general selection criteria throughout the entire report are the controlling area1000, the cost center group H1010, the current fiscal year, and the periods 1 - 12.

1. The cost element group CA705_COST contains all the accounts, including thesubtotals listed in this report. The report should contain automatic subtotalsbecause cost element groups are used instead of row formulas. Use theappropriate explode level to obtain this row structure.

Name the report Z2##-001 and assign it to the report group Z2##. Use thelibrary Z##.

Instructions for defining the report Z2##-001.

- Define Rows

- Define Columns

- Define Formula (Variance)

- Define General Data Selections

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

a) Instructions for defining the report Z2##-001.

From the main SAP System menu, choose

1. Information Systems→ Ad-hoc Reports→ Report Painter

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 59

Page 68: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

2. Report→ Create

Library: Z##

Report: Z2##-001

Enter.

Description: Cost element group

Click Create to access the report definition interface.

Define Rows

Double-click row 1.

1. Select the cost element in the Available Characteristics dialog box.Click Move selected to left.

2. In Characteristic Values pane, enter the value CA705_COST in theGroup field. In the Enter Texts screen, define texts for the row. Copythis text to the medium and long text fields. Click Confirm or Enter.

3. Click row 1 and choose Edit→ Rows→ Expand. Click the Expandpushbutton.

You have defined the row.

Define Columns

Double-click column 1.

1. In the Select Element Type screen, choose Key figure. Click Confirmor Enter.

2. In the Choose Predefined Column screen, choose Actual costs. ClickConfirm or Enter.

3. Click Confirm or Enter to check the ensuing screens. These screensshow how the key figure is defined. That is, these screens displaythe key figures and characteristics and their values used to definethe key figure.

You have defined the first column. To define the second column, which isPlanned Costs, you can use a key figure or define the column dynamically.

Define Formula (Variance)

Continued on next page

60 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 69: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Double-click column 3.

1. In the Select Element Type screen, choose Formula. Click Confirmor Enter.

2. In the Enter Formula screen, use the pushbuttons to define theVariance Column as X001 � X002. Click Confirm or Enter.

3. In Enter Texts screen, define texts for the row. Copy this text to themedium and long text fields. Click Confirm or Enter.

Define General Data Selections

1. Choose Edit→ Gen. data selection.2. In the Available Characteristics pane, choose the characteristics that

are to be included in the general parameters of the report (see tablebelow). Click Move selected to left.

3. In the Selected Characteristics pane, enter the parameter values forthe report. Click Confirm or Enter.

4. Use the following table for the characteristic and the associated values.

Controlling area 1000 in From fieldFiscal year Current fiscal year in the From fieldPeriod 1 to 12 in the From and To fields

respectivelyCost center H1010 in the Group field

You have now defined the general data selections.

Check and Save the Report

1. Check the report for any error or missing characteristics by choosingReport→ Check or use Check or F6.

2. Save the Report via Report→ Save or use Save or CTRL+S.

Assign the Report to a Report Group

1. To assign the report to a report group, choose the following in theReport Definition environment: Environment→ Assign report group.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 61

Page 70: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

2. Enter the value Z2##.

Execute the Report

1. Choose Report→ Execute.

2. Which menu path did you use to set the explode level for your report row?

a) Choose Edit→ Rows→ Expand.

3. Modify your report to test the explode options and look at the changes in yourreport results.

a)

62 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 71: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Exercise 5: Using Hierarchies: Sequence(Sort)

Exercise ObjectivesAfter completing this exercise, you will be able to:� Describe the implications of using hierarchies as part of the row structure� Sort the data after it has been output

Business ExampleThe management has come to you with an urgent request. They now want to know thedetails � how much each cost center is spending toward each account.

Task 1:You have been asked to write another report but need to show a detailed costbreakdown for each cost center. The report should have the following appearance.

Figure 36:

1. The report should provide information for the cost centers listed in the groupH1010 and the cost elements in CA705_COST. The general selection criteriathroughout the entire report are the controlling area 1000, the current fiscalyear, and the periods 1 - 12.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 63

Page 72: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Name the report Z3##-001 and assign it to the report group Z3##.

Use the library Z## again.

Instructions for defining the report Z3##-001.

- Define Rows

- Define Columns

- Define Formula (Variances) Column

- Define General Data Selections

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

2. What explode level did you set for the cost center?

3. What explode level did you set for the cost elements?

4. Modify your report a few times to vary the explode levels for the cost centersand cost elements? Did the report results appear as you expected?

Continued on next page

64 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 73: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Task 2:Some employees will want to see the report with emphasis on the cost centers whileothers will want the emphasis on the cost elements. Create a new report that focuseson the cost elements. The report should have the following structure.

Figure 37:

1. Name the report Z3##-002 and assign it to one of the report groups you created.

2. What did you do to change the sort sequence? What menu path did you choose?

3. In which report group did you place the report Z3##-002? Why?

4. In the report output, how did you switch between reports within the report group?

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 65

Page 74: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Task 3:For greater flexibility when defining your reports, you use variables for the cost centergroup, the current fiscal year, the from/to period, and the controlling area. Whatimpact does this have on the input screen?

Use the following variables:

Char. VariablePeriod 1PERIV (From Period)

1PERIB (To Period)Fiscal year 1GJAHR

1. How do you make reports flexible?

2. Where are you able to use variables in a Report Painter report?

3. Modify the report Z3##-001 to add certain texts. Use the table below as a guideto the information you should display.

Title page HeaderAuthor of report Page x of nDate of output Controlling areaReport nameLibrary Fiscal yearReport group Period from, Period to

General Variables:

Selection Parameters:

Characteristic-Related Text Variables (Features):

66 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 75: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Solution 5: Using Hierarchies: Sequence(Sort)Task 1:You have been asked to write another report but need to show a detailed costbreakdown for each cost center. The report should have the following appearance.

Figure 38:

1. The report should provide information for the cost centers listed in the groupH1010 and the cost elements in CA705_COST. The general selection criteriathroughout the entire report are the controlling area 1000, the current fiscalyear, and the periods 1 - 12.

Name the report Z3##-001 and assign it to the report group Z3##.

Use the library Z## again.

Instructions for defining the report Z3##-001.

- Define Rows

- Define Columns

- Define Formula (Variances) Column

- Define General Data Selections

- Check and Save the Report

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 67

Page 76: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

- Assign the Report to a Report Group

- Execute the Report

a) Instructions for defining the report Z3##-

From the main SAP System menu, choose

1. Information Systems→ Ad-hoc Reports→ Report Painter2. Report→ Create

Library: Z##

Report: Z3##-001

Description: Cost ctr. / Cstel

Click Create to access the report definition interface.

Define Rows

Double-click row 1.

1. In the Available Characteristic pane, choose Cost Element and CostCenter. Click Move selected to left.

2. In the Characteristic Values pane, enter the characteristic values forthe report. Click Confirm or Enter.

Use the following table for the characteristic and the associated values.

Cost element CA705_COST in the Group fieldCost center H1010 in the Group field

3. In the Enter Texts screen, enter the row texts. This text will appear inthe Overall Total row. Copy this text to the medium and long text fields.Click Confirm or Enter.

4. Click on row 1 and choose Edit→ Rows→ Expand. Choose theExplode option for the cost center and single value for the cost element.

Now, You have defined the row.

Define Columns

Continued on next page

68 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 77: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Double-click column 1.

1. In the Select Element Type screen, choose Key figure. Click Confirmor Enter.

2. In the Choose Predefined Column screen, choose Actual costs. ClickConfirm or Enter.

3. Click Confirm or Enter to check the ensuing screens. These screensshow how the key figure is defined. That is, these screens displaythe key figures and characteristics and their values that were usedto define the key figure.

You have defined the first column. To define the second column (PlannedCosts), you can use a key figure or define the column dynamically.

Define Formula (Variance) Column

Double-click column 3.

1. In the Select Element Type screen, choose Formula. Click Confirmor Enter.

2. In the Enter Formula screen, use the pushbuttons to define theVariance Column as X001 � X002. Click Confirm or Enter.

3. In the Enter Texts screen, define texts for the Variance column. ClickConfirm or Enter.

Define General Data Selections

1. Choose Edit→ Gen. data selection.

2. In the Available Characteristics pane, choose the characteristics that areto be included in the general parameters of the report (see table below).Click Confirm or Enter.

3. In the Selected Characteristics pane, enter the parameter values forthe report. Click Confirm or Enter.

Use the following table for the characteristic and the associated values.

Controlling area 1000 in the From fieldFiscal year Current fiscal year in the From fieldPeriod 1 to 12 in the From and To fields respectively

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 69

Page 78: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

You have now defined the general data selections.

Check and Save the Report

1. Check the report for any error or missing characteristics by choosingReport→ Check or use Check or F6.

2. Save the Report by choosing Report→ Save or use Save or CTRL+S.

Assign the Report to a Report Group

1. To assign the report to a report group, choose the following in theReport Definition environment: Environment→ Assign report group.

2. Enter the value Z3##.

Execute the Report

Choose Report→ Execute.

2. What explode level did you set for the cost center?

a) Drill-down

3. What explode level did you set for the cost elements?

a) Single values

4. Modify your report a few times to vary the explode levels for the cost centersand cost elements? Did the report results appear as you expected?

a)

Continued on next page

70 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 79: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

Task 2:Some employees will want to see the report with emphasis on the cost centers whileothers will want the emphasis on the cost elements. Create a new report that focuseson the cost elements. The report should have the following structure.

Figure 39:

1. Name the report Z3##-002 and assign it to one of the report groups you created.

a) Instructions for defining the report Z3##-002.

1. Choose Information Systems→ Ad-hoc Reports→ Report Painter.2. Choose Report→ Create.

Library: Z##

Report: Z3##-002

Description: Celem w/ CCtr detail

Copy from: Z3##-001

Click Create to access the report definition environment.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 71

Page 80: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

2. What did you do to change the sort sequence? What menu path did you choose?

a) Choose Edit→ Rows→ Expand.

Change the numeric field to the left of the characteristic. Cost elementshould be set to 1 and cost center should be set to 2.

In addition, cost center should be set to single values and cost elementsshould be set to Explode.

3. In which report group did you place the report Z3##-002? Why?

a) The report Z3##-002 should be assigned to the report group Z3## becauseit extracts the same data as Z3##-001.

4. In the report output, how did you switch between reports within the report group?

a) Use the menu path Goto→ Other Report or click Other Report.

Task 3:For greater flexibility when defining your reports, you use variables for the cost centergroup, the current fiscal year, the from/to period, and the controlling area. Whatimpact does this have on the input screen?

Use the following variables:

Char. VariablePeriod 1PERIV (From Period)

1PERIB (To Period)Fiscal year 1GJAHR

1. How do you make reports flexible?

a) Use variables to prompt inputs from the user at runtime.

To use variables in the general data selections, choose Edit→ GeneralSelections.

Click the Variable pushbutton.

Choose the corresponding variables.

2. Where are you able to use variables in a Report Painter report?

a) Variables can be used for characteristics in rows, general data selections, orfor characteristics used to define key figure columns.

Continued on next page

72 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 81: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Generating and Executing Reports

3. Modify the report Z3##-001 to add certain texts. Use the table below as a guideto the information you should display.

Title page HeaderAuthor of report Page x of nDate of output Controlling areaReport nameLibrary Fiscal yearReport group Period from, Period to

General Variables:

Selection Parameters:

Characteristic-Related Text Variables (Features):

a) Choose Report→ Change.

Library: Z##

Report: Z3##-001

Choose Extras→ Report Texts→ Title Page.

General Variables: Position your cursor where you would like the textto be displayed on the Title Page. Click on Standard Variables or chooseGoto→ Standard Variables. Choose your variables. They are marked onthe Title Page with a < > symbol. Repeat this procedure for all the standardvariables you require.

Note: If you want a description to appear before a standardvariable, type the text directly on the header page.

Selection Parameters: Position your cursor where you would like theselection information to be displayed on the Header Page. Check SelectionParameters or choose Goto→ Selection Parameters. Save the headerpage tests.

Characteristic-related text variables (Features): Position your cursorwhere you would like the selection information to be displayed on theheader page.

Choose Extras→ Report Texts→ Header.

Repeat this procedure to define the header texts.

2005/Q3 © 2005 SAP AG. All rights reserved. 73

Page 82: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 2: Creating Reports Using Report Painter CA705

Lesson Summary

You should now be able to:� Explain how report groups are used to generate and execute reports� Use variables for report definition� Enter text in reports

74 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 83: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Unit Summary

Unit SummaryYou should now be able to:� Define the structure of a Report Painter report� Define rows in a Report Painter report� Define columns in a Report Painter report� Define general data selections in a Report Painter report� Explain how report groups are used to generate and execute reports� Use variables for report definition� Enter text in reports

2005/Q3 © 2005 SAP AG. All rights reserved. 75

Page 84: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

76 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 85: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

Test Your Knowledge

1. The additional criteria defined for a report restrict the data processed in thatreport.Determine whether this statement is true or false.□ True□ False

2. You can use the to define formula rows.Fill in the blanks to complete the sentence.

3. To restrict the characteristics in a column, you can enter intervals oras you do in the case defining single values for rows.

Fill in the blanks to complete the sentence.

4. What are the components of a Report Painter report?

5. List the points in a report where text can be defined.

6. When a report group is generated, the system createsthat can be executed.Fill in the blanks to complete the sentence.

7. When you execute a report group that has reports defined with variables, anappears on the report selection screen for each variable

used.Fill in the blanks to complete the sentence.

2005/Q3 © 2005 SAP AG. All rights reserved. 77

Page 86: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Test Your Knowledge CA705

Answers

1. The additional criteria defined for a report restrict the data processed in thatreport.

Answer: True

The additional criteria defined for a report restrict the data processed in thatreport.

2. You can use the formula editor to define formula rows.

Answer: formula editor

3. To restrict the characteristics in a column, you can enter intervals or groups asyou do in the case defining single values for rows.

Answer: groups

4. What are the components of a Report Painter report?

Answer: The components of a Report Painter report are:

� Rows� Columns� General data selections

5. List the points in a report where text can be defined.

Answer: Text can be defined at the following points in a report:

� Title page� Header� Footer� Final page

6. When a report group is generated, the system creates ABAP reports that canbe executed.

Answer: ABAP reports

78 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 87: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

7. When you execute a report group that has reports defined with variables, aninput field appears on the report selection screen for each variable used.

Answer: input field

2005/Q3 © 2005 SAP AG. All rights reserved. 79

Page 88: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

80 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 89: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 3Row and Column Models

Unit OverviewThis unit explains how reports having similar row and column structures can be putinto row and column models. These models help you define reports in less time. Theunit also explains how these models can be used in reports and libraries.

Unit ObjectivesAfter completing this unit, you will be able to:

� Create row and column models

Unit ContentsLesson: Using Row and Column Models .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Exercise 6: Building Row and Column Models .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

2005/Q3 © 2005 SAP AG. All rights reserved. 81

Page 90: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 3: Row and Column Models CA705

Figure 40: Models: Overview

82 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 91: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Row and Column Models

Lesson: Using Row and Column Models

Lesson OverviewThis lesson explains how to create row and column models in reports. These modelshelp you define reports in less time.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� Create row and column models

Business ExampleYou work as a financial consultant for XYZ Cement Company. The companyneeds Cost Center Accounting reports. You need to create these reports using theReport Writer. You realize that most of your reports have the same row and columncharacteristics. You need to evaluate different methods of defining reports so that youare able to define your reports quickly.

Defining Reports Using Row and Column Models

Figure 41: Model Rows and Columns

2005/Q3 © 2005 SAP AG. All rights reserved. 83

Page 92: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 3: Row and Column Models CA705

You can store frequently used row and column structures in row and column models.You can copy row models and column models into a report. This is the quickestway to define a report.

Figure 42: Model Rows and Columns

Row and column models must be created for libraries. These can only be used inreports in the same library.

If you want to use the same models in different libraries, you have to copy them.Note that you can only copy models form one library to another if the target libraryhas the required fields.

84 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 93: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Row and Column Models

Exercise 6: Building Row and ColumnModels

Exercise ObjectivesAfter completing this exercise, you will be able to:� Create row and column models� Integrate models into reports

Business ExampleYou realize that most of your reports have the same or at least similar row or columnstructures. Therefore, you look for ways to define your reports more quickly.

Task:Since many of your reports compare actual costs, planned costs, and variances, youcreate a column model to help you create your reports more quickly.

1. Name your column model Z##-APV. Use your library Z##.

2. In addition, many of your reports itemize the cost elements within the costelement group OAS_PRIM. Build a row model based on OAS_PRIM. Namethe row model Z##-ELEMENT.

3. What Explode level did you use to itemize the cost element accounts inOAS_PRIM?

4. How will you integrate your models into your report? That is, what menu pathwill you use?

5. Build a new report Z4##-001 using your new model. This report will detailthe Actual, Plan, and Variance in costs for those cost element accounts inOAS_PRIM. This report should itemize the accounts in OAS_PRIM. Assignthis report to the report group Z4##.

The general selection criteria that will apply throughout the report are the costcenter group H1010, the current fiscal year, the periods 1 - 12, and thecontrolling area 1000. As these general selections are to be kept variable, use thesame variants as given in Task 3 in the exercise Using Hierarchies: Sequence(Sort). For the characteristic cost center, use set variable 1KOSET.

The controlling area contains the constant value 1000.

Create a report group Z4## with the Report Writer and insert your report.Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 85

Page 94: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 3: Row and Column Models CA705

Generate and execute your report group.

86 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 95: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Row and Column Models

Solution 6: Building Row and ColumnModelsTask:Since many of your reports compare actual costs, planned costs, and variances, youcreate a column model to help you create your reports more quickly.

1. Name your column model Z##-APV. Use your library Z##.

a) Choose Model→ Create.

Library: Z##

Copy from: Z##-APV

Description: APV Col Model

Structure: Column model

Click Create to proceed to the Create Model screen.

Proceed as you would normally in defining a report column. Double-clickeach column to define it as a key figure, a basic key figure withcharacteristic(s) column, or a formula column.

Save the model.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 87

Page 96: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 3: Row and Column Models CA705

2. In addition, many of your reports itemize the cost elements within the costelement group OAS_PRIM. Build a row model based on OAS_PRIM. Namethe row model Z##-ELEMENT.

a) Choose Model→ Create.

Library: Z##

Copy from: Z##-ELEMENT

Description: Celem row model

Structure: Row model

Click Create to proceed to the Model screen.

Proceed as you would normally when defining report rows.

Double-click the first element.

1. Select a cost element in the Available Characteristics dialog box.Click Move selected to left.

2. In the Characteristic Values pane, enter the value OAS_PRIM in theGroup field. In the Enter Texts screen, define row text. Copy this textto the medium and long text fields. Click Confirm or Enter.

3. Click row 1, choose Edit→ Rows→ Expand.4. Save the model.

3. What Explode level did you use to itemize the cost element accounts inOAS_PRIM?

a) Single values

4. How will you integrate your models into your report? That is, what menu pathwill you use?

a) From the report definition, choose:

Edit→ Column→ Get Column Model

Edit→ Row→ Get Row Model

5. Build a new report Z4##-001 using your new model. This report will detailthe Actual, Plan, and Variance in costs for those cost element accounts inOAS_PRIM. This report should itemize the accounts in OAS_PRIM. Assignthis report to the report group Z4##.

Continued on next page

88 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 97: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Row and Column Models

The general selection criteria that will apply throughout the report are the costcenter group H1010, the current fiscal year, the periods 1 - 12, and thecontrolling area 1000. As these general selections are to be kept variable, use thesame variants as given in Task 3 in the exercise Using Hierarchies: Sequence(Sort). For the characteristic cost center, use set variable 1KOSET.

The controlling area contains the constant value 1000.

Create a report group Z4## with the Report Writer and insert your report.

Generate and execute your report group.

a) Instructions for defining the report Z4##-001

From the main SAP System menu, choose:

1. Information Systems→ Ad-hoc Reports→ Report Painter2. Report→ Create

Library: Z##

Report: Z4##-001

Description: Models

Click Create to access the report definition environment.

Define Rows

Choose Edit→ Rows → Get Row Model. Select your row model,Z##-ELEMENT.

Define Columns

Choose Edit→ Columns→ Get Column Model. Select your column modelZ##-APV.

Define General Data Selections

1. Choose Edit→ Gen. data selection.

2. In the Available Characteristics pane, choose the characteristics that areto be included in the general parameters of the report (see table below).Click Move selected to left.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 89

Page 98: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 3: Row and Column Models CA705

3. In the Characteristic Values screen, instead of entering permanent valuesfor each characteristic, click Variables On/Off to activate the variables.Then, select a variable to hold the user values.

Use the following table for the characteristic and its associated variables.

Char. VariablePeriod 1PERIV (From Period)

1PERIB (To Period)Fiscal year 1GJAHRCost center 1KOSET

You have now defined the general data selections.

Check and Save the Report

1. Check the report for any errors or missing characteristics, by choosingReport→ Check or use Check or F6.

2. Save the Report via Report→ Save or use Save or CTRL+S.

Assign the Report to a Report Group

From the main SAP System menu, choose:

1. Information Systems→ Ad hoc reports→ Report Painter2. Report Writer→ Report Group→ Create

Rep. Group: Z4##

Library: Z##

3. Click Header or Enter. Enter a description for the report group.4. Click Reports. Enter Z4##-001 in the Report field.5. Save the report group.

Execute the Report

Click Generate.

Double-click Execute.

Continued on next page

90 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 99: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Row and Column Models

Use the following table for the Selection values:

Fiscal year Current yearPeriod 1 to 12Cost Center Group H1010

Click Execute.

2005/Q3 © 2005 SAP AG. All rights reserved. 91

Page 100: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 3: Row and Column Models CA705

Lesson Summary

You should now be able to:� Create row and column models

92 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 101: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Unit Summary

Unit SummaryYou should now be able to:� Create row and column models

2005/Q3 © 2005 SAP AG. All rights reserved. 93

Page 102: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

94 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 103: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

Test Your Knowledge

1. You can only copy models form one library to another if the target library hasthe required fields.Determine whether this statement is true or false.□ True□ False

2. The quickest way to define a report is to copy andinto a report.

Fill in the blanks to complete the sentence.

2005/Q3 © 2005 SAP AG. All rights reserved. 95

Page 104: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Test Your Knowledge CA705

Answers

1. You can only copy models form one library to another if the target library hasthe required fields.

Answer: True

You can only copy models form one library to another if the target library hasthe required fields.

2. The quickest way to define a report is to copy row models and column modelsinto a report.

Answer: row models, column models

96 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 105: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4Section and Horizontal Pages

Unit OverviewThis unit provides an overview of section and Horizontal Pages. To begin with, youwill learn about the structure of reports and how to extend reports by creating a newsection. Next, you will learn how to use cells in formulas to carry out mathematicaloperations in your reports. Finally, you will learn how to define sections withcalculated key figures.

Unit ObjectivesAfter completing this unit, you will be able to:

� Explain the concept of sections� Use cells in formulas� Define sections with calculated key figures

Unit ContentsLesson: Defining Sections and Horizontal Pages ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

Exercise 7: Working with Horizontal Pages.. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107Exercise 8: Working with Independent Sections .. . . . . . . . . . . . . . . . . . . . . . . . . 111Exercise 9: Using Cells in Column Formulas .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117Exercise 10: Working with Dependent Sections and Cells .. . . . . . . . . . . . . .121

2005/Q3 © 2005 SAP AG. All rights reserved. 97

Page 106: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Figure 43: Sections and Horizontal Pages: Overview

98 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 107: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Lesson: Defining Sections and Horizontal Pages

Lesson OverviewThis lesson provides an overview of sections and Horizontal Page in a report. Tobegin with, the lesson explains the division of a report into sections and division ofsections into Horizontal Page. Then, the lesson explains how to use cells in formulasto carry out mathematical operations in your reports. Finally, the lesson explains howto define sections with calculated key figures.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� Explain the concept of sections� Use cells in formulas� Define sections with calculated key figures

Business ExampleYou work as a financial consultant for XYZ Cement Company. You are a member ofthe project team responsible for creating reports using the Report Painter and ReportWriter. The company needs Cost Center Accounting reports. You need to create thesereports using the Report Writer. You realize that most of the reports to be createdcomprise different groups of key figures related by business content. For example,costs and quantities. You want to mirror this structure by dividing your reports intoseveral pages. You use the functions of Horizontal Pages to do this.

2005/Q3 © 2005 SAP AG. All rights reserved. 99

Page 108: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Overview of Sections

Figure 44: Report Structure

To define a report, you must determine the row and column structure and the generaldata selection criteria.

A report can consist of several sections. Each section may contain one or moreHorizontal Pages that have a common row structure.

You can define the following texts in each report:

� Title page� Header text� Footer� Last page

100 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 109: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Figure 45: Horizontal Pages

Each section in a report can comprise several Horizontal Pages. All of the HorizontalPages in a section have the same row structure.

Formula columns can refer to columns from all Horizontal Pages in the same section.

Figure 46: Sections

Every report can be broken down into several sections:

2005/Q3 © 2005 SAP AG. All rights reserved. 101

Page 110: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

There are two types of sections:

� Sections with characteristics and key figures� Sections with Calculated Key Figures

The majority of sections contain characteristics and key figures; section withcalculated key figures, however, can be used to calculate individual key figures fromother data displayed in the report. Each section has its own specific row structure.

Calculating Formula Rows, Columns, and Key Figures

Figure 47: Calculations Using Cells

You can use cells to carry out mathematical operations in your reports. A cell definesa certain location or interval in the row/column matrix of a report. Once the ReportWriter has identified a location or interval (or a coordinate), it can use the cell informulas.

The example above shows the cells that must be selected to perform the calculationsin the first section, in the �Actual/Employee� column formula, and in the 3rd section,�Costs/Employee� and �Telephone Units/Employee�.

102 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 111: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Figure 48: Cells in Formula Columns

You can use the cells selected in the report to calculate formula columns in the sameway as standard columns.

Figure 49: Sections with Calculated Key Figures

2005/Q3 © 2005 SAP AG. All rights reserved. 103

Page 112: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

In sections with calculated key figures, you can use the cells selected in the report todefine new key figures.

To define a section with calculated key figures, you must define texts for the rows andcolumns in the section. Then, define each individual cell using the formula editor.

Figure 50: Sections with Calculated Key Figures

You cannot select cells in exploded rows. The reference value in the row for a cell isthe maximum total of the respective hierarchy.

If you want to choose cells for a subgroup, you have to define an additional report rowfor the subgroup, choose the required cell, and hide the report row.

104 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 113: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Figure 51: Suppressed Rows and Columns

As already explained in the previous example, you can suppress or hide individualrows and columns in a report. You can use the hidden rows and columns to calculateformula rows or formula columns or to define sections with calculated key figures.

2005/Q3 © 2005 SAP AG. All rights reserved. 105

Page 114: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

106 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 115: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Exercise 7: Working with Horizontal Pages

Exercise ObjectivesAfter completing this exercise, you will be able to:� Create reports using Horizontal Pages

Business ExampleYou have realized that most of the reports you want to build comprise different groupsof key figures, such as costs and quantities, related by business content. You wish tomirror this structure by dividing your reports into several pages.

Task:You need to build a report that has the following structure. You need to ensure thatwhen this report prints it causes a page break between breaks in groups of columns.

1. Create Z5##-001 by copying Z4##-001. Make the relevant changes in your newreport. Assign the report Z5##-001 to the report group Z5##. Use your libraryZ## for this purpose.

Figure 52: report

- Define New Horizontal Page

- Define Columns

- Define Formula (Variance) Column

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

2005/Q3 © 2005 SAP AG. All rights reserved. 107

Page 116: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Solution 7: Working with Horizontal PagesTask:You need to build a report that has the following structure. You need to ensure thatwhen this report prints it causes a page break between breaks in groups of columns.

1. Create Z5##-001 by copying Z4##-001. Make the relevant changes in your newreport. Assign the report Z5##-001 to the report group Z5##. Use your libraryZ## for this purpose.

Figure 53: report

- Define New Horizontal Page

- Define Columns

- Define Formula (Variance) Column

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

a) Report→ Create

Library: Z##

Report: Z5##-001

Description: Horizontal Pages

Copy From

Report: Z4##-001

Define New Horizontal Pages

Continued on next page

108 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 117: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Choose Edit→ Horizontal Page→ New Horizontal Page.

Define Columns

Double-click the next available column.

1. In the Select Element Type screen, choose Key figure. Click Confirmor Enter.

2. In the Choose Predefined Column screen, choose Act. qty. ClickConfirm or Enter.

3. Click Confirm or Enter to review the ensuing screens. These screensshow how the key figure was defined. That is, they display the basickey figures and characteristics and their values that were used todefine the predefined column.

You have completed the Act. Qty Column definition. Proceed to definethe Planned Qty Column using the key figures or define the columndynamically.

Define Formula (Variance)

Double-click the next available column.

1. In the Select Element Type screen, select Formula. Click Confirmor Enter.

2. In the Enter Formula screen, use the pushbuttons to define theVariance Column as Act. Qty � Planned Qty. Click Confirm or Enter.

3. In the Enter Texts screen, define texts for the variance column. Copythe text to the Medium and Long fields. Click Confirm or Enter.

Check and Save the Report

1. Check the report for any error or missing characteristics by choosingReport→ Check or use Check or F6.

2. Save the Report via Report→ Save or use Save or CTRL+S.

Assign the Report to a Report Group

From the report definition interface, choose:

1. Environment→ Assign report group2. Enter Z5##.

Execute the Report

1. Report→ Execute

2005/Q3 © 2005 SAP AG. All rights reserved. 109

Page 118: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

110 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 119: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Exercise 8: Working with IndependentSections

Exercise ObjectivesAfter completing this exercise, you will be able to:� Extend your report by creating a new section with characteristics and key figures� Explain how to define independent sections

Business ExampleYou realize that most of the reports to be built comprise different groups of key figures,such as costs and quantities, related by business content. You need to create twosections for this purpose, Section 1 for Costs and Section 2 for Statistical key figures.

Task:

1. You now need to create a report that contains the information contained withinthe two boxes.

Figure 54:

Name this report Z6##-001 and assign it to the report group Z6##. Use yourlibrary Z## for this purpose.

- Define New Section

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 111

Page 120: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

- Name the New Section

- Define Rows

- Define Columns

- Check and Save the Report

- Link Report to Report Group (Report Writer method)

- Execute the Report

112 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 121: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Solution 8: Working with IndependentSectionsTask:

1. You now need to create a report that contains the information contained withinthe two boxes.

Figure 55:

Name this report Z6##-001 and assign it to the report group Z6##. Use yourlibrary Z## for this purpose.

- Define New Section

- Name the New Section

- Define Rows

- Define Columns

- Check and Save the Report

- Link Report to Report Group (Report Writer method)

- Execute the Report

a) Report→ Create

Library: Z##

Report: Z6##-001Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 113

Page 122: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Description: New Section

Copy From

Report: Z5##-001

Define New Section

Choose Edit→ Sections→ New section.

In response to the New Report Section prompt, select Section withcharacteristics and key figures. The new section is displayed. Continue todefine the rows and columns as you would normally for a report.

Name the New Section

Make sure to add text to describe this new section.

Define Rows

Double-click the first available row.

1. In the Choose Characteristic screen, select Statistical Key Figure.Click Move selected to left.

2. In the Characteristic Values screen, enter the value for the report row.Click Confirm or Enter.

Use the following table for the characteristic and its associated value.

Employee 9100Square meters 9101Telephone units 9201

3. In the Enter Texts screen, define a row text. Copy this text to the mediumand long text fields. Click Confirm or Enter.

You have completed the definition for the Employees Row. Now, definethe remaining two statistical key figure rows.

Define Columns

Double-click the first available column.

1. In the Select Element Type screen, choose �Key figure�. ClickConfirm or Enter.

Continued on next page

114 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 123: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

2. In the Choose Key Figure screen, choose Stat. Key Figures. ClickConfirm or Enter.

3. Click Confirm or Enter to review the ensuing screens. These screensshow how the key figures were defined. That is, they display thebasic key figures and characteristics and their values that were usedto define the key figure.

You have completed the Actual Stat. Key Figures Column definition.Proceed to define the Column containing Statistical Key Figures,plan, using a predefined column, or dynamically defining the column.

Define Formula (Variance) Column

Double-click the next available column.

1. In the Select Element Type screen, choose Formula. Click Confirmor Enter.

2. In the Enter Formula screen, use the pushbuttons to define theVariance Column as X001 � X002. Click Confirm or Enter.

3. In the Enter Texts screen, define texts for the variance column. Copythe text to medium and long text fields. Click Confirm or Enter.

Check and Save the Report

1. Check the report for any errors or missing characteristics by choosingReport→ Check or use Check or F6.

2. Save the Report via Report→ Save or use Save or CTRL + S.

Assign the Report to a Report Group

From the Report Writer menu, choose:

1. Report Writer→ Report Group→ Create

Rep. Group: Z6##

Library: Z##

2. Click Header or Enter. Enter a description for the report group.3. Click Reports. Enter Z6##-001 in the reports field.4. Save the report group.

Execute the Report

Click Generate.

Click Execute two times.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 115

Page 124: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Use the following table for the Selection values.

Controlling area 1000Fiscal year Current YearPeriod 1 to 12Cost Center Group H1010

Click Execute.

116 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 125: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Exercise 9: Using Cells in Column Formulas

Exercise ObjectivesAfter completing this exercise, you will be able to:� Define cells to use them in column formulas

Business ExampleYou learned how to reference columns and rows in column formulas and row formulas,respectively. Imagine that you want to reference a single value, such as number ofemployees, to normalize costs. You will use a cell in a column formula to do this.

Task:The report required now is displayed below.

1. Create the report shown below and call it Z6##-002 (base it on Z6##-001).

Figure 56:

- Select cell needed for calculation

- Add the New Formula Column

- Check and Save the Report

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 117

Page 126: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

- Assign the Report to the Report Group Z6##

- Execute the Report

118 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 127: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Solution 9: Using Cells in Column FormulasTask:The report required now is displayed below.

1. Create the report shown below and call it Z6##-002 (base it on Z6##-001).

Figure 57:

- Select cell needed for calculation

- Add the New Formula Column

- Check and Save the Report

- Assign the Report to the Report Group Z6##

- Execute the Report

a) Report→ Create

Library: Z##

Report: Z6##-002

Description: Cell in form. col.

Copy From

Report: Z6##-001

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 119

Page 128: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Select Cell Needed for Calculation

Goto→ Section→ Next section or choose Next section.

Select the cell: Double-click the �XXX.XXX� in the cell located at theintersection of Employee and Act Stat Qty.

Choose Goto→ Previous Section.

Add New Formula Column

Add a new formula column to the right of the variance column: Ensureyou are currently in Horizontal Page 1. Use the pushbuttons to define theformula �X001� / �Z001�, where X001 represents the Actual Costs columnand Z001 represents the Employee/Actual Stat Qty.

Check and Save the Report

1. Check the report for any error or missing characteristics by choosingReport→ Check or use Check or F6.

2. Save the Report via Report→ Save or use Save or CTRL+S.

Assign the Report to a Report Group

From the Report Writer menu, choose

Report Writer→ Report Group→ Change

Rep. Group: Z6##

Library: Z##

1. Click Reports. Enter Z6##-002 in the reports field.2. Save the report group.

Execute the Report

Click Generate.

Click Execute twice.

Use the following table for the selection values.

Controlling area 1000Fiscal year Current YearPeriod 1 to 12Cost Center Group H1010

Click Execute.

120 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 129: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

Exercise 10: Working with DependentSections and Cells

Exercise ObjectivesAfter completing this exercise, you will be able to:� Extend reports to calculate your own key figures by referencing data from

previous sections of the report, such as calculated key figure block� Explain the term - dependent section

Business ExampleThe underlying Reporting Table does not directly offer some of the key figuresrelevant to your business. However, these key figures can be calculated from the data.Therefore, you will access data cells from previous sections of the report to calculateyour own key figures.

2005/Q3 © 2005 SAP AG. All rights reserved. 121

Page 130: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Task:

1. The report continues to build where it now calculates the PersonnelCosts/Employee in addition to displaying the information account by account.Create the report Z6##-003 (base it on Z6##-002). Mark the cells that you needto perform the calculation in the new sections.

Note: Use the set OAS_PERS for the personnel costs.

Figure 58:

- Define Additional Row for Personnel Costs (OAS_PERS)

- Select Cells (Personnel Costs: Actual and Plan)

- Hide Personnel Costs Row

- Select Cells (Employee: Actual and Plan)

- Create a Calculated Key Figure Section

- Name the Section

- Define Row Text

- Define Column Text

- Define Formula Cells

Continued on next page

122 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 131: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

- Check and Save the Report

- Assign the Report to the Report Group Z6##

- Execute the Report

Hint: To toggle between reports in the same report group, use the menupath Goto→ Other Report or click on Other Report.

2. Why do you need to Set the Explode level on the Cost Elements to Explodeor Do Not Explode?

3. What is meant by Dependent Section?

2005/Q3 © 2005 SAP AG. All rights reserved. 123

Page 132: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Solution 10: Working with DependentSections and CellsTask:

1. The report continues to build where it now calculates the PersonnelCosts/Employee in addition to displaying the information account by account.Create the report Z6##-003 (base it on Z6##-002). Mark the cells that you needto perform the calculation in the new sections.

Note: Use the set OAS_PERS for the personnel costs.

Figure 59:

- Define Additional Row for Personnel Costs (OAS_PERS)

- Select Cells (Personnel Costs: Actual and Plan)

- Hide Personnel Costs Row

- Select Cells (Employee: Actual and Plan)

- Create a Calculated Key Figure Section

- Name the Section

Continued on next page

124 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 133: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

- Define Row Text

- Define Column Text

- Define Formula Cells

- Check and Save the Report

- Assign the Report to the Report Group Z6##

- Execute the Report

Hint: To toggle between reports in the same report group, use the menupath Goto→ Other Report or click on Other Report.

a) Choose Report→ Create.

Library: Z##

Report: Z6##-003

Description: Calculated key figures

Copy From

Report: Z6##-002

Select Cells (Personnel Costs)

To use the personnel costs as part of the formula, you have to enter the setOAS_PERS in a separate line to access the top totals levels. Ensure therow is either in explode or do not explode setting. This is required to accessthe grand total line of the costs. After the explode setting is correctly set,proceed to select the cells.

Double-click the cell defined by the intersection of Personnel Costs andActual.

Double-click the cell defined by the intersection of Personnel Costs andPlan.

Then, hide the Personnel Costs row.

Choose Edit→ Rows→ Hide.

Select Cells (Employee)

Choose Goto→ Section→ Next section.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 125

Page 134: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Double-click the cell defined by the intersection of Employees and ActStat Qty.

Double-click the cell defined by the intersection of Employees and PlanStat Qty.

Create a Calculated Key Figure Section

Choose Edit→ Sections→ New section.

In response to the New Report Section prompt, select Section withcalculated key figures. The new section is displayed straight away.

Name the Section

Provide a text description for the section.

Define Row Text

Double-click Row 1 and enter the text for the row (e.g., PersonnelCosts/Emp).

Define Column Text

Double-click Column 1 to define text for the Actual column. Do the samefor column 2 (Plan).

Define Formula Cells

Double-click the cell defined by the intersection of Personnel Costs/Empand Actual and enter the formula, �personnel costs actual�/�employeeactual�. Your formula will reference Z001, Z002 etc., depending on therelationship of your Z number to the cell value. Double-click the celldefined by the intersection of Personnel Costs/Emp and Plan and enter theformula, �personnel costs plan� / �employee plan�

Check and Save the Report

1. Check the report for any errors or missing characteristics by choosingReport→ Check or use Check or F6.

2. Save the Report via Report→ Save or use Save or CTRL + S.

Assign the Report to a Report Group

From the Report Writer menu, choose:

1. Report Writer→ Report Group→ Change

Rep. Group: Z6##

Library: Z##Continued on next page

126 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 135: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Defining Sections and Horizontal Pages

2. Click on Reports. Add Z6##-003 to the reports field.3. Save the report group.

Execute the Report

Click Generate.

Click Execute twice.

Use the following table for the Selection values.

Controlling area 1000Period 1 to 12Fiscal year Current YearCost Center Group H1010

Click Execute.

2. Why do you need to Set the Explode level on the Cost Elements to Explodeor Do Not Explode?

a) This is because you need to have access to the grand total of the hierarchy.If the OAS_PRIM set is defined as Single Values, you do not have accessto the grand total.

3. What is meant by Dependent Section?

a) A Dependent Section is a section of the report where no new data isextracted from the summary tables. Only existing data from other sectionsof the report are referenced and used in calculations.

2005/Q3 © 2005 SAP AG. All rights reserved. 127

Page 136: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 4: Section and Horizontal Pages CA705

Lesson Summary

You should now be able to:� Explain the concept of sections� Use cells in formulas� Define sections with calculated key figures

128 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 137: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Unit Summary

Unit SummaryYou should now be able to:� Explain the concept of sections� Use cells in formulas� Define sections with calculated key figures

2005/Q3 © 2005 SAP AG. All rights reserved. 129

Page 138: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

130 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 139: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

Test Your Knowledge

1. You can use the cells selected in the report to calculate formula columns inthe same way as standard columns.Determine whether this statement is true or false.□ True□ False

2. When defining a section with a calculated key figure, what are the steps youmust follow to choose cells for a subgroup?Choose the correct answer(s).□ A Define an additional report row□ B Choose the required cell□ C Select cells in exploded rows□ D Hide the report row

3. Name the two types of sections in a report.

2005/Q3 © 2005 SAP AG. All rights reserved. 131

Page 140: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Test Your Knowledge CA705

Answers

1. You can use the cells selected in the report to calculate formula columns inthe same way as standard columns.

Answer: True

You can use the cells selected in the report to calculate formula columns inthe same way as standard columns.

2. When defining a section with a calculated key figure, what are the steps youmust follow to choose cells for a subgroup?

Answer: A, B, D

When defining a section with calculated key figure, if you want to choose cellsfor a subgroup, you have to define an additional report row for the subgroup,choose the required cell, and hide the report row.

3. Name the two types of sections in a report.

Answer: A report has the following types of sections:

� Sections with characteristics and key figures� Sections with calculated key figures

132 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 141: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5Formatting Reports

Unit OverviewThis unit explains how to format reports. To begin with, you will learn how to use theformatting options in sections. Next, you will learn how to use the standard layoutin reports. Then, you will learn how to use the format groups to format columns ina section. Finally, you will learn how to use a section layout locally for a sectionin your report.

Unit ObjectivesAfter completing this unit, you will be able to:

� Use the formatting options in sections� Use the standard layouts� Use format groups to format columns� Use the section layout

Unit ContentsLesson: Using Standard Layouts and Format Groups.. . . . . . . . . . . . . . . . . . . . . . . .135

Exercise 11: Section Layout and Attributes .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143Exercise 12: Format Groups and Other Formatting Issues.. . . . . . . . . . . . . .147

2005/Q3 © 2005 SAP AG. All rights reserved. 133

Page 142: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

Figure 60: Formatting: Overview

134 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 143: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

Lesson: Using Standard Layouts and Format Groups

Lesson OverviewThis lesson focuses on using standard layouts and format groups. First the lessonexplains how to use the formatting options in sections. Then, the lesson explainshow to use the standard layouts in a report. Next, the lesson explains how to use theformat groups to format columns in a section. Finally, the lesson explains how to usethe section layout in a report.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� Use the formatting options in sections� Use the standard layouts� Use format groups to format columns� Use the section layout

Business ExampleYou work as a financial consultant for XYZ Cement Company. The managementwants you to create a report of how much each cost center is spending toward eachaccount. Further, they need you to divide the report layout into two different sections:Actual vis-a-vis plan costs and statistical key figure section. They also need you todifferent attributes for each section of the report. You need to use the section layoutand functions of attributes to do this.

2005/Q3 © 2005 SAP AG. All rights reserved. 135

Page 144: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

Formatting Sections

Figure 61: Formatting Sections

You can use the following formatting options in the section of a report definition:

� Select a short text, medium text, or a single-line long text for all columns.� Define color and overscore/underscore options to emphasize a summarization

(*) level.� Expand/compress the summarization levels.� Choose format groups for the columns to optimize the number format and

column width.

136 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 145: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

Using Standard Layouts

Figure 62: Standard Layout

You create a standard layout independent of a report.

You assign the standard layout to your report. If you are not working with a standardlayout you created yourself, the SAP layout is used.

This standard layout defines the format of your report.

In the layout, you can define parameters that control:

� Rows� Lead column� Columns� Column headings� Representation� Language-specific parameters� Graphics

2005/Q3 © 2005 SAP AG. All rights reserved. 137

Page 146: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

Figure 63: Standard Layout for Defining Reports

In the report definition, you can assign a standard layout to a report in the report header.

The settings in this report are applicable for the report.

Figure 64: Layout Changes During Output

When a report group is output on the screen, you can either use the standard layoutentered in the header of the Report Painter report or copy it locally as a report layoutfor this report and modify selected parameters for this report.

138 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 147: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

You can modify this report layout permanently if the �Change allowed duringexecution� flag is set in the layout.

This flag determines whether modifications to the layout parameters can be saved.

With reports that are under development, you can save the parameters to allow youdefine the report layout. Once the report has left the development phase it should nolonger be possible to save the parameters online otherwise every user can change thereport layout constantly.

Using Format Groups

Figure 65: Format Groups

You may have to define different formats form amounts in different columns. In theReport Writer, you use the format groups for this purpose.

The Report Writer comprises a series of layout parameters in six different variants,which are numbered in a sequence. The number is referred to as a format group.These format groups can be entered above the columns. In a report, the parameterversion that matches the format group is always used.

2005/Q3 © 2005 SAP AG. All rights reserved. 139

Page 148: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

Examples of these parameters include:

� Column width� Number of decimal places� Scale� Flag: print units� Right margin� Flag: reverse +/- sign

Section Layouts and Attributes

Figure 66: Section Layout and Attributes

A Report Writer report comprises one or more sections. These sections are output inthe order defined by their sequence number. You can specify a separate text and pagebreak for each section.

You can also decide whether the section is to be output on a new page or, if the sectionstarts in the middle of a page, whether the column heading is to be printed.

If you insert a layout in a report header, it will apply globally to all of the sectionswithin the report. In this case, any changes made to the layout of the reportautomatically affects these sections.

140 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 149: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

You can also specify layout parameters for specific sections in the report definition.These take precedence over the global layout settings.

The section layout contains control information on:

� Row totals� Row texts� Column texts

The section settings can also be modified in the report output.

2005/Q3 © 2005 SAP AG. All rights reserved. 141

Page 150: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

142 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 151: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

Exercise 11: Section Layout and Attributes

Exercise ObjectivesAfter completing this exercise, you will be able to:� Describe the purpose of the standard layout and link it to the Report Painter

Report� Describe the purpose of the section layout and attributes

Business ExampleManagement requires different attributes for each section of the report that you create.You need to create a standard layout and assign it to an existing report.

Task 1:

1. Describe the terms �standard layout�, �section layout�, and �section attributes�.

Task 2:Modify your report Z6##-003 so that you can try different layout settings.

1. Create a separate standard layout Z##-NEW and assign it to the report.

2. How would you link your report to a different standard layout?

3. How do you change the section attributes?

4. How would you link your report to a different section layout?

2005/Q3 © 2005 SAP AG. All rights reserved. 143

Page 152: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

Solution 11: Section Layout and AttributesTask 1:

1. Describe the terms �standard layout�, �section layout�, and �section attributes�.

a) The standard layout is similar in thought to a stylesheet in a word processingpackage. The layout provides some general guidelines for which all reportslinked to the layout follows. The layout can define column widths, numberand decimal representation, and location of the lead column.

You can use the section layout to define different layout settings for eachreport section. You can either copy the settings from the standard layout orchange them to suit your requirements.

Using the section attributes, you can define the following attributes foreach section: Page break/overscore/underscore/print column header

Task 2:Modify your report Z6##-003 so that you can try different layout settings.

1. Create a separate standard layout Z##-NEW and assign it to the report.

a) Choose Ad-hoc reports→ Report Painter→ Report Writer→ Standardlayout→ Create.

Standard layout: Z##-New

Copy from: SAP

Define your own layout and assign it to the report

2. How would you link your report to a different standard layout?

a) From within the report definition, choose Edit→ Report header ordouble-click the name of the standard layout currently linked to the report.The layout name is located in the header row of the Report Painter reportdefinition interface.

3. How do you change the section attributes?

a) In the report definition, choose Formatting→ Section overview or, for eachsection in the report, Settings→ Section attributes.

Continued on next page

144 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 153: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

4. How would you link your report to a different section layout?

a) Position the cursor on the section whose layout you want to edit. In thereport definition, choose Formatting→ Section layout or, in the executedreport, Settings→ Section layout.

2005/Q3 © 2005 SAP AG. All rights reserved. 145

Page 154: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

146 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 155: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

Exercise 12: Format Groups and OtherFormatting Issues

Exercise ObjectivesAfter completing this exercise, you will be able to:� Use format groups to format columns in your reports� Use overscores and underscores to highlight a particular level of a row� Use local summation levels to hide details

Business ExampleYou need to modify the layout of an existing report to highlight various levels of rows.You use overscores and underscores and local summarization levels to do this.

Task:

1. Modify your report Z5##-001 to test the use of format groups.

Figure 67:

Assign Format Groups

Update Format Group 1 Information

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 147

Page 156: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

Update Format Group 0 Information

Emphasize Subtotal Rows with Lines

2. How does the report know which format group you are currently modifying?

Check and Save the Report

Execute the Report from the Report Definition Interface

3. Suppose you prefer not to see the details of the report but just the grand totalsand the next level subtotals as shown below. Make the appropriate change toZ5##-001.

Figure 68:

Check and Save the Report

Execute the Report from the Report Definition Interface

148 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 157: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

Solution 12: Format Groups and OtherFormatting IssuesTask:

1. Modify your report Z5##-001 to test the use of format groups.

Figure 69:

Assign Format Groups

Update Format Group 1 Information

Update Format Group 0 Information

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 149

Page 158: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

Emphasize Subtotal Rows with Lines

a)

1. Expand the whole line. (Drill-down)2. Reduce the width of the Variance column (Costs) and show zero

decimal places.3. Increase the size of the Actual and Plan column (Costs) and show

two decimal places.4. Modify the report so the subtotal rows (** level) are marked by

underscores and overscores.Choose Report→ Change.

Library: 1VK

Report: Z5##-001

Assign Format Groups

Set the format group for the variance column to the format group 1. Leavethe remain format groups set to 0.

Update Format Group 1 Information

Column Width: While your cursor is positioned on the Variance column,choose Formatting→ Columns→ Maintain format groups. Enter anappropriate column width.

Decimal notation: While your cursor is positioned on the Variance column,choose Formatting→ Columns→ Maintain format groups. Choose the 0decimal places format.

Update Format Group 0 Information

Column Width: Position your cursor in the Actual or Plan column andchoose Formatting→ Columns→ Maintain format groups. Enter anappropriate column width.

Decimal notation: Position your cursor in the Actual or Plan column andchoose Formatting→ Columns→ Maintain format groups. Choose the0.00 decimal places format.

Emphasize Subtotal Rows with Lines

Place your cursor on a subtotal row and choose Formatting→ Row→Underscore/Overscore. Select both the underscore and overscore boxes.

2. How does the report know which format group you are currently modifying?

Continued on next page

150 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 159: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

Check and Save the Report

Execute the Report from the Report Definition Interface

a) Based on the current position of your cursor in a column. If your cursor ispositioned in a column that is the format group 2, you modify the formatgroup 2 when you make changes to column width.

Check and Save the Report

Check the report for any error or missing characteristics by choosingReport→ Check or use Check or F6.

Save the Report via Report→ Save or use Save or CTRL + S.

Execute the Report from the Report Definition Interface

Choose Report→ Execute.

Use the following table for the Selection values.

Controlling area 1000Fiscal year Current yearPeriod 1 to 12Cost Center Group H1010

Click Execute.

3. Suppose you prefer not to see the details of the report but just the grand totalsand the next level subtotals as shown below. Make the appropriate change toZ5##-001.

Figure 70:

Check and Save the Report

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 151

Page 160: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 5: Formatting Reports CA705

Execute the Report from the Report Definition Interface

a) Choose Report→ Change.

Library: 1VK

Report: Z5##-001

Place your cursor on a subtotal row, then proceed to the menu Formatting→ Collapse to. Select 3-Asterisk Level. Now, the report shows only the 3and 4-asterisk levels.

Check and Save the Report

Check the report for any error or missing characteristics by choosingReport→ Check or use Check or F6.

Save the Report via Report→ Save or use Save or CTRL + S.

Execute the Report from the Report Definition Interface

Choose Report→ Execute.

Use the following table for the Selection values:

Controlling area 1000Fiscal year Current YearPeriod 1 to 12Cost Center Group H1010

Click Execute.

152 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 161: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Standard Layouts and Format Groups

Lesson Summary

You should now be able to:� Use the formatting options in sections� Use the standard layouts� Use format groups to format columns� Use the section layout

2005/Q3 © 2005 SAP AG. All rights reserved. 153

Page 162: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

Unit SummaryYou should now be able to:� Use the formatting options in sections� Use the standard layouts� Use format groups to format columns� Use the section layout

154 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 163: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

Test Your Knowledge

1. It is possible to expand or compress the summarization levels using theformatting options in the section of a report definition.Determine whether this statement is true or false.□ True□ False

2. The format group numbers are entered below the columns in a section.Determine whether this statement is true or false.□ True□ False

3. You can modify a report layout permanently if theflag is set

in the layout.Fill in the blanks to complete the sentence.

4. The section layout contains control information on ,, and .

Fill in the blanks to complete the sentence.

2005/Q3 © 2005 SAP AG. All rights reserved. 155

Page 164: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Test Your Knowledge CA705

Answers

1. It is possible to expand or compress the summarization levels using theformatting options in the section of a report definition.

Answer: True

It is possible to expand or compress the summarization levels using theformatting options in the section of a report definition.

2. The format group numbers are entered below the columns in a section.

Answer: False

The format group numbers are entered above the columns in a section.

3. You can modify a report layout permanently if the Change allowed duringexecution flag is set in the layout.

Answer: Change allowed during execution

4. The section layout contains control information on row totals, row texts, andcolumn texts.

Answer: row totals, row texts, column texts

156 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 165: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6Variations and Extracts

Unit OverviewThis unit focuses on variations and extracts in mass reports. The unit begins byexplaining the use of variation and why variation helps in reducing the systemload. Then, the unit explains how to create extracts and handle them with extractmanagement. Finally, the unit explains how to execute reports with a background job.

Unit ObjectivesAfter completing this unit, you will be able to:

� Use the variation function� Create extracts� Execute reports with background jobs

Unit ContentsLesson: Using Variations and Extracts in Mass Reports .. . . . . . . . . . . . . . . . . . . . .158

Exercise 13: Variation.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .165Exercise 14: Extracts .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .169Exercise 15: Background Jobs .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .171

2005/Q3 © 2005 SAP AG. All rights reserved. 157

Page 166: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

Lesson: Using Variations and Extracts in Mass Reports

Lesson OverviewThis lesson provides and overview on how to use variation and extracts in massreports. First, the lesson explains how to use the variation function in a report. Then,the it explains how to create extracts for extracting large amounts of data faster.Finally, the lesson explains how to execute reports with background jobs for propersystem utilization.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� Use the variation function� Create extracts� Execute reports with background jobs

Business ExampleYou work as a financial consultant for XYZ Cement Company. The company hasdefined a set of reports that have been optimized according to the company�s needs.After closing each posting period, every cost center manager requires reports. Youhave been asked to set up a standard procedure to provide these reports. In addition,you have been asked to provide end users with easy access to these reports. If anunexpected variance between the actual and planned costs appears, the end users needto drill down to more detailed data to analyze the reason for the variation.

158 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 167: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Variations and Extracts in Mass Reports

Using Variations

Figure 71: Variation

Using the variation function, you can generate a report for every node and eachsingle value in a hierarchy of characteristics used in the general data selection of areport. When using the variation function, you can interactively navigate within thehierarchy structure.

If you want to use the variation function when outputting a report, you must specifythis in the report definition.

If the variation is used, you only need to carry out one selection run on the databasefor all the reports produced. For this reason, the variation can often be used to reducethe system load.

2005/Q3 © 2005 SAP AG. All rights reserved. 159

Page 168: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

Figure 72: Variation: Navigating in the Report Output

The navigation bar can be displayed to the left of the report to help you navigatethrough the report.

This navigation bar also allows you to switch between the various variation reports, ifthe variation function is active for the current report.

The navigation bar is also displayed for switching between the various reports in thereport group, provided that the report group contains at least two reports.

160 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 169: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Variations and Extracts in Mass Reports

Creating Extracts

Figure 73: Creating Extracts

You can select and output data without creating an extract.

Alternatively, you can decide to select the data and store it as an extract with orwithout outputting it.

If the data is stored as an extract, you do not need to select it again. This means thatthe time required to output an extract is less.

When you output an extract, all of the Report Writer functions such as definingthreshold values and sorting lists are also available. These functions can also beused after a selection run via the database.

2005/Q3 © 2005 SAP AG. All rights reserved. 161

Page 170: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

Figure 74: Extract Management

Each stored extract is identified by its report group and selection criteria.

By choosing the data source, you can decide whether you want to display extracts(default) or select data from the database or from archive files.

When you start a report, the system finds all the extracts that match the selectioncriteria you defined.

If a report has been executed for a whole cost center hierarchy using the variation,the system stores extracts for all cost center groups and single cost centers containedin that hierarchy.

162 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 171: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Variations and Extracts in Mass Reports

Using Background Jobs

Figure 75: Background Processing

You can also execute reports in the background. This ensures that in the event ofhigh-system utilization additional processing time is not required.

Once you release the background job, the system performs all additional steps withoutuser intervention.

For reports with large amount of data, it is advised to create an extract in thebackground and display and process the data online.

2005/Q3 © 2005 SAP AG. All rights reserved. 163

Page 172: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

Figure 76: Month-end Reporting: Potential Scenarios

You save the selection criteria for a specific report in a variant. This variant containsthe extract and variation parameters. Activate the flags "Create extract" and "Explode"for the variation.

The variant created can be used to schedule a background job. This backgroundjob can run when the system load is low.

This enables you to create reports and extracts for a whole hierarchy of cost centersusing only one job.

Your end users can access the extracts created to display their reports very quickly.

164 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 173: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Variations and Extracts in Mass Reports

Exercise 13: Variation

Exercise ObjectivesAfter completing this exercise, you will be able to:� Define reports that use variation for different characteristics� Explain why the variation is a method that helps to reduce the system load

Business ExampleYour company has defined a set of reports that have been optimized to your company�sneeds. After closing each posting period, every cost center manager requires reports.You are asked to set up a standard procedure to provide these reports.

Also, you are asked to provide end users with easy access to these reports.

If an unexpected variance between the actual and planned costs appears, the end usersneed to drill-down to more detailed data to analyze the reason for the variation.

Task:

1. As you have just read, each cost center manager requires reports. You can dealwith this situation in two ways. You can run the indicated report individuallyfor each cost center. This is time-consuming. Alternatively, use the variationfunction.

Use variations to execute report Z4##-001 (report group Z4##).

2. How did you activate the variation in the report?

3. How did you use the variations after the report was run?

4. Prefer displaying the name of the Cost Center in the header of the report as areminder of which cost center you are currently viewing. Maintain the relevanttexts.

2005/Q3 © 2005 SAP AG. All rights reserved. 165

Page 174: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

Solution 13: VariationTask:

1. As you have just read, each cost center manager requires reports. You can dealwith this situation in two ways. You can run the indicated report individuallyfor each cost center. This is time-consuming. Alternatively, use the variationfunction.

Use variations to execute report Z4##-001 (report group Z4##).

a) Choose Report→ Change.

Library: Z##

Report: Z4##-001

Variations must be activated within the report definition to be available atruntime for the user of this report. To do this, choose Edit→ Variation.

For the Cost Center characteristic, select Variations at the Single Valueslevel.

Select Enter.

Save the report.

Execute the report with Variations. You can view the values of each costcenter on the result screen using the control. Click a cost center to select it.Then, the system displays the values for this cost center. You can displaythe name of the cost center by extending your header text. You can also useicons to navigate through the hierarchy instead of using the menu bar.

2. How did you activate the variation in the report?

a) Enter the report via Report→ Change. Then, choose Edit→ Variation.Select the radio button Single Values for the characteristic Cost Center.

3. How did you use the variations after the report was run?

a) After you checked the results screen, use the navigation control to drilldown the hierarchy to an individual cost center. The selected cost center�svalues will be displayed. Navigate to a different position in the hierarchy.

You can navigate through the cost center hierarchy by choosing Settings→Dialog settings or by using the Navigation on/off button.

Continued on next page

166 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 175: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Variations and Extracts in Mass Reports

4. Prefer displaying the name of the Cost Center in the header of the report as areminder of which cost center you are currently viewing. Maintain the relevanttexts.

a)

1. Return to the report and choose Settings→ Texts→ Headers.2. Select the following values and position the variables in the header.

Then, the text "cost center" is displayed.

Variable type: Characteristic-related text variable

Characteristic: Cost center

Text type: Description

Value type: Value/Group

3. In this way, you can display the key for the selected cost centers.

Variable type: Characteristic-related text variable

Characteristic: Cost center

Text type: Value

Value type: Value/Group

4. Save the Header.5. Save and execute the report. Respond with Yes to regenerate.

2005/Q3 © 2005 SAP AG. All rights reserved. 167

Page 176: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

168 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 177: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Variations and Extracts in Mass Reports

Exercise 14: Extracts

Exercise ObjectivesAfter completing this exercise, you will be able to:� Create extracts and handle them with extract management

Business ExampleManagement would like to reduce the time required to display the output of the reportZ5##-001 where selection parameters remain unchanged except for selection of costcenter/cost center group. You need to create extract by executing the report fora whole cost center hierarchy.

Task:

1. Create an extract from the report Z5##-001. Execute the extract using the reportgroups interface from the Report Writer.

Execute the Report from the Extract

2005/Q3 © 2005 SAP AG. All rights reserved. 169

Page 178: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

Solution 14: ExtractsTask:

1. Create an extract from the report Z5##-001. Execute the extract using the reportgroups interface from the Report Writer.

Execute the Report from the Extract

a) Choose Report Writer→ Report Group→ Execute.

Rep. Group: Z5##

Click Execute.

Enter the selection parameters.

In the Results screen, choose Report→ Save. Enter an extract name andoptional password.

Exit the Report.

Execute the Report from the Extract:

Choose Report Writer→ Report Group→ Execute.

Rep. Group: Z5##

Choose Data extracts

Click Execute to see a list of extracts

From the Extract Management screen, double-click the extract you createdin the previous step. This executes the report from the saved extract datainstead of reading from the database again.

Enter password, if necessary.

170 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 179: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Variations and Extracts in Mass Reports

Exercise 15: Background Jobs

Exercise ObjectivesAfter completing this exercise, you will be able to:� Execute reports with a background job� Recognize that the combination of variation, extracts and background jobs

provide a powerful method to produce all reports needed after month-end closing

Business ExampleIt is the end of the month and department managers are requesting reports. Thesereports will take some time to execute so you decide to create a background job toexecute your report during off-peak system hours. When you arrive at work, you willwant to view the report and have the ability to maneuver within the report. Therefore,you will need to have the background job also create an extract.

Recall that each manager will want to see the data for his/her respective department.You need to use the variations feature to print out each manager�s report. Ensurevariations is activated in the report and turned on for the background job.

For the spool output, the variation reports should be printed in an individual spoolrequest. To do this, set the Append Report flag under output control.

Task:

1. Define a background job for the report Z4##-001.

- Check whether the variation is active for cost centers (drill-down).

- Maintain Output Parameters

- Define Extract Parameters

- Define Variant

- Define Background Job

- Job Status

- Spool Request: Display Report

2005/Q3 © 2005 SAP AG. All rights reserved. 171

Page 180: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

Solution 15: Background JobsTask:

1. Define a background job for the report Z4##-001.

- Check whether the variation is active for cost centers (drill-down).

- Maintain Output Parameters

- Define Extract Parameters

- Define Variant

- Define Background Job

- Job Status

Continued on next page

172 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 181: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Using Variations and Extracts in Mass Reports

- Spool Request: Display Report

a) Choose Report Writer→ Report Group→ Execute.

Rep. Group: Z4##

Click Execute.

Define Extract Parameters

Choose Extract parameters in the Selection screen. Select Mode: CreateExtract. You can enter a description of the extract and a password. ChooseContinue or Enter.

Define Variant

Enter your selection parameters in the Selection screen. Save thisinformation in a variant by choosing Goto→ Variants→ Save as variant�Enter a variant name and a description, such as Z5##VAR. Choose Save.Then, you return to the Selection screen.

Return to the Execute Report Group initial screen.

Define Background Job

Utilities→ Background Job→ Execute

Choose Step. Select your job and choose Change to go to the Edit Step1 screen. In the Variant field, enter the name of the variant you definedearlier, such as Z4##VAR. Save. Click on the green arrow to return tothe Define Background Job screen.

Choose Start condition. Choose Immediate. Save.

Save the background job.

Job Status

To verify the status of your job, choose System→ Own Jobs. Click Execute.Choose Job Overview. Click Execute. Select your job. Click Spool.

Select the spool request and display your report.

2005/Q3 © 2005 SAP AG. All rights reserved. 173

Page 182: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 6: Variations and Extracts CA705

Lesson Summary

You should now be able to:� Use the variation function� Create extracts� Execute reports with background jobs

174 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 183: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Unit Summary

Unit SummaryYou should now be able to:� Use the variation function� Create extracts� Execute reports with background jobs

2005/Q3 © 2005 SAP AG. All rights reserved. 175

Page 184: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

176 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 185: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

Test Your Knowledge

1. When you release the background job, the system performs all additional stepswithout user intervention.Determine whether this statement is true or false.□ True□ False

2. The allows you to switch between the variousvariation reports if the variation function is active for the current report.Fill in the blanks to complete the sentence.

3. Each stored extract is identified by its and.

Fill in the blanks to complete the sentence.

2005/Q3 © 2005 SAP AG. All rights reserved. 177

Page 186: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Test Your Knowledge CA705

Answers

1. When you release the background job, the system performs all additional stepswithout user intervention.

Answer: True

When you release the background job, the system performs all additional stepswithout user intervention.

2. The navigation bar allows you to switch between the various variation reports ifthe variation function is active for the current report.

Answer: navigation bar

3. Each stored extract is identified by its report group and selection criteria.

Answer: report group, selection criteria

178 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 187: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 7Reports in a Live System

Unit OverviewThis unit focuses on reports in a live system. This unit begins by explaining how toassign report groups. Next, the unit explains how to define send-receiver relationshipsfor the report/report interface. Then, the unit explains how to send reports to otherSAP System users through mail. Finally, the unit explains how to transport a reportgroup with dependent objects.

Unit ObjectivesAfter completing this unit, you will be able to:

� Explain the concept of online settings and office integration in reports� Mail a report� Use the report/report interface� Assign users and report groups to a role� Transport report objects

Unit ContentsLesson: Assigning and Transporting Report Groups... . . . . . . . . . . . . . . . . . . . . . . . .180

Exercise 16: Report/Report Interface .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189Exercise 17: Send Reports as Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191

2005/Q3 © 2005 SAP AG. All rights reserved. 179

Page 188: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 7: Reports in a Live System CA705

Lesson: Assigning and Transporting Report Groups

Lesson OverviewThis lesson provides an overview on assigning and transporting report groups. First,the lesson explains the concept of online settings and office integration in reports.Then, the lesson explains how to send reports through mail. Next, the lesson explainshow to use the report/report interface. Then, the lesson explains how to assign usersand report groups to a role. Finally, the lesson explains how to transport report objectsbetween different systems or different clients.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� Explain the concept of online settings and office integration in reports� Mail a report� Use the report/report interface� Assign users and report groups to a role� Transport report objects

Business ExampleYou work as a financial consultant for XYZ Cement Company. The company hasdefined a set of reports that have been optimized according to the company�s needs.After closing each posting period, every cost center manager requires reports. Youhave set up a standard procedure to provide these reports. In addition, you haveprovided end users with easy access to these reports. If an unexpected variancebetween the actual and planned costs appears, the end users need to drill-down tomore detailed data to analyze the reason for the variation. The users would like tobe able to drill back to more detail to investigate any reasons for variations. Theusers would also want to call up a report from other report groups. You need to add areport interface for these reports. Once the interface has been defined, you need to runyour report group to test the interface.

180 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 189: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Assigning and Transporting Report Groups

Online Settings and Connections

Figure 77: Online Settings

Navigation bar: In the report output, the navigation between the various reportsand variation reports in the report group is simplified by the navigation bar that isdisplayed on the left-hand side of the report. This bar displays the reports in the reportgroup as well as the various variation reports. By simply clicking the relevant report,you can switch between the variation reports and the reports in the report group. Youcan activate or deactivate the navigation bar in the report output by choosing Settings→ Dialog settings.

Display icons: This flag determines whether icons are to be displayed when the reportis output on the screen. Icons are used to identify sorted columns, columns for which athreshold condition has been stored, and totals rows that can be expanded or collapsed.

2005/Q3 © 2005 SAP AG. All rights reserved. 181

Page 190: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 7: Reports in a Live System CA705

Figure 78: Office Integration

Office integration: Supports the interactive output of a report to an Office document.The Office application runs as a control in the SAP System window. This meansthat the SAP System functions can also be applied to the worksheet in the Officeapplication.

Interactive display switchover: Using the dialog settings, you can output thereport in the standard list format or to an Office document. The selected setting ispermanently stored in the user parameters. The dialog settings can also be modified inthe initial screen of the report group, under the output parameters.

Worksheet protection: If the report is output to an Office document, the worksheetscreated as a result are protected. This ensures that the data on the front end isconsistent with the data in SAP System. Consistency is necessary for context-sensitivefunctions, such as calling up reports and changing column attributes. You candeactivate worksheet protection permanently under the dialog settings or temporarilyin the relevant Office application. This enables you to modify the worksheet locally.If you insert columns or rows in the worksheet, the context-sensitive functions maynot refer to the correct cells. Changes made locally are overwritten again the next timea dialog step is carried out in SAP System.

182 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 191: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Assigning and Transporting Report Groups

Figure 79: Mail Connection

You can use e-mail to send reports within an SAP System. As of release 4.6, you canappend the current report to the e-mail in the HTML format. If you have activatedMicrosoft Office integration, the report is additionally sent as a Microsoft Excel file.

After you send the report, it appears in the recipient�s inbox. The recipient can list thename of the report group, the selection time, and additional information by selecting�Display�. The report results are displayed using �Process�.

2005/Q3 © 2005 SAP AG. All rights reserved. 183

Page 192: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 7: Reports in a Live System CA705

Using the Report/Report Interface

Figure 80: Report/Report Interface

When displaying your report online, you can use data from a report in the report/reportinterface. Other reports are called up based on the corresponding selection criteria.

You can specify the receiver reports in the header of every report group or in thelibrary.

You can use other Report Writer reports, transactions, report portfolio reports,drill-down reports, or ABAP programs as receiver reports.

Figure 81: Report/Report Interface (2)

184 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 193: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Assigning and Transporting Report Groups

Using the report/report interface, you can call up various reports while displayingyour report data.

The selection criteria used to call up the receiver report depends on the section markedin the sender report.

Procedure for using the report/report interface:

� Select the data to be analyzed in the sender report.� The receiver reports are displayed for selection.� The report/report interface also allows you to call up reports from other

applications.

Assigning User and Report Groups to a Role

Figure 82: Create/Change Role

Standard reports and user-defined can be installed in the reporting tree. End users cancall up reports directly from the reporting trees.

You can call up Report Writer reports, drill-down reports, transactions, ABAP, reportsand report portfolio reports from the reporting tree.

SAP delivers a preconfigured reporting tree for each application.

If your user is assigned to one or more roles, you will receive your personal workcenter menu in the form of a tree control when you log onto the system. You cancompile your own favorites in your work center menu by using drag & drop.

SAP provides a series of standard roles.

2005/Q3 © 2005 SAP AG. All rights reserved. 185

Page 194: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 7: Reports in a Live System CA705

A user-dependency relationship is set up by assigning area menus to roles in theprofile generator. In this case, authorizations are combined automatically.

Figure 83: Assigning Report Groups to a Role

In the role group maintenance function (transaction PFCG), Business-process usercan define the menu structure for a role and combine certain transactions, drill-downreports, ABAP reports, report portfolios, Internet/Intranet links, and Report Writerreport groups to form a user menu. You can enter reports with/without variants andskip the selection screen. The structure and terminology of the functions contained inthe menu are freely definable.

The transactions for the user menus can be entered directly, such as from the SAPmenu. In addition to the user menu, the overall view (SAP menu) contains all ofthe functions provided by SAP. You should use this overall view only if user menushave not been defined yet or when the Business-process user wants to create newuser menus.

186 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 195: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Assigning and Transporting Report Groups

Figure 84: Assigning Users to a Role

A role can be assigned to any number of users. The role also contains authorizationsthat the users need to access the transactions and reports in the menu.

Authorizations can be created automatically for a role. Most of the field contents ofthese authorizations are defaulted by SAP. You can modify these default values or addblank fields. Then, you can create an authorization profile automatically from thesefields using the Profile Generator and assign it to certain users.

The user menu only contains the entries, such as transactions, reports, and Webaddresses that are required for the user�s day-to-day work.

If your system administrator has defined a user menu for you, it will be displayedautomatically when you log onto the system.

2005/Q3 © 2005 SAP AG. All rights reserved. 187

Page 196: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 7: Reports in a Live System CA705

Transporting Report Objects

Figure 85: Transport Connection

Report Writer objects are client dependent objects.

You can transport Report Writer objects between various SAP systems or betweendifferent clients.

Report groups, reports, and models can be transported to these dependent objectsfrom the Report Painter menu.

You can transport Report Writer objects between different clients in the same SAPSystem in one step. Otherwise, you can use the alternatives: create an export file orcreate a transport request for transport to a different system.

188 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 197: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Assigning and Transporting Report Groups

Exercise 16: Report/Report Interface

Exercise ObjectivesAfter completing this exercise, you will be able to:� Define sender-receiver relationships for the report/report interface� Identify the technical background of the report/report interface

Business ExampleYou have provided end users with an access to the reports you created. In case of anunexpected variance between the actual and planned costs, the end users need to drilldown to more detail data to analyze the reason for the variation. The users want tocall up report from other report group as well. You need to develop the report/reportinterface and run your report group to test the interface.

Task:

1. The users would like to drill back to more detail to investigate any reasons forvariations. Add a report/report interface for those reports in report group Z3##.

The users want to call up the report in the report groups 1SMA and go totransaction KSB1.

After the interface is defined, run your report group to test the interface.

2005/Q3 © 2005 SAP AG. All rights reserved. 189

Page 198: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 7: Reports in a Live System CA705

Solution 16: Report/Report InterfaceTask:

1. The users would like to drill back to more detail to investigate any reasons forvariations. Add a report/report interface for those reports in report group Z3##.

The users want to call up the report in the report groups 1SMA and go totransaction KSB1.

After the interface is defined, run your report group to test the interface.

a) Choose Report Writer→ Report Group→ Change.

Rep. Group: Z3##

Choose Enter or Header to access the Header screen. In the Report/ReportInterface section, choose Configure for the report group.

Click Insert Line to add an entry to the R/R Interface. You will initially beprompted to enter a report group. Enter 1SMA. Click Confirm.

Click Insert Line to add a second entry to the R/R Interface. Again, youwill be promoted to enter a report group. Enter 1SHK and choose Confirm.

Click Insert Line to add a second entry to the R/R Interface. Again, youwill be promoted to enter a report group. Click Other Report Type andchoose the transactions as the report type (double-click the transactions toselect them). Enter KSB1. Click Confirm.

Click Save to save the R/R Interface definitions.

Save the report group.

Execute the Report Group. Double-click a detail cell to drill down to oneof the receiver reports you just added.

190 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 199: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Assigning and Transporting Report Groups

Exercise 17: Send Reports as Mail

Exercise ObjectivesAfter completing this exercise, you will be able to:� Send a report to other SAP System users.

Business ExampleAs a special request from management, you need to demonstrate the end users of thereport how to mail their report to another mySAP ERP user and to the end usersthemselves.

Task:

1. Send (mail) a report of your choice to a neighboring group in the class and toyourself as well.

2005/Q3 © 2005 SAP AG. All rights reserved. 191

Page 200: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 7: Reports in a Live System CA705

Solution 17: Send Reports as MailTask:

1. Send (mail) a report of your choice to a neighboring group in the class and toyourself as well.

a) Execute your report to display the Results screen. Click Send or chooseReport→ Send.

If an extract for the report does not exist, you will be prompted to savethe data. For this, first choose Yes. Enter the extract data, if necessary.Click Confirm.

Enter the name of the recipient(s). Enter your logon id CA-## and yourneighbor�s as the two recipients of the report. Add any additional notes,and password information. Click Send.

To confirm receipt of the mail, return to the main SAP System menu.Choose Office→ Workplace. Choose Inbox→ Unviewed documents.Double-click the e-mail to access the note. Choose Document→ Executeto execute the extract. You may need to enter a password.

192 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 201: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Assigning and Transporting Report Groups

Lesson Summary

You should now be able to:� Explain the concept of online settings and office integration in reports� Mail a report� Use the report/report interface� Assign users and report groups to a role� Transport report objects

2005/Q3 © 2005 SAP AG. All rights reserved. 193

Page 202: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

Unit SummaryYou should now be able to:� Explain the concept of online settings and office integration in reports� Mail a report� Use the report/report interface� Assign users and report groups to a role� Transport report objects

194 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 203: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

Test Your Knowledge

1. With the help of office integration, SAP System functions can be applied to aworksheet in the Microsoft Office application.Determine whether this statement is true or false.□ True□ False

2. After the report is sent through a mail, the report results are displayed using.

Fill in the blanks to complete the sentence.

3. What is the procedure for using the report/report interface?

4. When assigning a role to a user, you can create an authorization profile automat-ically from authorization fields using theand assign it to certain users.Fill in the blanks to complete the sentence.

5. What alternatives can you use if it is not possible to transport Report Writerbetween different clients in the same SAP system?

2005/Q3 © 2005 SAP AG. All rights reserved. 195

Page 204: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Test Your Knowledge CA705

Answers

1. With the help of office integration, SAP System functions can be applied to aworksheet in the Microsoft Office application.

Answer: True

With the help of office integration, SAP System functions can be applied to aworksheet in the Microsoft Office application.

2. After the report is sent through a mail, the report results are displayed usingProcess.

Answer: Process

3. What is the procedure for using the report/report interface?

Answer: Procedure for using the report/report interface:1. Select the data to be analyzed in the sender report.2. The receiver reports are displayed for selection.3. The report/report interface also allows you to call up reports from otherapplications.

4. When assigning a role to a user, you can create an authorization profileautomatically from authorization fields using the Profile Generator and assign itto certain users.

Answer: Profile Generator

5. What alternatives can you use if it is not possible to transport Report Writerbetween different clients in the same SAP system?

Answer: If it is not possible to transport Report Writer between different clientsin the same SAP system, you can use the following alternatives:

� Create an export file� Create a transport request for transport to a different system

196 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 205: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 8Working with Sets

Unit OverviewThis unit provides an overview of sets. In this unit, you will learn how to createbasic and single-dimension sets for all characteristics of a reporting table and usethese sets in reports.

Unit ObjectivesAfter completing this unit, you will be able to:

� Create and use basic sets in reports� Create and use single-dimension sets in reports

Unit ContentsLesson: Introduction to Sets.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199

Exercise 18: Single-Dimension Sets... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203

2005/Q3 © 2005 SAP AG. All rights reserved. 197

Page 206: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 8: Working with Sets CA705

Figure 86: Overview Diagram � Sets

198 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 207: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Introduction to Sets

Lesson: Introduction to Sets

Lesson OverviewThis lesson focuses on sets. The lesson explains how to create and use basic sets andsingle-dimension sets in reports.

Lesson ObjectivesAfter completing this lesson, you will be able to:

� Create and use basic sets in reports� Create and use single-dimension sets in reports

Business ExampleYou work as a financial consultant for XYZ Cement Company. The management ofthe company has wants cost element reports on a yearly basis with subtotals at specificbreakpoints. You need to use sets to fulfill this requirement.

Basic Sets

Figure 87: Basic Set

A basic set contains values, such as single values or value ranges that use the samecharacteristic.

In the example shown in the graphic above, the periods 1, 2, and 3 are collectedtogether in a basic set �Quarter1� and the years 1995, 1996, 1997, and 1998 in abasic set �Years�.

2005/Q3 © 2005 SAP AG. All rights reserved. 199

Page 208: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 8: Working with Sets CA705

Figure 88: Basic Set

You enter a Set ID, the table name for the set, the set type and for basic andsingle-dimension sets the field name ( e.g. PERBL for Period).

If you want to use an existing set as a reference for your new set, enter the ID of this set.

Figure 89: Basic Set: Basic Entries

After entering a description for the set in the header, you can enter values as singlevalues or intervals of values, such as �From�.... �To� values.

Optionally, give a description for each set line.

200 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 209: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Introduction to Sets

Single-Dimension Sets

Figure 90: Example of Single-Dimension Sets

The example in the graphic above shows a Single-Dimension Set �GXX-YEAR�,which includes the two Single-Dimension Sets �GXX-HALF1� and �GXX-HALF2�.The sets �GXX-HALF1� and �GXX-HALF2� incorporate the corresponding Basic Setsfor the quarter years, such as �GXX-Q1�, �GXX-Q2�, �GXX-Q3�, �GXX-Q4�.

All these Sets grouped together are Sets defined commonly for PERBL.

Figure 91: Single-Dimension Sets: Basic Entries

In single-dimension sets, you enter a basic or single-dimension set in the set lines.

You display a set by double-clicking.

2005/Q3 © 2005 SAP AG. All rights reserved. 201

Page 210: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 8: Working with Sets CA705

Figure 92: Single-Dimension Sets: Resulting Output

If you use a single-dimension set in the row of your report definition, the resultingoutput of the report shows sub totals for each set you use in this hierarchy.

202 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 211: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Introduction to Sets

Exercise 18: Single-Dimension Sets

Exercise ObjectivesAfter completing this exercise, you will be able to:� Recognize the use of basic and single-dimension sets� Create basic sets and single-dimension sets for all characteristics of a reporting

table and use these sets in reports

Business ExampleYou require cost element reports on yearly basis with subtotals at specific breakpoints.Using sets is more efficient than defining formulas.

Task 1:

1. Provided is a sample hierarchy diagram based on the characteristic period. Buildthe basic and single-dimension sets for this diagram.

Figure 93:

Use the names of the nodes for the set names.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 203

Page 212: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 8: Working with Sets CA705

Task 2:

1. Build a report which provides the following information. The report contains aperiod drill-down for actual and plan costs. The general data selections shouldrestrict this data to the cost elements in the set OAS_PRIM for the cost centers inH1010 in the controlling area 1000 for the current fiscal year.

Figure 94:

Name the report Z7##-001 and assign it to the report group Z7##. Use yourlibrary Z## for this purpose.

- Define Rows

- Define Columns

- Define General Data Selections

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

204 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 213: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Introduction to Sets

Solution 18: Single-Dimension SetsTask 1:

1. Provided is a sample hierarchy diagram based on the characteristic period. Buildthe basic and single-dimension sets for this diagram.

Figure 95:

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 205

Page 214: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 8: Working with Sets CA705

Use the names of the nodes for the set names.

a) The solutions below are intended to help you build a basic set for the 1stquarter. You can use the same method to build the remaining basic andsingle-dimension sets.

Choose Report Writer→ Set→ Create.

Set ID: Z##-Q1

Table: CCSS

Set type: Basic Set

Click Hierarchy maintenance. Enter PERBL as the field name in the dialogbox displayed.

Enter a description for the set and continue to define the contents of the setby choosing Value/interval. You can also choose Set lines.

Enter the set values on a separate line under the From Value column.

Save the set.

The solutions below are intended to help you build a single set for the firstsix months. Similarly, build the remaining single sets.

Choose Report Writer→ Set→ Create.

Set ID: Z##-H1

Table: CCSS

Set type: single set

Click Hierarchy maintenance. Enter PERBL as the field name in the dialogbox displayed.

Enter a description for the set and continue to add the lower-level sets.Click Lower level and add the relevant basic set for Quarter 1. You canadd the basic set for Quarter 2 by positioning the cursor on Z##-B1 andclicking Same level.

Save the set.

Continued on next page

206 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 215: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Introduction to Sets

Task 2:

1. Build a report which provides the following information. The report contains aperiod drill-down for actual and plan costs. The general data selections shouldrestrict this data to the cost elements in the set OAS_PRIM for the cost centers inH1010 in the controlling area 1000 for the current fiscal year.

Figure 96:

Name the report Z7##-001 and assign it to the report group Z7##. Use yourlibrary Z## for this purpose.

- Define Rows

- Define Columns

- Define General Data Selections

- Check and Save the Report

- Assign the Report to a Report Group

- Execute the Report

a) Instructions for defining the report Z7##-001.

Continued on next page

2005/Q3 © 2005 SAP AG. All rights reserved. 207

Page 216: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 8: Working with Sets CA705

From the main SAP System menu, choose

1. Information Systems→ Ad-hoc Reports→ Report Painter2. Report→ Create

Library: Z##

Report: Z7##-001

Description: Set usage

Click Create to access the report definition interface.

Define Rows

Double-click row 1.

1. Select Period in the Available Characteristics dialog box. Click Moveselected to left.

2. In the Characteristic Values screen, enter the value Z##-YEAR in theGroup field. In the Enter Texts screen, enter row texts. Copy this textto the medium and long text fields. Click Confirm or Enter.

3. While your cursor is positioned on Row 1, choose Edit→ Rows→Explode to explode the hierarchy.

Define Columns

Choose Edit→ Columns→ Get Column Model.

Select Z##-APV.

Define General Data Selections

1. Choose Edit→ Gen. data selection.2. In the Available Characteristics screen, choose characteristics to be

included in the general parameters of the report (see table below).Click Move selected to left.

3. In the Selected Characteristics pane, enter the parameter values forthe report. Click Confirm or Enter.

Use the characteristics and associated values in the following table.

Controlling area 1000Fiscal year Current fiscal yearCost Center Group H1010Cost element group OAS_PRIM

Continued on next page

208 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 217: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Lesson: Introduction to Sets

Now, you have defined the general data selections.

Check and Save the Report

1. Check the report for any errors or missing characteristics by choosingReport→ Check or use Check or F6.

2. Save the Report by choosing Report→ Save or use Save or CTRL + S.

Assign the Report to a Report Group

1. Use the following menu path in the Report Definition interface toassign the report to a report group: Environment→ Assign reportgroup.

2. Enter the value Z7##.

This creates the report group that is assigned to the library Z##.

Execute the Report

1. Choose Report→ Execute.

2005/Q3 © 2005 SAP AG. All rights reserved. 209

Page 218: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit 8: Working with Sets CA705

Lesson Summary

You should now be able to:� Create and use basic sets in reports� Create and use single-dimension sets in reports

210 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 219: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Unit Summary

Unit SummaryYou should now be able to:� Create and use basic sets in reports� Create and use single-dimension sets in reports

2005/Q3 © 2005 SAP AG. All rights reserved. 211

Page 220: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Unit Summary CA705

212 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 221: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Test Your Knowledge

Test Your Knowledge

1. You can use an existing set as a reference for your new set by entering the ID ofthe set.Determine whether this statement is true or false.□ True□ False

2. If you use a single-dimension set in the row of your report definition, the outputof the report shows for each set.Fill in the blanks to complete the sentence.

2005/Q3 © 2005 SAP AG. All rights reserved. 213

Page 222: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Test Your Knowledge CA705

Answers

1. You can use an existing set as a reference for your new set by entering the ID ofthe set.

Answer: True

You can use an existing set as a reference for your new set by entering the ID ofthe set.

2. If you use a single-dimension set in the row of your report definition, the outputof the report shows sub totals for each set.

Answer: sub totals

214 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 223: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Course Summary

Course SummaryYou should now be able to:

� Explain the relationship between a reporting table, library, report, and reportgroup

� Create a library� Define a report with variables and permanent selection criteria� Create row and column templates to help you define reports� Structure a report using sections and horizontal pages� Perform calculations within a report using cells and formulas� Use the layout and formatting functions for a Report Painter report� Use integrated report groups in a live system� Assign report groups to an activity group� Define a report/report interface to branch to a different report or a transaction� Transport reporting objects� Send reports using mail� Use basic sets and single-dimension sets in a report definition

2005/Q3 © 2005 SAP AG. All rights reserved. 215

Page 224: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Course Summary CA705

216 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 225: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 1Course Appendix

Figure 97: mySAP ERP Messages from

SAP System has set new norms for standard software that can be universallyimplemented. SAP System uses advanced development techniques to achievecomprehensive integration of business administration and data processing.

SAP System combines state-of-the-art technology with comprehensive businessadministration functions to provide a fully-integrated business solution for yourcompany.

2005/Q3 © 2005 SAP AG. All rights reserved. 217

Page 226: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 1: Course Appendix CA705

Figure 98: CA705 � Course Overview Diagram

Figure 99: New Terminology (as of 4.6)

218 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 227: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Appendix 1: Course Appendix

Figure 100: Reporting Tables and Standard Libraries

Figure 101: Value Variables

You can use a value variable instead of a single characteristic value in a reportdefinition.

If you activate the �Use parameter ID� indicator, the system uses a set/get parameterto �record� the last value entered.

2005/Q3 © 2005 SAP AG. All rights reserved. 219

Page 228: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 1: Course Appendix CA705

If you do not activate the �Use parameter ID� indicator, the variable default value isdisplayed on the selection screen of the appropriate report. You can overwrite thisdefault value.

You can use variables in rows, columns, and in the general data selection criteria.

Figure 102: Formula Variables

You can use formula variables like value variables.

The default value of the formula variable is dynamically determined by the exitsdelivered by SAP or by a formula stored in the variable definition.

When you use formula variables that are not flagged as internal variables, acorresponding input field appears on the report selection screen.

Formula variables calculated from other variables are automatically flagged as internalvariables. This means that an input field does not appear on the report selectionscreen. (Example: The standard variable (delivered by SAP), 1GJAHVJ for theprevious year is determined by the standard variable, 1GJAHLJ for the current year:1GJAHVJ = 1GJAHLJ - 1.)

220 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 229: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Appendix 1: Course Appendix

Figure 103: Variables for Groups (Set Variables)

If you use variables for groups (set variables) in a report definition, you can enter agroup, an interval, or several single values to restrict the data displayed in the reportwhen you execute the report.

You can also enter a parameter ID for set variables. The system uses the parameter IDto "record" the last value entered.

� Variables used in the report definition can be embedded in report texts asselection parameters or as characteristic variables.

� Selection parameters

� Display the values entered for a variable on the selection screen� Remain unchanged for the whole report group

� Characteristic variables

� Display the value that is valid for the characteristic in the current areaof the report (title page: Complete report, headers: Current page, Textfor export: Section)

� Used in reports with variation to show the current value of the variationnode

2005/Q3 © 2005 SAP AG. All rights reserved. 221

Page 230: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 1: Course Appendix CA705

222 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 231: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 2Authorization Maintenance

Set maintenance: Authorization object G_800S_GSE

� Activity from the table TACT

� 01 Create a set, 02 Change a set, 03 Display a set, and 06 Delete a set� Authorization group from the table TBRG for the authorization object

G_800S_GSE

� The table TBRG is maintained by the customer� If you temporarily do not want to assign authorization groups to sets, it is

recommended to create all authorizations either with authorization group �* orwith any (fictitious) authorization group. The users that have an authorizationfor the authorization group G_800S_GSE have all authorizations for all setswithout an authorization group. Users without any create, change, display, ordelete authorization do not have access to the sets without an authorization groupbecause they cannot call up the transactions for creating, changing, displaying,or deleting sets.

Sets: Variable: Authorization object G_802G_GSV

� Action from the table TACT

� 01 Create a variable, 02 Change a variable, 03 Display a variable, and06 Delete a variable

� Authorization group from the table TBRG for the authorization objectG_802G_GSV

Report Writer: Report: Authorization object G_800_GRP

2005/Q3 © 2005 SAP AG. All rights reserved. 223

Page 232: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 2: Authorization Maintenance CA705

This authorization refers to reports. Possible actions include creating, changing,displaying, and deleting a report (transactions GR31, GR32, GR33, GR34) as well asusing a report in report groups (GR51, GR52).

� Action from the table TACT

� 01 Create a Report Writer, 02 Change a Report Writer, 03 Display a ReportWriter, Use in Report Groups and, 06 Delete a Report Writer

� Authorization group from the table TBRG for the authorization objectG_800_GRP

Report Writer: Library: Authorization Object G_801K_GLB

This authorization object refers to libraries. Possible actions include creating,changing, displaying, and deleting a library (transactions GR21, GR22, GR23, GR24),as well as creating reports for a library (GR31).

� Activity from the table TACT

� 01 Create, 02 Change, 03 Display, Create reports for the library and, 06Delete

� Authorization group from the table TBRG for the authorization objectG_801K_GLB

Report Writer: Standard Layout: Authorization Object G_801U_GSY

This authorization object refers to standard layouts. Possible actions include creating,changing, displaying, and deleting standard layouts (transactions GR11, GR12, GR13,GR14) as well as referencing standard layouts in reports (GR31, GR32).

� Action from the table TACT

� 01 Create, 02 Change, 03 Display, referencing in reports and, 06 Delete

� Authorization group from the table TBRG for the authorization objectG_801U_GSY

Report Writer: Report Group: Authorization Object G_803J_GJB

224 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 233: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Appendix 2: Authorization Maintenance

This authorization object refers to report groups. Possible actions include creating,changing, displaying, and deleting a report group (transactions GR51, GR52, GR53,GR54) as well as starting the selection, output, and variation (GR55). Additionallyyou can protect the saving of extracts (GR55) with this authorization object as wellas the deletion of your own or other extracts (GRE0).

� Action from the table TACT

� 01 (Create), 02 (Change), 03 (Display; start the selection, output andvariation), 06 (Delete), E0 (Saving extracts), E6 (Deleting own extracts),E7 (Deleting other extracts), and EP (Prioritizing) Delete

� Authorization group from the table TBRG for the authorization objectG_803J_GJB

Report Writer: Scheduling as background job S_PROGRAMM

Reporting on data:

Previously: Authorization object K_REPO_CCA (CO: Reporting on cost centers/costelements)

Fields: Action (27 Display totals record; 28 Display individual items; 29 Displaystored data) Controlling area, Cost center, Cost element

Previously: Authorization object K_REPO_OPA (CO: Reporting on orders)

Fields: Action (27 Display totals record; 28 Display individual items; 29 Displaystored data) Controlling area, Order type, Cost element

K_CCA (new as of Release 4.0A)

Use this authorization object to issue authorizations within Cost Center Accountingfor the maintenance of cost center master data, manual cost center planning, andthe information system.

You can issue authorizations for a Management Accounting (CO-OM) area ofresponsibility.

Defined Fields

The authorization object contains the following fields:

� Authorization check actions for CO-OM� Cost element� CO-OM area of responsibility for authorizations

2005/Q3 © 2005 SAP AG. All rights reserved. 225

Page 234: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 2: Authorization Maintenance CA705

Relevant actions for reporting:

� 3027: Select total records� 3028: Select line items� 3029: Display extracts

If the CO-OM area of responsibility is a node in the standard hierarchy of Cost CenterAccounting, authorization is valid for all nodes and their cost centers.

K_ORDER (new as of Release 4.0A)

You can use this authorization object to issue access for the following actions whileworking with internal orders:

� Maintenance of order master data� Manual order planning� Budgeting of orders� Actions in the information system

You can use authorizations for an area of responsibility in Management Accounting(CO-OM area of responsibility). If there is a cost center responsible for the order, theCO-OM area of responsibility can include the order, the responsible cost center, or anode in the standard hierarchy of Cost Center Accounting. If there is no responsiblecost center, the CO-OM area of responsibility applies only to the order.

The authorization object contains the following fields:

� Actions for the CO-OM authorization check� Order type� Authorization for internal orders: authorization phase� Cost element� CO-OM area of responsibility for authorizations

Relevant actions for reporting:

� 3027: Select totals records� 3028: Select individual items� 3029: Display extracts

You can enter individual orders, cost centers, and nodes to the standard hierarchy forCost Center Accounting.

If your authorization in this field contains an order, you have the authorization forthat order only.

226 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 235: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Appendix 2: Authorization Maintenance

If your authorization contains a cost center, you have authorization for all ordersthat belong to the responsible cost center.

If your authorization contains a node in the standard hierarchy, you have authorizationfor all orders in this area. All these orders belong to a cost center, which belongs tothis node in the standard hierarchy or to a subordinate node.

Note: Authorization objects K_REPO_CCA and K_REPO_OPA are not tobe used with K_CCA and K_ORDER. It is recommended that authorizationobject K_CCA be used and the users for authorization objects K_REPO_CCAand K_REPO_OPA should receive all authorizations (*).

2005/Q3 © 2005 SAP AG. All rights reserved. 227

Page 236: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 2: Authorization Maintenance CA705

228 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 237: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 3Data in Exercises

Type of Data Data in the Training SystemCost element groups OAS_PERS,OAS_WAGES, OAS_SALAR,

OAS_P_IMP, OAS_PRIMCost center groups H1, H1010Controlling area 1000Statistical key figures 9100 employees, 9101 square meters, 9201 Telephone

UnitsLibrary 1VKVariables 1PERIV (value variable for from period)

1PERIB (value variable for to period)

1KOKRE (value variable for controlling area)

1KOSET (set variable for cost center group)

Reports: names reservedfor exercises

Z1##-001 to Z7##-001

Report groups: namesreserved for exercises

Z1## to Z7##

Models: names reservedfor exercise

Z##-APV column model

Z##-ELEMENT row model

2005/Q3 © 2005 SAP AG. All rights reserved. 229

Page 238: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 3: Data in Exercises CA705

230 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 239: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 4Glossary

Section: An independent block in a report definition.

A section consists of one or more physical rows and columns, which forms a logicalunit in a Report Painter report.

Each section may contain one or more Horizontal Pages that have a common rowstructure.

Sections contain characteristics and key figures. However, sections with calculatedkey figures that use the selected cells in the report in formulas are required todetermine new key figures.

General Data Selection: In addition to the explicit data in the rows and columns, youcan also define criteria that are valid throughout the entire report, such as characteristicvalues or characteristic groups, to further restrict the data processed in the report.These restrictions are specified in the general data selections.

Basic key figures: A basic key figure is a value field, such as posted amounts orquantities.

Basic key figures are used to determine which value fields are displayed in a report,such as transaction currency, group currency, and quantities. You can combine a basickey figure with one or more other characteristics to create a key figure (predefinedcolumn). These characteristics, such as the value type actual and plan are used asadditions to the basic key figure. In Report Painter reports, you can enter the keyfigures (predefined columns) directly in the report columns. In Report Writer reports,you use key figures (predefined columns) in data sets.

Reporting Tree (area menu): Hierarchical structure that can contain standard SAPreports and user-defined reports.

Report groups: Group of reports that use the same library.

2005/Q3 © 2005 SAP AG. All rights reserved. 231

Page 240: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 4: Glossary CA705

After you create a report, you must assign it to a report group. A report group canhave one or more reports. If the reports access the same characteristics and data, theprocessing time is shorter because the report data for all of the reports in the reportgroup only has to be selected once.

To create and run a report group:

1. Create the report group. Determine which reports are to be contained in the reportgroup. Reports in a report group must be assigned to the same library. You can changethe texts displayed on the selection screens when you run the report group.

2. Generate the report group: The report group is successfully generated if no errormessages are displayed.

3. Select data for the report group. The system selects the data that is to be usedby the individual reports in the group.

4. Display and print the reports in a report group: The system edits and formats thedata selected for the report group and outputs the reports on the specified medium,such as on the screen or printer, or to an external file.

After you output a report that has been modified, regenerate the report groupcontaining the selected report and allow the system to select and output the data. Youdo not have to redefine the report group.

Report/Report Interface: Interface that allows a receiver report to be called from asender report.

Select the data to be sent in the sender report. The values of the associatedcharacteristics are forwarded via this interface to the receiver report where they areincluded in the data selection.

Library: Every report is assigned to a library. A library is a collection ofcharacteristics, basic key figures, and key figures (predefined columns) that wereselected from the entries in a Report Writer table.

Extract: File containing the required report data.

If you save reports in an extract, you can call these reports up at any time withouthaving to select data from the database again.

Format Groups: Format groups are used to inform the Report Painter of the formatto be used for a column. The report column(s) is/are formatted using the layoutparameters for the specified format group.

Examples of layout parameters for which format groups can be defined:

Column width, units width, and decimal places

Background processing: Processing that is not carried out on the screen.

232 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 241: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Appendix 4: Glossary

With this method, data is processed in the background while other functions can becarried out simultaneously on the screen.

Although background processes are not visible to the user, that is, they do not interactwith the system, they have the same priority as online processes.

A key figure, also known as "predefined column" in previous releases, comprises abasic key figure and one or more characteristics. You can use key figures to definestandard columns, which you can then reuse in your reports. Examples of key figuresinclude "actual costs in the current fiscal year" and "planned costs in the closed fiscalyear".

Characteristic: A characteristic, also called �field� or �dimension� in previousreleases, is a non-numeric field. Examples of characteristics include "accounts", "costcenters", and "business areas".

Parameter ID: If this field is selected, the parameter ID of the characteristic is usedas a set/get parameter for the variable. The current value of the parameter is displayedon selection screens as the default value for the variable. If this field is not selected,the default value of the variable is used. You can use a parameter ID to fill a field withdefault values from the SAP memory.

Example:

A user only has authorization for company code 001. This company code can be storedin the memory under the corresponding parameter ID at the start of a transaction. Inall subsequent screens, fields that refer to the "company code" data element can befilled automatically with the value 001.

Drill-down reporting: With the drill-down reporting function, you can report ondata from different applications. You can create both basic data-controlled lists(ad-hoc reports) and complex, formatted lists (form reports). You can use hierarchies,variables, formulas, cells, and key figures to compile reports.

Drill-down reporting contains functions for navigating in the database and forprocessing lists interactively, sorting, ranked lists, ABC analyses, and exceptions.

Drill-down reporting also has an interface to SAP Graphics, SAPmail, and the ExcelListviewer.

Report Painter: The purpose of the Report Painter is similar to that of the ReportWriter. However, it is easier to use. Many of the functions of the Report Writer havebeen integrated in the Report Painter. You do not need to be familiar with the ReportWriter concepts, such as sets, to work with the Report Painter.

The Report Painter uses a graphical report structure that forms the basis of your reportdefinition and displays the rows and columns of the report as they will appear whenthe report is compiled.

2005/Q3 © 2005 SAP AG. All rights reserved. 233

Page 242: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 4: Glossary CA705

Report Writer: In addition to the Report Painter, you can also use the Report Writerto define reports. The Report Writer has an extensive range of functions and requiresexperience to use it.

The Report Writer uses sets to structure and select the report data. The structure andcontent of your report depend on the sets used as row sets, column sets, and selectionsets. You can use basic sets, data sets, single-dimension sets, and multidimensionsets to define your report.

Reporting table (Report Writer table): Name of a database table used by the ReportWriter to compile reports.

Technical information: Before the Report Writer can report on a certain databasetable, the table must be entered in the control table T804A. The database table doesnot have to exist as a physical table; it can be defined within the Report Writer as alogical table (table T804E) and can comprise several physical tables.

Sets: Sets are used to group data and define data hierarchies.

Set types:

Basic sets: Basic sets contain certain values, such as account numbers and cost centernumbers.

Data sets: Data sets contain certain key figures. You can create your own key figuresby combining a basic key figure with one or more other dimension(s).

Single-dimension sets: In a single-dimension set, you can build a hierarchy of basicsets and/or other single-dimension sets (with the same dimension, within a dimension).

Multidimension sets: Multidimension sets are used to combine sets that contain valuesfrom different dimensions.

Horizontal Page: A Horizontal Page combines several physical columns in a reportthat form a logical unit.

Standard layout: You assign each report you define a standard layout. This standardlayout determines the format in which your report will be output, such as the pageformat of the report and the number format of the report data. Each report is initiallyassigned the SAP standard layout shipped with each SAP System. When you define areport, you can use the following options:

� You can use the standard SAP layout for your report.� You can link your report to a different standard layout.� You can change the parameters in the standard layout for your specific report.

Statistical key figures: Numbers that identify cost centers, orders, businessprocesses, and profit centers. Statistical key figures can be created using maintenancetransactions and posted to cost centers or planned and actual orders.

234 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 243: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Appendix 4: Glossary

Statistical key figures are used in cost accounting for assessments and to distributecosts. They form the basis for calculating the debit for the receiver object.

Statistical key figures can be used to distribute, assess, or calculate further key figures.

A statistical key figure could be the number of employees in each cost center. Afteryou have created a statistical key figure called EMPLOY, the planned and actualnumber of employees can be recorded for each cost center. These figures can be usedto apportion the cafeteria costs among all the other costs centers, for example.

Variables are wildcards for data that can be changed when a report is run. A variablecould be a company, the current year, or the current month.

There are three types of variables:

� Value variable: A value variable always has a default value for a characteristic.� Formula variable: With formula variables for numeric fields, the default value

of the variable is determined by calculating the specified formulas. Theseformulas can contain constants (1993), value variables (&WVAR), formulavariables (&FVAR), as well as SAP and user-defined exits (#S001, #U001). Thename of the FORM pool for user-defined exists is stored in the table T80I. Theprogram RGSVU000 is set by default. This program contains a model exitthat can be used as a template for user exits. Users can also create their ownFORM pool and enter it in the T80I table. User-defined exits can be entered inthis FORM pool.

Standard exists are provided in the RGSVS000 program.

� Set variable: A set variable can contain a default set. Basic sets andsingle-dimension sets can be used as default sets. The table field of a defaultset must match the table field of the set variable, that is, the representative dataelements of the fields must be identical.

Some applications allow you to replace the default set with a different set directlybefore the variable is used. Otherwise, the default set is used.

If the set variable does not have a default set, a set that contains all of the valuesfor the table field of the set variable is used as a default set.

Variation: If you have entered several characteristic values or a group for acharacteristic in the general data selections, you can create several lists by activatingthe �Variation: Explode� flag.

1. Several characteristic values: You receive a list containing the total of all thecharacteristic values and a separate list for each characteristic value.

2005/Q3 © 2005 SAP AG. All rights reserved. 235

Page 244: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 4: Glossary CA705

2. Group: You receive a list containing the total of all the characteristic values inthe group, a separate list for each characteristic value, and a list for each hierarchynode in the group.

If you do not activate the variation function, only one list containing the total of all thecharacteristic values is output.

Model: A one-dimensional, predefined report structure in which rows and columnscan be inserted from a Report Painter report.

Cell: Cells are the points of intersection between rows and columns.

Cells point to a certain position or a certain range of the row/column matrix in areport. When you select cells, they are available in the Formula Editor throughout theentire report, that is, in all sections and Horizontal Pages.

If you select cells in exploded rows in a group, the selection always refers to thehighest summation level in the group. If you need a subgroup to process the cells,you have to define an additional report row for the subgroup, select the requiredcell, and hide the row.

236 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 245: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 5Menu Paths

The following section lists all of the menu paths used in the course in the order inwhich they appear.

General navigation:

Application Menu Paths:

SAP Menu:

Information Systems→ Ad hoc reports→ Report Painter

Functions: Report→ Model→ Utilities→ Report Writer

Unit � Introduction to Report Painter/Report Writer

Navigation:

1. Catalog Reports: SAP Menu: Information Systems→ Ad-Hoc Reports→ ReportPainter→ Utilities→ Catalog→ Reports

2. Catalog Report Groups: SAP Menu: Information Systems→ Ad-Hoc Reports→Report Painter→ Utilities→ Catalog→ Report groups

3. Execute Report: SAP Menu: Information Systems→ Ad-Hoc Reports→ ReportPainter→ Utilities→ Catalog→ Reports→ Select report→ Program→ Execute

4. Execute Report Group: SAP Menu: Information Systems→ Ad-Hoc Reports→Report Painter→ Utilities→ Catalog→ Report Group→ Select report group→Program→ Execute→ List→ Execute report group

5. Retrieving technical information on report groups: SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ Utilities→ Catalog→ Reports→ Selectreport→ Program→ Execute→ on output screen: Extras→ Tech. information

2005/Q3 © 2005 SAP AG. All rights reserved. 237

Page 246: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 5: Menu Paths CA705

Library:

1. Create Library: SAP Menu: Information Systems→ Ad-Hoc Reports→ ReportPainter→ Report Writer→ Library→ Create (Header � Characteristics � Basickey figures � Key figures)

Unit � Creating Reports Using Report Painter

1. Create Report:

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ Report→Create (Change, Delete)

2. Assign a report to a report group:

→ Environment: Assign report group

3. Report: Execute

Alternative A - From the report definition (Report Painter):

→ Environment: Assign report group

Alternative B - From the report group menu in the Report Writer:

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ ReportWriter→ Report group→ Execute

4. Add Text:

Alternative A - From the report definition (Report Painter):

→ Extras: Report texts (title page, headers, footers, end page)

Alternative B - From the report group output in the Report Writer:

→ Report group→ Execute

→ Settings→ Texts (title page, headers, footers, end page)

Unit � Row and Column Models

Create:

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ Model→ Create

Integrate model in a report:

In the report definition:

1. Row model:

Edit→ Row→ Get row model

238 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 247: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Appendix 5: Menu Paths

2. Column Model:

Edit→ Column→ Get column model

Unit � Sections and Horizontal Pages

Settings from the report definition:

1. Create new Horizontal Page: Edit→ Horizontal page→ New Horizontal Page

2. Create new section (with characteristics and key figures): Edit→ Sections→ Newsection (section with characteristics and key figures)

3. Create new section (with calculated key figures): Edit→ Sections→ New section(section with calculated key figures)

4. Hide rows: Edit→ Rows→ Hide

5. Show hidden rows (change, delete): Edit→ Row→ Show hidden rows (change,delete)

6. Hide columns: Edit→ Columns→ Hide

7. Show hidden columns (change/display, delete): Edit→ Columns→ Show hiddencolumns (change/display, delete)

Unit � Formatting Reports

Settings from the report definition:

1. Format rows: Over/underscore, number format, and color settings:

Formatting→ Row

2. Format columns: Assign format group (column format, number format, reverse+/- sign, show unit):

Formatting→ Columns

3. Format row/column texts: Row texts, column texts, and lead columns:

Formatting→ Row/column texts

4. Rows: expand/collapse to * level:

Formatting→ Expand/compress to

5. Section layout: Create section layout:

Formatting→ Section layout→ Define section layout (rows, lead column, columns,column headings)

6. Copy report layout for section:

Formatting→ Section layout→ Copy report layout

2005/Q3 © 2005 SAP AG. All rights reserved. 239

Page 248: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 5: Menu Paths CA705

7. Assign different report layout to report: Edit→ Report header→ Settings: Addother standard layout

8. Section overview (display/change section attributes: Position, page break, striketh.,underl., hdr.top, and cntr):

Formatting→ Section overview

Settings in the Report Output:

Column attributes, report layout, section layout, section attribute, save settings (andlock), dialog settings:

Settings

Unit � Variations and Extracts

Variation: Settings from the report definition:

Edit→ Variation (variation setting: Explode, single values, and do not explode)

Create extracts:

1. From the �Select� screen:

Extract parameters→ Create extract: Enter description and, if necessary, passwordand expiry date

With repeated selection: Data source→ Display extract

2. From the report output:

Report→ Save: Enter description and, if necessary, password and expiry date

3. Extract catalog from �Select� screen:

Environment→ Extract catalog

4. Display, delete, print extracts, change expiry date from the report group menu:

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ ReportWriter→ Report group→ Display→ Utilities→ Extracts

Unit � Reports in a Live System

Create activity menu:

SAP Easy Access: Choose Create menu Create activity group: Enter description:Choose Menu: Add folder: Assign report(s) to a folder: Choose Report: ChooseReport Writer: Enter report group(s): Confirm: Save

Assign users to an activity group:

Choose User: Enter user ID(s): Save.

240 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 249: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

CA705 Appendix 5: Menu Paths

Report/Report Interface:

Option 1:

Entry in the report group header:

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ ReportWriter→ Report group→ Change→ Goto→ Header:

Report/Report Interface: Choose Configure: Insert row(s): Insert report group orother type (for example, transaction, ABAP report): Save: Save report group

Option 2:

Entry in the library header:

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ ReportWriter→ Library→ Change→ Goto→ Header:

Report/Report Interface: Choose Configure: Insert row(s): Insert report group orother type (for example, transaction, ABAP report): Save: Save library

Mail Connection

Option 1:

Enter when the report group is started (in the selection screen):

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ ReportWriter→ Report group→ Execute: Choose �Output parameters�: Choose �Sendmail� as output medium: Confirm: Enter recipient: Confirm

Option 2:

Entry in report output:

Report→ Send: Save data: Fill out �Send with note� screen: Send Create extract:Enter description and, if necessary, password and expiry date

Transport Connection

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ ReportWriter→ Report group→ Display:

�Utilities� menu option: �Transport�:

�Copy from client� example: choose source client and other options

Unit � Working with Sets

SAP Menu: Information Systems→ Ad-Hoc Reports→ Report Painter→ ReportWriter→ Set→ Create/Change/Display/Delete:

Choose hierarchy maintenance or standard maintenance

2005/Q3 © 2005 SAP AG. All rights reserved. 241

Page 250: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Appendix 5: Menu Paths CA705

Enter the set name and table and enter (for basic and single sets) the field name

For basic sets, enter values, for single sets enter basic or single sets (for the same field)

Hierarchy maintenance: In the structure representation of the group, you can buildyour group successively. To do so, position the cursor on the node where you wantto expand the group and choose Add to same level or Insert as subnode. Fields aredisplayed in the structure in which you can enter a name and a description for thenew subgroup (node). You can also use the F4 Help. Then, choose Enter or Copychange. To assign individual values to an end node, position the cursor on the endnode and insert the values. Provided that the structure is not the standard hierarchyin cost center accounting or activity-based costing, fields will appear at the requiredposition in the structure. You can enter a from value and, if necessary, a to value.You can also use the F4 Help.

242 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 251: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

IndexAABAP reports, 41BBackground job, 163Basic key figures, 7Basic Set, 199CCalculated key figures, 104Cell, 102Characteristics, 7Column model, 84Columns, 30DDisplay icons, 181Drill-down reporting facility, 4EExploded rows, 104Extract, 161, 164FFormat groups, 139Formula columns, 101, 103Formula rows, 32GGeneral data selections, 35Graphical user interface (GUI),6

HHorizontal Page, 101KKey figure, 7

LLayout parameters, 139Library, 7Logistics Information System, 4NNavigation bar, 160, 181OOffice integration, 182QQuick Viewer, 4RReport group, 41Report header, 138Report Painter, 4Report Writer, 4Report Writer objects, 188Report/Report interface, 185Reporting table, 7Row model, 84SSAP Query, 4Section, 101Section Layout, 140Sections, 100Single-dimension sets, 201Standard layout, 138Standard Layout, 137Suppression, 105TTable CCSS, 7Target library, 84Text variables, 45

2005/Q3 © 2005 SAP AG. All rights reserved. 243

Page 252: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

Index CA705

Texts, 44VVariables, 43Variation, 159

Variation function, 159WWYSIWYG, 6

244 © 2005 SAP AG. All rights reserved. 2005/Q3

Page 253: CA705 - Basics of Report Painter - Report Writer

I n t

e r

n a

l

U s

e

S A

P

P a

r t

n e

r

O n

l y I n

t e r n a l U

s e S A

P P

a r t n e r O

n l y

FeedbackSAP AG has made every effort in the preparation of this course to ensure the accuracyand completeness of the materials. If you have any corrections or suggestions forimprovement, please record them in the appropriate place in the course evaluation.

2005/Q3 © 2005 SAP AG. All rights reserved. 245