Skip to Content

Dear All,

First i just give you a brief introduction about Quickviewer and SAP Query

Quickviewer : QuickViewer is a simple tool to design custom reports without the need for any programming.You can use it to design and run QuickViews (reports designed using QuickViewer) and export them to spreadsheets. Note that these reports are user specific and cannot be shared with other users.

SAP Query: SAP Query is another tool to create reports without any programming. Query has more features than QuickView. The main advantage is that a query can be shared with a group of users.

Now the business requirement is to create a report which consists of following tables

  • VBAP
  • VBAK
  • VBKD
  • LIKP

Here i will try to explain how to link this table in one report. you can create this special report with Quickviewer and SAP Query.


Creating reports with the quickviewer:

To access this tool, the path is SAP Menu –> Tools –> ABAP Workbench — > Utilities — > QuickViewer (SQVI)

  1. Go to tcode SQVI and  specify desired quickviewer name and create.
  2. A popup will appear than select ” table join” option in data source field and enter.
  3. Go to menu bar edit — > insert tables. maintain table name and enter
  4. If you want to insert a one more table follow the step 3.
  5. Go back and select the field which you want in available fields.
  6. finally save the record and execute.
  7. you can change the report layout by using “layout mode” push button before saving the quickviewr.


/wp-content/uploads/2012/04/22_94092.jpg

Creating reports with SAP Query:

Step 1 – Infosets:

    1. Create infosets with tcode SQ02 and specify desired infoset name and create.

    2. A popup will appear than select “table join using basis table” radio button and maintain one table name in white box

/wp-content/uploads/2012/04/23_94093.jpg.

    3. Go to menu bar edit — > insert tables. maintain table name and enter

    4. If you want to insert a one more table follow the step 3.

    5 .Go back and select ” create empty field groups” radio button on popup.

    6. select the required fields in data fields tab and drop into field groups.

    7. click on Generate button on top left.

   /wp-content/uploads/2012/04/24_94103.jpg

Step 2 – User Groups:

    8. create the user groups with tcode SQ03 and  specify desired user group name and create.

    9  enter the user group name on popup and save the group.

    10 .on the same screen click on ” assign users and info sets”

    11, enter the user names who is going to be use this particular record and click assign infosets on top left.

    /wp-content/uploads/2012/04/25_94104.jpg

    12 , select your infosetand save the user group.

Step 3 – Queries:

    13 create Query with tcode SQ01 and specify desired query name and create.

    14 select your infoset and click copy.

   15 enter the title /notes and click “Next screen (f6) button.

    16 select all your tables and click same next screen(f6) button.

   17 select all the field witch you want and again click same next screen(f6) button.

    18 select the all fields and enter. so now you can assign the number sequence to the field

   /wp-content/uploads/2012/04/26_94105.jpg

Note: The fields SV and 1Z allow you to further control the selection parameters. If you select the SV box next to a selection field, you cannot specify a range of values in the selection screen for that field (that is to say, the To Value box is suppressed). On the other hand, if you select the 1Z box, you cannot specify multiple values in the selection screen.

   19. now you can change the layout design by selecting “Basic list” button.

/wp-content/uploads/2012/04/27_94133.jpg

    20. In the selection basic list while we enter we get the above screen, which enables you to add colours to your report , and the column adjustments, etc. Do not forget to see the whole view on data fields on top left hand side so as to enter tick marks finally to select fields which should come, in what priority come etc. You also need to add header text and footer text in the above pane, which is present as push buttons.

   21 save the query and you can test the query by selecting ‘Test” button on top left.

/wp-content/uploads/2012/04/28_94134.jpg

  22.Now you are ready to generate the report depends on your selection criteria as above.

Hope you like the document.

Regards,

Patchala.

To report this post you need to login first.

23 Comments

You must be Logged on to comment or reply to a post.

  1. Steve Sinclair

    A word of warning – although SAP Query is often described as “a tool to create reports without any programming” it needs to be remembered that in SQ02 it is possible to insert ABAP code into infosets. This creates a security risk so you need to be careful about who has access to create and maintain infosets.

    Regards

    Steve

    (0) 
  2. SP RO

    To add some ABAP code please run SQ02 for your InfoSet, hit ‘Change’ and go to Extras

    the following picture reflects the standard technical tabs:

    Extras

    Selections

    Code

    Enhancements

    please be careful – do not build a “heavy” code here, test it step-by-step…

    good luck 😉

    p.s. i can’t paste a picture (a new SCN bug??) – the Insert Image button is disabled 🙁

    (0) 
  3. Navaneetha Krishnan

    Hi,

    This is a good document for the beginners. It may please be added with the following information as the tool itself is very performance intensive and critical.

    Some tips on the use of SAP Query Infosets as we dont get all the information directly from transparent tables.

    Importance of using only the key fields as selection fields. Otherwise the performance will be severely hampered.

    Not advisable for the beginners to use this tool! as it is very critical on the system performance.

    (0) 
  4. Arindam Basu

    Thanks Patchala, for your nice document. Appreciated !

    Just a add-in, one can also add a customize t-code too for the report you created by using Quick viewer or SAP Query, which may help to get the easy access of that particular report. Go to SE93 and create t-code with the program name as generated during creation of Report and attach to that ( With 2nd option selection- Program & Selection Screen ( report transaction).  It may help user to access the report in future without going to SQVI or SQ02 t-code and directly hit the report.

    Thanks again for the nice documentation !

    Arindam.

    (0) 

Leave a Reply