You are on page 1of 43

Creating a Report library SAP Easy Access->Information Systems->Ad Hoc Reports->Report Painter->Report writer->Library>Create T code-GR21

Enter

Enter the Table and the Library Description Click on characteristics and select the characteristics you need in your report

Select the Characteristics and give them the position in the order you need them in the report. Similarly repeat the same for the Basic Key figures and the Key figures.

Save the Library

Creating the Reports


Sap easy Acess->Information Systems->Ad Hoc Reports->Report Painter->Report->Create T Code-GRR1

Click on

Here you need to define the Rows and the columns and the general selection Criterias. For Column 1-Key Figures Rows-Cost element Groups Column 2-Basic key Figures with Characteristics Column 3-Formula

OAS_WAGES

OAS_SALARY

OAS_P_IMP

Defining the rows Double-click on ROW 1

Here you define the Characteristic Values or Groups

To enter the group click and then confirm

and then enter the Cost Element Group OAS_WAGES click on .

First row is defined, and repeat the same for the rest 3.

Define the formula for the fourth row

Select the formula button and enter

Enter the formula as below

After defining the formula click on Now enter text-TOTAL in the short text field and select copy text.The text will be copied to Medium and Long.

Confirm with

Now defining the columns

Since the first column is to use Key figures, Select the predefined Key figure button and enter

You get the Key figures which you defined in the Library and in the order you assigned.

Check and confirm Now proceed the same way as for column 1.But this time select Key figures with characteristics check.

For column 3 select the formula

Define the formula as below and enter.

Now enter the General Data Selections Goto-Edit-General Data Selections

Enter the following data and confirm.

Once the general data selection is defined, check the report for errors Now assign the report to your Report Group Goto-Environment->Assign Report Group

and save it.

Now execute it

Hierarchies

Run the report without explode option

Now we change the report and explode the rows to expand selection To Explode the rows, Position the cursor on row and Goto-Edit->Rows->Explode

We have three characteristics for explodingPrevious screen was for with do not expand option.Now we select it to Expand and see the difference The rows are expanded as below with Material costs and Other costs.

Now if we select the option singe values, below is the screen shot

There is not much difference in this option and do not explode ,but when we execute it, then we see the difference.

Create Modal Rows and Columns


Modal rows and columns need to be defined in Libraries of the report To use the same in different libraries, we need to copy from one library to another if the target Library has the required fields. Path-SAP Easy Access->Information systems->Ad Hoc reports->Report Painter->Model->Create T code-GRR4

Now proceed the same way in defining the columns. Now using the models defined, create a new report

Similarly repeat the process for columns The repot structure is done

Horizontal pages in Report


Create a new report Z522

Define new horizontal pages

Now here you define the columns just as previously with a difference as to using Actual Quantity instead of Actual Cost

Report is created and can be executed after adding the report group.

The Pages can be navigated using

Working with Independent Sections

Here you could see to sections in the report.

Using Cells in Formula column

To select the cells double click the cells with the intersection of employee and Actual Qty and Employee and Plan Qty.

Highlighted ticks shows that the cells are selected. Now go back to the previous section.

Now in the previous screen define a new column next to the variance column with the formula

Execute the report Cell in form report

New section report

Formatting of Report
Standard Layout is independent of report Formatting options for the report-

1. 2. 3. 4.

Short text, Medium text, long text Overscore or Underscore for summarization levels Expand/Collapse of Summarization levels Format group for Column _number format

Layouts are defined at Header level Report Layouts can be made permanent by ticking the Change allowed during execution flag. The parameters that can be changed in a report are1. 2. 3. 4. 5. 6. 7. 8. Page Control Rows Lead Columns Column Column Heading Representation Language Graphics

The layout of the report can be changed only during the development phase of the report. The layout parameters for specific sections take precedence over the global layout settings Section settings can be modified in the report output Section layout consists of1. Rows Total 2. Row Texts 3. Column Texts

Assign the layout to your report Edit->Report Header->Layout

Before changing the layouts repoer executed

After changing the layout

Format groups and Other Formatting

Change the 0 above the variance column to 1 After this we need to change the formatting of the variance column. Before changes, settings are as below

To change the column formatting-Select the column-goto-Formatting>Columns

After chnagng the formatting

Similarly change the Row formatting by placing the cursor on the subtotals row. example

Change the format with over score and underscore

You might also like