The transaction codes associated with ABAP Query are
SQ01
- ABAP Query
SQ02
- Infoset
SQ03
- User group
SAP Abap programming & SAP Modules SD,MM,HR,PP...
Specify the users who should be authorized to run the query.
Indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query.

· InfoSets - InfoSets determine to which tables, or field within a table, a query can refer. InfoSets are usually based on table joins or logical databases.These should be created with sharability in mind.
· User Groups -The user group allows you to to specify the users who are authorized to run and/or create/change queries under that user group.
· Queries - Formatting the data identified in the InfoSet to
create the desired report.