Using Analytics Features of SAP HCM

Creating an Ad Hoc Query

Objective

After completing this lesson, you will be able to create an ad hoc query and identify options for non HCM related reporting.

Ad Hoc Query

Flowchart showing steps from Field Selection to Selection Result, leading to Output (List) or Save. Icons depict organizational, personal data, and address information categories.

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

Ad Hoc Query diagram depicting data selection from infotypes, settings like Selection Tree and Output Performing, leading to a list output. Infosets are pre-selection fields for generating reports.

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

Screenshot of the InfoSet Query interface with five numbered annotations: 1. Selection + Output fields, 2. Values output fields, 3. Preview hit list, 4. Output fields in list form, 5. Output list displaying names.

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.

Create an Ad Hoc Query

Business Example

As the HR Analyst, one of your tasks is to generate various reports. You have received a request to create some employee reports.

For the following tasks, use the Ad hoc Query.

Special Information Requests

Overview - Non HCM Reporting

Flowchart illustrating special information requirements: graphical diagram, worst-case scenarios, and headcount info. It involves HCM with standard reports, manager self-service, and ad hoc queries.

Why SAP BW or/and SAP Datasphere?

Companies generate data in all business activities. Based on this data, decisions are made by employees at all levels in all areas of the company. HCM reports are limited in their presentation and evaluation options. Head counts or graphically appealing bars, pie charts and worst-case scenarios are usually not possible. For this you need the SAP BW.

SAP Business Warehouse (SAP BW) is SAP's enterprise data warehouse product. It can transform and consolidate business information from almost any source system, including HCM.

SAP Datasphere is the cloud-based further development of the classic business warehouse (SAP BW). SAP Datasphere enables every data professional to deliver seamless and scalable access to mission-critical business data.

Summary

  • Ad Hoc Query is a powerful tool enabling access to Human Resource data by selecting custom fields.
  • Ad Hoc Query uses infoSets and user groups to organize and control data access within queries.
  • SAP Business Warehouse (SAP BW) is SAP's enterprise-level data warehouse product.
  • SAP Datasphere is the cloud-based evolution of the classic SAP Business Warehouse (BW) system.