When you get familiar with the QuickViewer (SQVI), you probably would like overcome its restrictions and share your reports with other users. Allthough it is possible to convert the SQVI reports to SAP Queries, maybe you’d rather like to learn how to use use the SAP Query.
You create a SAP Query the same way as QuickViewer queries. The biggest difference is that you need first to create an InfoSet that forms the basis of every query. Here you select the data source (tables, table joins, logical databases) and define the list and selection fields. The information requirements of the users define the InfoSets.
SAP Query offers a broad range of ways to define reports. You can create different types of reports such as basic lists, statistics, and ranked lists. You are also able to drill down to documents and treat the problems with signs, You don’t need coding skills to do this, but it is also possible to add pieces of code to your queries.
Usually a reporting requirement, which the existing standard reports cannot solve, triggers the need for a Query. Before jumping into details you should make a rough sketch. What information the report should contain, and how it should look. Next you need to find out where to find this information. Use Se16 and SQVI to help you. When you have are sure of the report, continue with InfoSet definition. Choose the infosource and select the fields. The InfoSet is assigned to a User Group. So, you must already have one or create a new. When all this is ready, you can start to create your query.
It is not a good idea to do the queries directly in production. Usually this is also prevented by IT. Development is not so good either, because there is no data to test the query. You can create the queries in the test system. When they pass the tests, and function without problems, you can copy them to production. It is also a good idea to copy them to development also.
SAP Query Step-by-Step Guide: