Académique Documents
Professionnel Documents
Culture Documents
SAP AG is not the publisher of this e-book and is not responsible for it under any
aspect.
This e-book is sold as is, without warranty of any kind, either express or implied.
While every precaution has been taken in the preparation of this e-book,
www.sapficoconsultant.com assumes no responsibility for errors or omissions.
Neither is any liability assumed for damages resulting from the use of the
information or instructions contained herein. It is further stated that the publisher
is not responsible for any damage or loss to your data or your equipment that
results directly or indirectly from your use of this e-book.
INTRODUCTION..............................................................................................................4
Scenario 1 .........................................................................................................................5
1. Finding Database tables for creating queries ......................................................5
2. Create a User group ..............................................................................................19
3. Create an Infoset....................................................................................................28
4. Assign Infoset to User Group ...............................................................................40
5. Create Query...........................................................................................................42
Scenario 2 .......................................................................................................................68
1. Creating an Infoset.................................................................................................69
2. Assign Infoset to User group ................................................................................90
3. Create a Query .......................................................................................................91
SAP Query is a very powerful tool in SAP to get reports quickly without any
programming knowledge. Thus an SAP consultant does not have to depend on
an ABAP programmer to get a report developed.
2nd scenario: Information required is spread in 2 different tables. Thus you need
to create a join between the 2 tables using a common field.
To create an SAP query you need to know the database table where the
information exists.
Option 1
Option 2
Sometimes the table name is not easily available as was available in option
1.
Click on
Click
Click
Click
Click on
Click on
Click
Assign users to the user group. You need to assign the users of the particular
department to the user group.
Click on
Click
Click
Click
Click
Now we need to select fields from the table (left hand side) to the Field
Group/data fields (right hand side).
Hold the Ctrl key on the keyboard and select other fields also
By clicking
Click
Click on
Click
Click
Click
Click
Click
Click
Click
Click
Click
Click
Click
Click
Click
Click
In the above screen shot you see that the Customer text is being showing as
Customer number. We need to change this.
Click twice
Click
Click twice
Click on
By selecting
Click
Scenario 2
But that is not the case always. Information which we require is not available in a
single table and is scattered across in more than one table. In such a scenario
you need to create a join between these tables through a common field between
these tables.
We have seen earlier that the customer address information is available in the
table KNA1 and the accounting information for the customer is available in the
table KNB1. These 2 tables can be joined based on the common field customer
number in them.
1. Creating an Infoset
Click
Click
Click
Click
Click
Click
Select
Now click
Click
Click
Thereafter select all the fields you want to move on the right side.
Click
Click
Click
Click on
Click
Click
Click
Click
Click
Click twice
3. Create a Query
Click
Click
Click
Click
Click on
Click thrice
To execute a query
Select
Congrats. You are now able to create a report (Query) on your own.