Manual Report Painter Writer
Manual Report Painter Writer
Contents
Learning the Basics of Report Painter/Report Writer.........................................32
Overview
Report Painter/Report Writer can be used to easily create currency- or quantitytype reports in the R/3 System. Examples of such reports include, financial
statements, sales reports, and inventory reports.
Earlier releases of the R/3 System were delivered only with Report Writer. Later,
the user interface of Report Writer was enhanced and offered to users as Report
Painter. As shown in the graphic below, Report Painter adds an easy-to-use
graphical interface to the core functionality of Report Writer.
Report Writer
Graphical
Graphical
Interface
Interface
Report Painter
Report Writer
R e p o rt
P a in te r
D is p la y
or
C hange
R e p o rt
Data tables
supported
C o p y to a
R e p o r t W r ite r
R e p o rt
D is p la y
or
C hange
R e p o rt
R e p o rt
W r ite r
Both Report Painter and Report Writer can be used to report on the following
tables and tables types:
Evaluation structures set up in the Logistics Information System (LIS).
These structures normally begin with an S or ZF. Several different
tables and views within the R/3 System can be added as evaluation
structures.
Note: You cannot add cluster tables, such as BSEG.
CCSS is used for Cost Center Accounting (CO-CCA), Internal Orders (COOPA), Activity Based Costing (CO-ABC) and for cost element reports in
Project Systems (PS).
GLFUNCT is used for functional area reporting in cost-of-sales accounting.
GLPCT and GLPCOP are used for Profit Center Accounting (CO-PCA/EC-PCA).
FILC is used for Legal Consolidations (FI-LC).
COFIT is used for the Controlling Reconciliation Ledger (CO-CEL).
ZZ tables are created for the Special Purpose Ledger (FI-SL).
FIMC is used for consolidations in the Enterprise Controlling module (ECLC).
GLT0 is used for Financial Accounting (General Ledger) reports by account,
company, and business area (FI-GL).
KKBC, KKBE, and KKBU are used for the Controlling Product Costing module
(CO-Costing).
New in Release 4.0A: RWCOOM is used for CO-CCA, CO-OPA and CO-ABC.
RWCOOM is used for special standard reports like internal order budget
reports, cost center budget reports and cost component reports.
Note: RPPS was used for Project Systems (PS). However, it is obsolete and is
no longer supported in Release 4.0. In Release 3.x there were only two special
reports (6P70 and 6P71) using RPPS. These reports cannot be called directly,
Related Terminology
The following is a list of key terms you need to understand when working with
Report Painter/Report Writer tools.
Report Definition
A report definition has three main components:
Rows: The rows of a Report Painter report contain characteristics that
determine how the rows will appear in the report. In the first report example
on page 8, materials and material types drive the outcome of the rows,
therefore only these characteristics are included in the rows of the report.
Columns: The columns of a Report Painter report must have key figures.
If needed, columns may also contain characteristics. In the second report
example on page 19, plants are shown across the page, which means the
plant characteristic is included in the columns as well as a key figure for net
value of a billing document.
General Data Selection: The general data selection area contains the
additional characteristics that should control the data included in the report.
In the second example on page 19, you may want to limit the selected data
by material group or industry. Since these fields do not affect the outcome of
the rows or columns, they are included in the general data selection as
additional selection criteria. Any required fields that are not in the rows or
columns are also included in the general data selection. In the first example
on page 8, ledger, version, and record-type are all required but not included
in the rows or columns. Therefore, these fields must be included in the
general data selection in order for the report to run. Each table has certain
required fields. To check your report for missing fields, choose the Check icon
in Report maintenance.
Key Figures
Key figures are the currency or quantity buckets for a report. Some examples of
key figures include the local currency amount in profit center accounting, the
costs bucket in cost center accounting, the net value of a billing line item, and
the quantity of materials sold in a sales order.
Characteristics
Characteristics are the fieldsother than currency or quantityneeded to build
the report. For example, company code, plant, sales organization, G/L account,
cost center, or period. In a balance sheet report, G/L accounts probably appear in
the rows of your report. In a customer sales report, customers are likely to
appear in the rows of the report.
characteristics and key figures are different. For example, in the Special
Ledger the key figures are based on currency: transaction, local, and group. In
Cost Center Accounting structure CCSS, the key figures are based on currency
and the type of cost: cost, quantity, statistical quantity, and variances.
Sets: You will need to build sets that include the values for the
characteristics that are needed for your report. Although the values can be
directly entered into the report, it is recommended that you use sets. Sets
can be used in multiple reports because when values change, only the sets
are changed and not each individual report. As an example, cost center
hierarchies (groups) are sets and can be used directly (as with profit center
groups). The same holds true for cost elements, activity types, statistical key
figures, orders, and business processes (you do not have to create technical
sets for these characteristics in order to use Report Painter).
Library: You must create a library for the table or evaluation structure.
Most tables supported by Report Painter/Report Writer have one or more
libraries you can use. When creating evaluation structures in the Logistics
Information System, the system creates a library beginning with a 2. Since
the Special Ledger is not delivered with the libraries, you will need to create a
library on each new special ledger table.
Determine
Determine the
the table
table you
you need
need for
for your
your report
report
Find
Find or
or create
create aa library
library for
for the
the table
table
Find
Find or
or create
create required
required sets
sets for
for your
your reports
reports
4Trained
Find
create
for
Find or
orEmployee
create variables
variables
for the
the fields
fields in
in your
your report
report
Available?
5
Create
Create your
your report
report
Add
Add your
your report
report to
to aa report
report group
group
In this section you learn how to create the following two reports with Report
Painter:
Profit Center Accounting report
Billing report
For these sample reports, you should focus on the tables that correspond to the
SAP application areas you are working with. For example, if your expertise is PCA
(Profit Center Accounting), you should work with table GLPCT. Take a few minutes
to familiarize yourself with the scenario and the desired report. For more
information, see page 3-4.
The examples shown in this section were created in Release 4.0B.
The rows in this report list the G/L accounts and the columns contain the current
as well as prior years (with the company code currency key figure).
Guided Tour
2
3
10
To help you better understand how to create a report in Report Painter, this step has been
divided into the following substeps:
Define the rows
Define the columns
Define the general data selection
Define Rows
1. In Row 1: Choose
Characteristics, select the
desired characteristics. For this
example, select Account
number from the list of
available characteristics.
1
2
4. Choose Enter.
11
10
11
12
13.Choose Enter.
14.In the popup screen (not shown
here), enter the text Gross
Margin.
You have now defined the three
rows (Revenue, Cost of Goods Sold,
and Gross Margin) you will need for
this report.
13
12
Creating a set
Instead of separately defining each row, you can also create a set to save you
time. The set you use in a report row is referred to as a row block and may
consist of one or more physical rows. If you create a basic set containing
account numbers as a row block, then the system automatically creates a
physical row for each account number in the set.
In this example, you could have skipped steps 5 through 14 simply by
creating a basic set called Gross Margin in step 3. This set (row block) would
include the account numbers for Revenue (800000) and Cost of Goods Sold
(400000-490000). The system automatically generates a physical row for
Revenue and Cost of Goods Sold without requiring you to define it from
scratch. To do this, you must set the explode option to explode or single
values. After that, one will automatically get one line for each account, not 2
lines for each single value (800000) and the interval. You will only get 2 lines
if the standard layout parameter form print is setbut this is not the default
setting.
For more information on how to use sets, refer to the online documentation in
the R/3 Library.
Define Columns
2
3
13
10
11
12.Choose Enter.
Column 1 has now been defined for
your report.
12
Since the following steps are similar to those shown above, they have not been pictured in
this guided tour.
13.Define column 2 (Prior Year): You can define column 2 either by repeating steps 1
through 12, or by copying columns. For column 2, choose Prior year as the desired
variable.
14.Define column 3 (Variance): Enter a formula that calculates the difference between
column 1 (current year) and column 2 (prior year). The column text should read Variance.
Adding a column or formula is similar to adding a row formula. Follow steps 10 through 13
shown in the section Define Rows.
You have now defined the three columns (Current Year, Prior Year, and Variance) needed for
your report.
14
4
4
5 7
8
9. Choose Enter.
10.Choose Edit General data
selection Variation (not shown
here)
11
12
15
14
13
16
15
18
17
16
22
23.Choose Execute.
17
Change Layout
18
Note: Before you start with this example, you may want to review LIS Evaluation
Structures discussed on page 27. It describes how to create a view that combines tables
and creates an evaluation structure.
19
Guided Tour
4
2
3
5
6
20
10
11
13
14
21
16
15
17
18
19
20
22
21
22
23
24
25
26
27
28.Choose Enter.
28
29
30.Choose Enter.
30
31.You can enter column 2 by repeating steps 22 through 30 (and enter plants 3100 and
3200), or you can copy columns.
23
33
34
35.Choose Enter.
35
37
38.Choose Enter.
38
24
39
41
40
47
48
25
52
52.Choose Save.
53.To change the layout settings in the report, choose Settings Layout. There are six layout
screens containing various settings such as the number of decimal places, column width,
text column width, and rounding. Make necessary changes and save your report.
Your billing report is now ready.
26
27
Below is an example of how to add an evaluation structure in LIS using a user-defined view.
Guided Tour
4
2
3
Using views
In the next step, a view is used as the data dictionary reference table. Views
should only be created when all other options have been exhausted. It is also
recommended that you check with an experienced basis/tools consultant before
creating the new view.
To create a view in SAP, choose Tools ABAP Workbench Dictionary. Enter
the name of the new view beginning with a 'Z'. Select the View option and
Create.
28
6. Choose Enter.
In the next step, the system determines the classification of fields from the table
or view as characteristics or key figures. This is not configurable.
Most currency and quantity fields are considered key figures while the other field
types are considered characteristics.
29
Report/Report Interface
Report Call or Report/Report Interface allows for drilldown functionality from a
report group. Remember that a report group contains one or many reports and is
executed using Report Painter/Report Writer. All reports within the report group
have access to the Report/Report Interface setup in the report group. Report
Calls may also be assigned to a library. This means all reports created for that
library have access to the reports/transactions that are assigned to the
Report/Report Interface.
To set up the Report/Report Interface, follow these steps:
1. To maintain a report group: Information Systems Ad hoc reports
Report painter Report Writer Report group Change.
2. To maintain a library: Information Systems Ad hoc reports Report
painter Report Writer Library Change.
30
3. Enter the name of the report group or library that you would like to add report
call capability to. Choose Header.
4. From the Header screen, choose the Report/Report Interface button.
5. If any reports or transactions have been assigned to the report group or
library, they will show up in the Report assignments list.
6. To add additional reports or transactions, choose Insert.
7. To view the technical name of the report or transaction, choose Tech name on
<-> of.
8. When inserting a new report, the system automatically assumes you wish to
add a report of the same type. In the example, it assumes report group
because we are adding reports to a report group. To add a different type of
report, choose Other report type.
31
9. Double-click on the type of report you would like to add to the Report/Report
Interface.
10.In the example below, we are adding a transaction code. Transaction code
FB03 is an FI document display transaction. This addition means you will be
able to drill down to display an FI document. Note that there must be an FI
document number and company code available from the sender report for
this drilldown to be successful!
11.Choose Enter.
12.Choose Save to save the new report assignment.
10
11
Report/Report Interface
This interface spans applications by automatically converting field names and
values.
Example: A Report Writer report for an FI-SL table can directly call a Report
Painter report from the CO module (Table CCSS). The interface converts field
names (for example, G/L account RACCT to cost element KSTAR) and values
(for example, get controlling area CCSS-KOKRS from company code GLT1BUKRS).
When calling an ABAP program, the interface retrieves the selection parameters
of the program and automatically fills these parameters from the selected data
32
of the sender report. This way any program can be called without the need to
adapt the program for the report/report interfaceprovided, of course, that all
relevant selection fields are part of the selection parameters of the program. As
an example, consider the new line items RGUGLS12 and RGUGLS11. These
programs have all the necessary fields as selection parameters. There is no
specific coding for the report/report interface.
If you need to actively read the interface data, there are a number of function
modules available in function group RSTI. The online documentation of function
group RSTI gives detailed information on how the report/report interface works
and what function modules are available.
33
Column
Period Variable
Formula
Year Variable
Formula
Column 12
&0R-RP00
'#S002'
&0R-RY00
'#S001'
Column 11
&0R-RP01
&0R-RY01
Column 10
&0R-RP02
&0R-RY02
Column 9
&0R-RP03
&0R-RY03
Column 8
&0R-RP04
&0R-RY04
Column 7
&0R-RP05
&0R-RY05
Column 6
&0R-RP06
&0R-RY06
Column 5
&0R-RP07
&0R-RY07
Column 4
&0R-RP08
&0R-RY08
Column 3
&0R-RP09
&0R-RY09
Column 2
&0R-RP10
&0R-RY10
Column 1
&0R-RP11
&0R-RY11
If you only need one column with the total for all periods, create an additional
formula column that adds up all period columns. Hide the period columns (In
Report Writer, you must set the column width to zero).
34
Column
Period Variable
Formula
Column 1
&QPER1
'QUARTER' * 3 - 2
Column 2
&QPER2
'QUARTER' * 3 - 1
Column 3
&QPER3
'QUARTER' * 3
This example assumes that the first quarter consists of periods 1, 2, and 3, etc.
You can use the formula variables &QPER1, &QPER2, and &QPER3 in data-set
entries or directly in the column definition (Report Painter). The independent
variable &QUARTER is not used directly in the report, only indirectly through the
formula variables. When running the report, only the independent variable
&QUARTER leads to the input field Quarter on the selection screen. The user is
expected to enter quarter 1, 2, 3, or 4.
Period Variable
Formula
Column 1
&QPER1
Column 2
&QPER2
Column 3
&QPER3
Again, this assumes that the first quarter consists of periods 1, 2, and 3, etc. The
DIV operator in the formula denotes division without a remainder (for example, 8
DIV 3 = 2).
35
Column
Period Variable
Formula
Column 1
&PER01
Column 2
&PER02
Column 3
&PER03
Column 4
&PER04
Column 5
&PER05
Column 6
&PER06
Column 7
&PER07
Column 8
&PER08
Column 9
&PER09
Column 10
&PER10
Column 11
&PER11
Column 12
&PER12
Create a basic set for period and enter the 12 formula variables (or enter in the
column definition in Report Painter). In the report layout, select the parameter
Suppress zero columns.
If the from-period is always 1, the formulas simplify to IF p > '&PERI_TO' THEN 16
ELSE p
p stands for the period (values 1 to 12).
If you only need four columns for quarters 1 to 4, create four additional columns
with formulas that add up the necessary columns for each quarter, and also
suppress the individual period columns by assigning a column width of zero.
36
Description
Formula
'#S001'
'#S002'
You can define formula variables so that the user enters calendar year and
period and these values are internally converted to the fiscal year and period.
You need the following formula variables (the example assumes that fiscal year
1999 starts in October 1998):
Description
Variable
Formula
&CYEAR
'#S001'
&CPER
'#S002'
&FYEAR
Fiscal period
&FPER
The report can now be defined using the variables &FYEAR and &FPER (fiscal
year and period). When running the report, the selection screen has input fields
only for the independent variables &CYEAR and &CPER (calendar year and
period) with defaults taken from the system date. Upon execution, the calendar
values are converted to the fiscal values.
37
For details, see the 3.1G Release note and the online documentation for the
function modules mentioned there. Also, see appendix D for information about
the web reporting browser and the ability to customize HTML reports.
38
Use Variation
Variation is useful in a Report Painter/Writer report. Variation can be performed
on any field in the general data selection of a report. This functionality allows an
individual report to be created for each level and single value of any field in the
general data selection area. If the report contains multiple cost centers and you
would like to see an individual report for each cost center as well as the total,
variation accomplishes this for you. To use variation for a Report Painter report
definition, choose Edit General Data Selection Variation.
Note: Variation can be used in combination with the creation of an extract. As
of Release 4.0A, the system finds extracts by checking the selection criteria
the user filled in on the selection screen. The crucial point is: if there is an
extract created with variation, the system will find the extract even if the user
specifies any of the nodes or single values that have been part of the varied
hierarchy. If the user chooses to display the extract, the user will be directly
guided to the users node or value. Before Release 4.0, extracts with variation
could only be entered at the top node. Thus, the best scenario is to create an
extract with variation for the complete hierarchy by starting a batch job at
night. The next day each end user will be able to get their report from the
extract just by filling out the selection screen according to their responsibilities
(e.g. month-end-reporting scenario).
39
Naming Conventions
All customer-defined reporting elements within Report Painter/Writer should
begin with an alpha character. Numerical prefixes are reserved for SAP-delivered
elements, including libraries, sets, variables, reports, and report groups.
Review
Report Painter/Report Writer is a user-friendly tool for currency and quantity type
reports from the R/3 System. You can use Report Painter/Report Writer with
various tables, both standard and user-defined. Because of this flexibility, several
applications can benefit from the tool. Reports can be printed, downloaded, used
with graphics, saved as extracts, mailed via SAP mail, faxed, or simply viewed on
the screen.
The following steps are necessary to create a report with the Report
Painter/Writer tool:
1. Determine the table needed for the report.
2. Find the library for that table, or create one if necessary.
3. Find or create required sets and variables that may be needed for the
characteristics in the report.
4. Create the report, including the row and column definitions and general data
selection.
5. Add the report to a report group for execution. While viewing the executed
report, add texts (headers and footers) and adjust the layout settings.
Additionally, the drilldown function can also be used to access reports
throughout R/3. Similarly, you can create evaluation structures which let you
view data in LIS information structures.
40