The transaction codes used in Query reports are:
1. SQ01 – For creating Query.
2. SQ02 – For creating Infoset.
3. SQ03 – For creating User.
First u need to create the USER and generate the INFOSET, in turn can produce the
Query report.
INFOSET
The reason for InfoSets being important is because many R/3 clients find themselves faced with how to develop useful reports from an application using 20k+ tables. In addition, many clients desire to use third-party reporting tools; i.e., Crystal Reports. In this article, we will look at what an R/3 InfoSet and how they relate to Crystal Reports.
• Knowledge learned in this article can be put to use when:
• Users require an understanding of how InfoSets are used within SAP R/3
• Users require an understanding of the various methods of developing InfoSets .
• Users require an understanding of how InfoSets are used in concert with Crystal Reports.
Report developers cannot be expected to cull through the thousands of tables and fields R/3 presents – even from a single logical database. Therefore, some form of technical shortcut is beneficial. InfoSets, when used with ABAP queries are an example of an available shortcut.
Which logical database (LDB) should be selected?
Are any auxiliary (additional) fields required?
In some instances, the information a logical database supplies will be insufficient. Both additional tables and additional fields can be added to an InfoSet. Any table can be added as an additional table, provided they are defined within the ABAP Dictionary. When adding a field, the ABAP code must be specified and the field assigned to a functional group.
By creating InfoSets and assigning them to user groups, the system administrator determines the range of reports end-users and report developers can access.
Since InfoSets are used with later versions of SAP – versions that are more User Role dependant — ABAP queries are also similarly affected. The tool for maintaining queries within the SAP query is called the InfoSet Query – a tool suitable for developing general queries and for ad-hoc reporting.