sap query procedure (sqvi)
TRANSCRIPT
7/28/2019 Sap Query Procedure (Sqvi)
http://slidepdf.com/reader/full/sap-query-procedure-sqvi 1/8
SAP Query Step-By-Step
T-code: SQVI
For Creating New SAP Query choose “CREATE”
Give a name and click CreateHere we are creating SAP Query under the name “SAPQUERY” &
ensure the description & the Data Source is been defined. In Data Source you have four
options
1. Logical Database
2. SAP Query Info set
3. Table
4. Table Join
You can also choose “BASIS MODE” or “LAYOUT MODE”
Note: You can find the difference between “BASIS MODE” or “LAYOUT MODE” from the
following screen shots.
Here I am Selecting Basis mode and select table join if more than two tablesAfter defining
the selection criterions then you get the below screen for inserting the Tables from were you
to have extract the Query.
7/28/2019 Sap Query Procedure (Sqvi)
http://slidepdf.com/reader/full/sap-query-procedure-sqvi 2/8
Now Click on Insert table button on top, and choose the table you require. In this example
we are inserting two Tables VBRK and VBRP.
Choose Insert table Again and choose VBRP
7/28/2019 Sap Query Procedure (Sqvi)
http://slidepdf.com/reader/full/sap-query-procedure-sqvi 3/8
7/28/2019 Sap Query Procedure (Sqvi)
http://slidepdf.com/reader/full/sap-query-procedure-sqvi 4/8
Note: Ensure that when you join more than one tables the Primary keys should have
linkage as in the below case the field name “VBELN” is the primary key were it is linked in
both the tables.
Now Click on Check button for join conditions
7/28/2019 Sap Query Procedure (Sqvi)
http://slidepdf.com/reader/full/sap-query-procedure-sqvi 5/8
Once you get the message “Defined Join conditions are correct”. In the bottom
of the screen then you can go back by clicking the back button.
When you drill down you will find the list of fields used for the particular table in that we can
select whether the particular field is only the listed field or the selection field or both.
Listed field is the Output field & the selection field is the Input field which has to be keyed in
when generating the Query.
7/28/2019 Sap Query Procedure (Sqvi)
http://slidepdf.com/reader/full/sap-query-procedure-sqvi 6/8
Below screen shot is shown for Table VBRK in that few fields are been selected for Listing as
well as selection. After selecting the Listed & selected fields either by Basis or Layout mode
check out for any errors click the check button.
After clicking you ensure that you get a message “NO errors were found during consistency
checks” is seen at the bottom of the screen after seeing this message the Query can be
saved by clicking the SAVE button
7/28/2019 Sap Query Procedure (Sqvi)
http://slidepdf.com/reader/full/sap-query-procedure-sqvi 7/8
7/28/2019 Sap Query Procedure (Sqvi)
http://slidepdf.com/reader/full/sap-query-procedure-sqvi 8/8
Adjust the number of records
Below screen appears in SAP List viewer
The output: