Learn with Yasir

Share Your Feedback

SAP HCM Ad Hoc Query Guide | Step-by-Step Reporting Tutorial


Learn how to use SAP HCM Ad Hoc Query for quick reporting. Step-by-step guide with TCodes, InfoSets, and export options—no ABAP required.

📘 SAP HCM – Ad Hoc Query User Guide

The Ad Hoc Query tool in SAP HCM (Human Capital Management) allows users to create quick and flexible reports without requiring ABAP development.

This guide explains how to open and use Ad Hoc Query step by step.


🚀 How to Open SAP HCM Ad Hoc Query

Step 1: Log in to SAP

  • Enter your SAP User ID and Password.
  • Once logged in, you’ll see the SAP Easy Access screen.

Step 2: Access the Ad Hoc Query Tool

You can open Ad Hoc Query using one of the following methods:

  • Transaction Code:

    • Enter S_PH0_48000513 → Directly opens Ad Hoc Query.
    • Enter SQ01 → Opens SAP Query (for broader query management).
  • Menu Path:

    Human Resources → Information System → Reporting Tools → Ad Hoc Query
    

Step 3: Select a User Group

  • If prompted, choose your User Group.
  • If you don’t have one assigned, contact your SAP Basis/Security Team to request access.

Step 4: Choose an InfoSet (Data Source)

  • Select from the list of available InfoSets (predefined data structures).
  • In HCM, InfoSets typically include:

    • Employee Master Data
    • Organizational Assignments
    • Payroll Results
    • Time Management Data

Step 5: Build Your Query

  • Select the fields you want in your report (drag & drop or checkboxes).
  • Apply selection criteria (filters) if needed.
  • Preview your query before execution.

Step 6: Execute and Export Results

  • Click Execute (F8) to run the query.
  • Results can be:

    • Viewed on screen
    • Exported to Excel
    • Saved for reuse
    • Scheduled for regular reporting

⚠️ Important Notes

  • Your access depends on your SAP role/authorizations.
  • If you cannot see the menu option or transaction code, request access from your SAP Security/Admin Team.

✅ With this guide, you can quickly generate reports in SAP HCM without technical development.



Explore More Topics

Modules