Start of Content Area

Example Sorting: Example 1  Locate the document in its SAP Library structure

Use

The following example defines a statistic showing sales figures for each airline carrier and flight connection. It outputs a sub-total for each airline carrier.

Prerequisites

Procedure

  1. On the Statistic Structure screen, define a statistic like the one in the following illustration:
  2. This graphic is explained in the accompanying text

  3. Use the Test This graphic is explained in the accompanying text function to test the statistic.

Result

The following list is displayed:

This graphic is explained in the accompanying text

Explanation

Subtotal

By activating the Subtotal checkbox (ST) on the Statistic Structure screen, you can display the subtotals row as well as displaying the total. When switching a sort string a sub-total line is created for this sort string respectively. The following three conditions have to be met:

New Page (only for ABAP lists)

You can set the option New page (np) with sort fields. A page break is then inserted after each change of sort field. The same restrictions apply to the New page option that apply to the option Subtotal.

 

 

End of Content Area