SAP R/3 for Everyone: Step-by-Step Instructions, Practical Advice, and Other Tips and Tricks for Working with SAP
The sorting function rearranges the rows of line-item reports according to the contents of one or more selected data columns (which we call the sorting columns). You can rearrange these rows in either alphanumerical (for example, A to Z or 1 to 1000) or reverse alphanumerical order in one of two ways. The first method makes use of the Sort ascending (A) and Sort descending (B) buttons (Figure 14.3). We demonstrate their use in the next three examples. Figure 14.3. The Sort ascending (A) and Sort descending (B) buttons.
Example 1: Single-Column Sort of a Line-item Report
Our first example demonstrates a single-column sort on the output of the Cost Center Actual/Plan/Variance (A/P/V) transaction[1] (Figure 14.4). This transaction displays the budget of a department (or cost center) in a line-item format. [1] We have not used the transaction code in this name because it is very long and clumsy: S_ALR_87013611. Figure 14.4. The default output of the Cost Center Actual/Plan/Variance transaction, with the rows sorted in order of increasing cost element code.
Each row of the A/P/V report shows the budget for a single cost category or cost element, which is identified in its first column (Figure 14.4). Each row displays the actual and planned costs for a cost element and the difference or variance between them in dollar values and percentages. The report is organized in order of the cost element code, which ranges from 400000 to 799000. This sorting column (the first) is automatically highlighted to distinguish it from the other data columns. We can sort the contents of this line-item report according to the contents of another column by using the Sort ascending and Sort descending buttons in its application toolbar (A). For an example, we can rearrange the rows in order of their actual costs, with those rows with the highest costs at the top of the report and those with the lowest at the bottom, by following this two-step procedure. Procedure: Single-Column Sort of a Line-item Report
Example 2: Multiple-Column Sort of a Line-item Report
This second example demonstrates a multiple-column sort on the output of the IH08 transaction, which displays data about equipment in a line-item format. The rows in the default version of this report are organized in order of the equipment code, which appears in the first column (Figure 14.6). Figure 14.6. The default output of the IH08 transaction, with the rows sorted in order of increasing equipment code.
We can rearrange this report so that the rows are organized first in order of increasing equipment code (we will call this the "primary sorting column"), then in order of increasing construction year (we will call this the "secondary sorting column"), by following this next procedure. Procedure: Multiple-Column Sort of a Line-item Report
Example 3: Single-Column Sort of a Hit List
This third example demonstrates the method of sorting the hit lists of search screens. Search hit lists are usually displayed in a line-item format, and occasionally you will see the Sort ascending and Sort descending buttons somewhere on their screens (see Figure 13.13 on page 163 for an example). When this occurs, you can use the same procedures that were described in the last two examples to rearrange their contents. When the hit list screen does not display these two buttons, you can still rearrange their contents by simply double-clicking the header of a data column. For example, the hit list for a search for plant codes is a two-column line-item report (Figure 14.8A). However, it is organized in order of the plant code, and the plant names are randomly organized. When you scroll through the hit list, it is hard to find a plant by its name because of this lack of organization. Figure 14.8. The hit list for a plant code search, in the default order (A) and reorganized in order of plant name (B).
You can solve this problem by double-clicking the header of the Name column: One double-click reorganizes it in alphabetical order (B), and a second click reorganizes it in reverse alphabetical order (not shown here).
|