Vous êtes sur la page 1sur 7

By:

Sandun Sulakshana

Contents
Difference between ABAP report and SAP query report .............................................................................. 1 Difference between Query quick Viewer (SQVI) and SAP query builder for User groups (SQ01/SQ02/SQ03) ....................................................................................................................................... 2 Generating a query using SQVI (QuickView)................................................................................................. 2 Creating QuickViews ..................................................................................................................................... 2 Selecting a Data Source................................................................................................................................. 3 Selecting List Fields ....................................................................................................................................... 4 Determining the Sort Sequence .................................................................................................................... 5 Selecting Selection Fields .............................................................................................................................. 5 Headers and Footers ..................................................................................................................................... 6 Colors ............................................................................................................................................................ 7

Difference between ABAP report and SAP query report


ABAP report is a report which is written by a programmer with the knowledge of programming language of ABAP/4 and use of programming techniques. Code is not an auto generated, hence programming skills required to write it in a structured and logical manner. SAP query report is a report which users can generate without knowledge of ABAP programming language. Normally Functional Consultants use these ABAP query tool to create and run simple reports by themselves instead of coded by an ABAPer. It is flexible and convenient. However it is required some knowledge about different tables in order to map, join and fetch data.

Page 1

Difference between Query quick Viewer (SQVI) and SAP query builder for User groups (SQ01/SQ02/SQ03)
SQVI and SQ01 are similar but not the same. Both have the same basic join functionality. SQ01 is a saved query which allowing to be accessed by different users, SQVI can only access by the user who wrote the query. (Need to transport for public access) SQ01 allows for additional fields to be defined and populated, SQVI only allow for the use of fields already defined in the tables. SQ01 will automatically bring in text descriptions (such as item description or customer name) when using fields that would have a text field associated, SQVI did not. SQVI is a great learning tool, but SQ01 is much more powerful.

Generating a query using SQVI (QuickView)


Display Displays the QuickView's definition details. All screens are displayed in the same manner as if the QuickView were being changed,however no new entries can be made. Choose a name for the QuickView in the dialog box and confirm your entry. Choose another name for the QuickView in the dialog box and confirm your entry. Deletes the QuickView after asking you if you really want to. display The principle structure of the list created by the QuickView is displayed.

Copy Rename Delete Layout

Creating QuickViews
To create a QuickView, proceed as follows: 1. 2. 3. 4. 5. Call the QuickViewer using System Services QuickViewer (or transaction SQVI). Enter the name of the QuickView. QuickView names can contain a maximum of 14 characters. Choose Create: Enter a title for the QuickView and remarks but it is only mandatory for title. You do not have to base your list upon a table. Use the possible entries in the Data source field to select another data source. You may choose logical databases or Info set. In addition, you may also create table joins. Choose Basis mode if you want to create the list directly with no list design. Choose Layout mode if you want to define list layout yourself.

6.

Page 2

Selecting a Data Source


The first step in creating a QuickView is selecting its data source. You can choose one of the following: Table Logical database Info set Table join Logical databases, Info set, and table joins are all different techniques for consolidating data from multiple database tables. Logical databases are pre-defined paths for accessing database tables. These paths can be made available to various reports in the form of code. Logical databases are especially useful if the structure of the data you want to read corresponds to a hierarchical view. This can be realized using a logical database. Info sets are used in SAP Query (SQ01). Info sets can be based upon logical databases, among other things. Since the number of fields in a logical database can be extremely large, you can also hide fields.

Page 3

Multiple tables can be linked together to form a join. The result set is a table, each of the lines of which contains all the fields of all the tables used in the join. Hierarchical relationships between tables cannot be analyzed using a table join. Table joins must be defined before beginning with QuickView construction.

Selecting List Fields


You choose what fields you want to appear on your list on the following screen. Select Available fields that you need for your list from the table control on the right. The Column left allows you to transfer fields into the table control on the left. If you want to accept all available fields in your list, use the Page left double-arrow. Page right allows you to reset this selection. Determine in which order you want your fields to be output. If you want to move a field forward in the sequence, select it and choose the Previous entry (Arrow pointing upwards). Use the downward arrow to pass fields down the list The Technical name <> Long text pushbutton in the application toolbar allows you to switch between a field's technical name and long text whenever you want to.

Page 4

Determining the Sort Sequence


Choose the tab Sort sequence. Here you can determine list sorting and output criteria. Select sort fields in the table control located on the right. When you have found the fields you want to sort according to, use the Column left to transfer these fields to the table control on the left. Radio buttons allow you to determine if you want to sort ascending or descending.

Selecting Selection Fields


Use the tab Selection fields to choose selection criteria in basis mode. Selection fields are displayed as input fields on selection screens before your report is executed. Users can reduce the amount of data output in the report by entering values in these fields. If you want to add a selection for a field, select that field in the right table control and transfer it to the table control on the left using the arrow key. Selection criteria for info set or logical databases are already inserted in the left table control for you.

Page 5

Headers and Footers


Basic lists are displayed in the Query Painter header first, followed by the line structures, and subsequently a footer. Two types of header lines are available, page headers and column headers. Headers and footers are independent of query structure. You can define any number of header lines. Blank header lines are not output in the list. The following functions help you edit headers and footers: To insert text, click on the header or footer. To delete a line in your header, drag the trash can icon to that line.

Function: Abbreviation: Description: &%NAME &N Name of the user processing the query &D Current date &%TIME &T Current time &%PAGE Current page number (6 characters) &%P &P Current page number (3 characters)

Page 6

Colors
You can use colors in lists to highlight specific information. Select a color from the appropriate toolbox and drag it to the line you want (not to a list field). This line is now displayed in that color.

Page 7

Vous aimerez peut-être aussi