Data Tab
Use
You use the Data tab to select data from internal tables for a table node or a loop node or a complex section.
Selecting Data
-
If you want to use a loop to read and process the lines of the internal table one after the other, mark the checkbox in front of Internal Table .
-
Enter the name of an internal table.
-
Enter the assignment type ( INTO or ASSIGNING ) and a work area (structure of the table line type or field symbol). If you use a table with header line, as a work area you must again enter the name of the internal table.
-
If desired, use the input fields Line and To to determine the part of the internal table you want to read.
-
Use the WHERE Condition box to restrict the seletion to a part of the data from the internal table. Describe the conditions as you do on the Conditions tab .
At runtime the system selects the data according to your settings. After processing the loop, the output area contains the last entry selected (or the field symbol points to this entry).
Sort Criteria
You can use the second table control of the Data tab to sort the table output by fields of the internal table. The sequence in which you enter the field names into the table control determines the sorting sequence. To change it later, you can use the black arrows above the control. Use the radio buttons to specify whether to sort the field in ascending or in descending order.
A break in a sort level results from the sort process whenever the value of a sorted field changes from one line to the other. The blocks in which the value of the field remains constant are sort levels.
If you want to display output before or after a sort level changes, mark Event on Sort Begin or Event on Sort End . Then in the tree structure an event node appears for which you can create inferior nodes to display output at these events (for example, subtotals).