Entering content frameProcedure documentation Setting Sorting and Subtotals Locate the document in its SAP Library structure

Use

In this example, you want to generate a list containing booking information for each flight. You want to display a subtotal giving the amounts paid per booking in each case and an overall total at the end of the list.

In addition, you want to determine the number of bookings made per flight and the total number of bookings made.

Prerequisites

You have created the query G5 as shown in the section Define Multiple Line Basic Lists .

Procedure

  1. Copy query G5 and give the copy the name G6.
  2. Highlight the G6 query and click on the Change function.
  3. Adjust the title and the note.
  4. Expand the field selection using fields from the Bookings field group.
  5. You can see below which fields are to be included in the display.

  6. Click on Basic List.
  7. In the Basic List Line Structure screen, extend the definition of the basic list. Specify which field you want to sum. Also mark the Total checkbox for the Booking Price in Foreign Currency line.

  8. In order to count the number of bookings, select the Payment column for the Occupied Seats field.
  9. This graphic is explained in the accompanying text

  10. To display the Control Levels screen, click on Next Screen This graphic is explained in the accompanying text.
  11. Since you want to display a sub-total and the number of bookings for each flight, the Total and Counter columns are selected for the field Flight date.

    Note

    On this screen, you cannot determine the field you want to sum or count, but only at which level you want to display a sub-total or number of bookings for the fields you have defined on the Basic List Line Structure screen for summing or counting respectively.

  12. Mark the Box checkbox for the Flight date field.
  13. This graphic is explained in the accompanying text

  14. To display the Field Display Options screen, click several times on Next Screen This graphic is explained in the accompanying text.
  15. Set the booking price to appear together with the currency.

    This graphic is explained in the accompanying text

  16. Use the Test This graphic is explained in the accompanying text function to test the query.

A list appears with an overall total and number of bookings at the end:

This graphic is explained in the accompanying text

See also:

Structure linkOptions for Line Layout: Totals and Counting

 

 

 

Leaving content frame