Creation of Query Report with additional
Calculated Field
T-codes used in this document: SQ01, SQ02 & SQ03
Scenario: Create Report to check Condition Records updated for Equipment
Tables used to create Query Report: “A + Condition Table” (e.g. A001), KONP
Steps to create Query Report
1. Create User Group (T-code: SQ03)
2. Create Info Set (T-code: SQ02)
3. Create Query (T-code: SQ01)
Before Creation of Query, let’s understand about SAP Query – Area. There are two types of Query Areas
as mentioned below.
1. Standard Area – It is Client Specific Query and it will not create any work bench request.
2. Global Area – It is Client Independent Query.
Create User Group:
T-code: SQ03
Here, enter & create User Group (e.g. ZPM, ZFI, ZMM, ZHR etc.) to which you will assign Info set Query.
Author: Abhishek N. Bhatt Page 1
Create Info Set:
T-code: SQ02
Info Set is combination of multiple/single table.
Enter Info Set name and click on Create button.
Author: Abhishek N. Bhatt Page 2
From “Insert Table” icon (Highlighted with red border), you can join more tables.
Keep the relevant condition joined. To remove already joined condition, do right click on link and select
“Delete Link”.
Click on Info set and keep selected “Create Empty field groups”.
Author: Abhishek N. Bhatt Page 3
Select and Drag relevant fields (which are required in Selection screen OR Output of Report) from
“Data Fields” (Left Side) and drop it to relevant “Field Group” (Right Side).
After selecting required fields, click on “Generate Icon”
Note: You will need to “Generate” Info Set everytime whenever you are making any changes in that.
Then Assign one or multiple User Group to created Info Set Query. (T-code: SQ02)
Author: Abhishek N. Bhatt Page 4
Query Creation:
T-code: SQ01
After creation of Info Set and assignement to User Group, we can create Query.
Enter Query Name, Click on Create and select Info Set.
Enter Title, Notes and then Click on “Basic List”.
Author: Abhishek N. Bhatt Page 5
Here we have to define Selection Screen Fields and Output Fields.
After that by clicking on “Test” we can check that wether we are getting Quey Report according to our
requirement or not.
Author: Abhishek N. Bhatt Page 6
Query Creation with Additional Calculated Field:
T-code: SQ01
After creation of Info Set and assignement to User Group, we can create Query.
Enter Query Name, Click on Create and select Info Set.
Enter Title, Notes and then select “Field Selection” under “Goto” menu.
Author: Abhishek N. Bhatt Page 7
Then “Switch On” Short Names under “Edit” Menu.
Enter Short Name against field by using which we want to perform calculation.
Then “Create” Local Field under “Edit” Menu.
Author: Abhishek N. Bhatt Page 8
Give “Short Name” for Local Field, Enter Field Attribute and enter formula which we wanted to apply for
calculation.
We can also perform conditional calculation through “Complex Calculation” function.
Click on “OK”.
Author: Abhishek N. Bhatt Page 9
Click on “Basic List”
Here we have to define Selection Screen Fields and Output Fields. (Add Local Addition Field too, it is our
created field in which we have perform caluclation)
After that by clicking on “Test” we can check that wether we are getting Quey Report according to our
requirement or not.
Author: Abhishek N. Bhatt Page 10
Here “Rate” is Local created field in which we have perform caluclation.
Author: Abhishek N. Bhatt Page 11