Before you start reading an internal table, you can tell SAP Smart Forms to sort it. With the sorting, you can divide the table into different sort levels:
This allows you to bundle data records and to display subtitles or subtotals at the beginning or end of a sort level.
To determine the sorting of your internal table, use the Data tab of the table or loop node. In theSort Criteria group box you can enter the fields by which to sort the table.
The sequence in which you enter the field names into the table control determines the sort sequence. To change it at a later time, use the black arrows above the control. Use the radio buttons to choose whether to sort the field in ascending or in descending order.
If you want to display data before or after a sort level, markEvent on Sort Begin and/or Event on Sort End . In the navigation tree, an event node appears for which you can create inferior nodes. In these inferior nodes you specify the data you want to display at this event (for example, subtotals).
Due to technical reasons, SAP Smart Forms cannot recognize whether an internal table was sorted before (for example, before passing it at the form interface). If it was sorted and you want to use the output events, you must still enter the sorting into the table control and, in addition, mark