Hi Anand,
You can go through the below links from there you can able to understand generate the Adhoc Query report as per your requirement.
Procedure for Adhoc query in SAP HR
You can google it , will get more related information on this.
Regards,
Sankarsan