If you use SAP Query to create queries, you can create one basic list and up to nine statistics or ranked lists for one query, which can be defined using selection and output fields.
When creating queries using HR logical databases, you can use the Line Groups function. This function enables you to group specific lines within multiline basic lists to form line groups.
If infotypes have more than one record, this function ensures that infotype fields that logically belong together are grouped in a logical manner, instead of being output one after the other.
The following table shows an example of different placement of fields from the infotypes with and without Line Groups:
| Basic List with Line Groups | Basic List Without Line Groups |
|---|---|
| Martin Smith | Martin Smith |
| 54333 Musterstadt | 54333 Musterstadt |
| Any Street 4 | 12456 Anyplace |
| 12456 Anyplace | Any Street 4 |
| Example St. 4 | Example Street 4 |
Field Selection
The system guides you through the following sequence of screens for field selection:
- Title, Format:
This screen enables you to assign the title of the query. By entering format data, you can determine the page layout. By entering special attributes, you can determine further characteristics for the query such as change lock and output types).
- Field Group Selection:
This screen enables you to select the required field groups. InfoSets are divided into field groups, which correspond to infotypes in HR.
- Field Selection (Output Fields):
This screen enables you to select the data fields required for the field groups selected earlier. If you require local fields, you can define them on this screen.
- Selection Fields:
This screen enables you to define selection fields with which you can enter further restrictions on the selection screen.