
Hint
Selection for objects meeting the stated criteria is made directly from the database which improves performance.
Ad Hoc Query is a simple but powerful tool for reporting on Human Resource data. It enables you to access data from all Human Resource areas by choosing selection and output fields. Programming skills are not required. Selection is made directly from the database for persons or objects which meet the criteria and selection and output fields are all on one screen. Accessing the database directly significantly improves performance.
Standard authorization checks take place at the infotype and organizational assignment levels.
Ad Hoc Query – Functions

The Ad Hoc Query is based on infoSets and user groups which you specify within the query. InfoSets are assigned to user groups, which groups users, infotype fields and calculated fields together as required. InfoSets only display data that is required by the user which makes the program easy to operate.
Ad Hoc Query is based on Infosets, (groups of infotype fields and calculated fields), which are assigned to user groups. Users are assigned to user groups and can access assigned infosets to run queries. A query includes a hit list which enables you to further define values before the final output. Queries can be saved and reused.
Functions available with Ad Hoc Query include the following:
- One screen contains all functions:
- field selection
- selection criteria
- output formatting
- query results
- interactive function of the SAP List Viewer (for example, export to Excel)
- Drag and drop for easy selection of selection and output fields
- Example data is replaced by real data in the output area
- Text, value, or both, (denoted by a T next to the field selection), is selected by using the right mouse button in the selection criteria and/or output criteria fields.
Ad Hoc Query – Overview Screen

The output preview enables you to see a display of your report layout before the data is actually output.
Output layout includes the following functionality:
- Sort the list according to one or more columns
- Accumulate numeric columns in basic lists and obtain subtotals
- Delete output fields not required
- Initialize formatting
The context menu determines whether additional columns (mean value, proportion in percentage, and total number) should be output for ranked lists and statistics.
The output format determines how data is displayed including list outputs and export functions such as spreadsheet. You can export results to MS Word and MS Excel and further process the report results.
The send function enables you to forward the formatted report results to other users.
Your user settings are reloaded the next time you start Ad Hoc Query after exiting the query or when you log off the system.
