Use of SQ01, SQ02, SQ03

Hai All,
         May i know that what is the use of SQ01 , SQ02, SQ03.How to use this ? How to create it ? Can we write our requirement in this ( addition to generated one )?
Plz rely .
Thanks & Regards
Prashanth
Message was edited by: Prashanth Konda

Check this link
www.sappoint.com/abap/ab4query.pdf
Example
To write ur requirement choose the option
Data retrieval by program in SQ01.
First Step is to create a dictionary structure . Include all the fields in this structure that you want to output.
Then create a report program having the following structure .
Report XXX .
TABLES tab . Declare the already created dictionary structure also here.
Parameters x . Define parameters here
Select-Options:…….
DATA :…..
DATA : BEGIN  OF itab OCCURS xxx
               END OF itab. Structure tab to hold the records to be evaluated.
*<Query_head> This comment must always appear after your data declarations
Code to define the table itab
Loop to retrieve each record and place it in itab.
SELECT,DO, LOOP ,….
If necessary , code to format data
*<Query_body> This comment must always be the last statement in the loop.
End of loop
ENDSELECT , ENDDO, ENDLOOP ,…
Following is an example report program. Here youtput_struct is the dictionary structure.
REPORT  yqueryprg                                .
TABLES: bkpf,youtput_struct.
DATA : BEGIN OF itab OCCURS 0,
       belnr LIKE bkpf-belnr,
       gjahr LIKE bkpf-gjahr,
       monat LIKE bkpf-monat,
       bukrs LIKE bkpf-bukrs,
       END OF itab.
SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-t01.
PARAMETERS: p_code LIKE bkpf-bukrs.
SELECTION-SCREEN END OF BLOCK input.
*Query head
<Query_head>
Start-of-selection.
SELECT belnr gjahr monat bukrs FROM bkpf INTO TABLE itab
WHERE bukrs = p_code.
LOOP AT itab.
  CLEAR youtput_struct.
  MOVE itab TO youtput_struct.
Query body
<Query_body>
ENDLOOP.
Save and Activate this report.
Then go to SQ02 transaction to create an infoset.
Select the option Data retrival by program
Enter datastructure name
Choose External program name as your report name.
Infoset ->Generate.
Go to SQ03 to create a user group.
Enter user group name and click on Create button.
Enter description and save it in your development class.
In the next screen , click on ‘Assign Infosets’ button.
Here you select the infoset that you have created
Save it.
Go to SQ01. Select the user group that you have created.
Then enter the query name and create. It will show the list of infoset that you have created. Choose the infoset you want.
Choose BasicList Button.
In the right side of the screen you adjust the output field width, background color etc.
Go back and select the menu option Query -> Generate Program.
Then Execute this Query.

Similar Messages

  • Infoset Queries SQ01/SQ02/SQ03

    Hi Experts,
    I am designing query using SQ01/SQ02/SQ03 where I will input either installation or rate category (both present in table EANLH). But problem here is Installation is key field for EANLH while tariff type is not. Therefore, it returns multiple rate category for single installation. Now within these multiple rate category I need to retrieve only the latest rate category (this table does contain date field BIS & AB - Date fields by using which I can select latest record).
    But my problem here is how to do this in Infoset Queries? Where I need to make changes or do some config?
    Please let me know.
    Thanks.

    Yes, but I am not able to figure exactly how to implement it? I mean I can do this same code in SE38 where I know names of the internal tables. But when in SQ02 we can't modify/read system tables (I found name of the system tables using report generated by SQ01). So how you will access them, then how you will reflect our changes in output ALV grid?
    Example:
    Data:
    Rate Cat.      Installation     Date
    71     60000984     20/10/2009
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    so in this case I want output:
    Rate Cat.      Installation     Date
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    You will see 71     60000984     20/10/2009 is not the latest one, therefore I don't want that row. I can do the ABAP logic for this, but exactly what and how to implement in SQ02?

  • Question in SAP QUERY- SQ01,SQ02,SQ03

    Hi SAP QUERY Experts,
    I have a question for the query. Is it possible using a interface parameter for report-to-report interface? I mean when I double click on one the data record of query, I want to transfer the key information of this record to the query or report or transaction as parameters. Is it possible? If yes, could you tell me how?
    This is on SQ01, SQ02,SQ03
    Thanks and Regards
    Saravana

    hi all,
    i am having one abap standard query, i have to modify that one and i have to include another colum which needs the requirment.
    07 Depreciation /SAPQUERY/AM07 ADA FIAA - DEPRECIATION
    the above i mentioned is the query, how ever i tryed this standared to copy but i am not able to connect infoset and all stuff.
    pls guide me how to insert additional colum in that standard report or query.
    pls guide me
    thanks and regards,
    sai

  • Difference bet SQVI & SQ01,SQ02, SQ03

    Hi all
    What is difference been SQVI  and SQ01,SQ02, SQ03????
    I hve alredy developed report using sqvi,
    Please tell me about sq01,sq02, sq03??????
    Regds
    ss

    Hi
    SQVI is user specific whereas SQ01... are not user specific.
    You write a qurey in SQVI and it is accessible only for you.
    But the other way in SQ01...
    Good Luck
    Hari

  • Export & import of query (SQ01/SQ02/SQ03)

    Hi,
    How to export/import SAP Query (SQ01/SQ02/SQ03) without any transport request.
    waiting for ur reply.
    Thanks in Advance,
    Pranab

    Hi,
    If you dont want to create any transport request number then you need to download/upload the query instead of import/export.
    Please follow the below steps for downloading/uploading the query
    (Go to the system from where you wnat to export the query)
    1. Goto transaction SQ02.
    2. Click on ' Transports' icon (CTRL+F3).
    3. In 'Transport action' select 'Download'.
    4. Select 4th radio button 'Transport Queris'.
    5. Enter the name your user group and query and click on execute.
    6. Give the file name and location where you want to save the query backup and click on save.
    (Now goto the system where you want to import your query)
    1. Goto SQ02 and click on 'Transports' .
    2.  In 'Transport action' select 'Upload' and click on execute.
    3. Enter/select the name of the file which you have downloaded before and click open.
    Please let me know if this is helpful.
    Regards,
    Priya Bhat

  • Interactive report using Infoset quiereis with SQ01,SQ02,SQ03.

    Hi,
             I have to create a report by using the infoset query with SQ01,SQ02 and  SQ03 Tcodes. But problem my requerment is that I have to create one interactive report with these quereis.
    Can any body tell me how to create this interactive report using infoset quereis OR are there any standard quereis which are having interactive nature.
    Pleas send me the solution and thanks in advance.
    regards,
    J.

    Yes, but I am not able to figure exactly how to implement it? I mean I can do this same code in SE38 where I know names of the internal tables. But when in SQ02 we can't modify/read system tables (I found name of the system tables using report generated by SQ01). So how you will access them, then how you will reflect our changes in output ALV grid?
    Example:
    Data:
    Rate Cat.      Installation     Date
    71     60000984     20/10/2009
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    so in this case I want output:
    Rate Cat.      Installation     Date
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    You will see 71     60000984     20/10/2009 is not the latest one, therefore I don't want that row. I can do the ABAP logic for this, but exactly what and how to implement in SQ02?

  • SQ01, SQ02 & SQ03

    Hi,
    I am creating user groups (SQ03), infosets (SQ02) and reports (SQ01) for different departments which may access the same infosets but have their own reports. The trouble I'm having is that no matter what user logs in to SQ01 they have access to run ALL SQ01 reports regardless of whether they are members of that user group or not.
    Is there a process or a particular order in which you create the user groups, infosets and reports so that any user can only access reports belonging to their user group?
    Thanks,
    Conor

    Hi,
    Generally QUERY's are User Specific (Pertaining to USER GROUP).
    Where as Reports are Global to all, Unless you restrict them with some Explicit Authorizations.
    check this link for Authorization:
    Authorisation check in ABAP Query..

  • Transport request for SAP Query - SQ01, SQ02, SQ03

    Hi Experts,
      I have a doubt, Whether we can have request for SAP Query which have created from Transaction SQ01.If Yes then How to do that....?
    Thanks in Advance,
    Chetan Joshi

    Hi,
    Use the program RSAQR3TR
    Thanks
    Naren

  • SAP Query-SQ01,SQ02,SQ03

    Hi,
    One query was created in Development client and a transaction code was created for the same and transported to QA & production. But I am unable to see the same in QA cliet or production client. this was done by SAP implementation team and i do not know what mode of transportation they had used.
    When i run the transaction code for this query in QA client it says the user Group has not been created. After analyzing the same in two clients we found that in Global area everything is same in these two clents but in Standard area the User Group is not showing.
    Can anyone give some clue as to how to rectify this issue..is it an issue related to transport or do we have to manually create in each client.
    Also let me know what is the difference between Standard area and Global area??
    Regards,
    SAPFICO

    Hi,
    sorry for using google to find the answer to your question. I must be afraid you do it next time yourself
    [Transporting Query Objects|http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/d2/cb467f455611d189710000e8322d00/content.htm]
    [Query Areas|http://help.sap.com/saphelp_nw04/helpdata/en/7f/af0c36932211d194f60000e82de14a/content.htm]
    Kind regards,
    Clemens

  • Help On SQ01,SQ02,SQ03 & SQVI

    Dear All,
    Can any body tell me where can i find tutorial or any help menu or suggest any book so that i can learn the above things.
    Please help me.
    With regards
    Ranjith Singh

    check out this link...
    http://www.experts-exchange.com/Applications/SAP/Q_21316169.html
    in case that requires a login, try the other one..
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci1073812,00.html?FromTaxonomy=%2Fpr%2F283958
    cheers,
    Ram
    Message was edited by: Ram Manohar Tiwari

  • Errors using SQ01 SQ02 and SQ03

    Hi ... I have an ECC 6.0 system with NW 7.0 ... our functionals people have to use the SQ01 SQ02 and SQ03 transactions to create an user groups for querys managment ... but in our production system I received the message "Changes to Repository or cross-client Customizing are not permitted"  , obviously our client is closed because its a production system.
    I don't have idea how to resolve this issue ?  I don't know if this issue is about basis or functional problem?
    Can anyone help me?
    Regards
    Subject modified
    Do not use CAPITALS on the subject
    Read the "Rules of Engagement"
    Edited by: Juan Reyes on May 25, 2010 4:08 PM

    Thanks Gagan
    It's working .... just I Inserted parameter AQW as 'blank' in the user parameters and that's all. I didn´t have to open the client in the scc4.
    sq01 sq02 and sqo3 are working
    thanks a lot for your note
    regards

  • SAP Query (SQ01/SQ02/SQ3)

    Hi Experts,
    I have created query (SQ01/SQ02/SQ03) to display below fields: Hazard Code, Device Location Number, Hazard Code Description, Loc. Created by, Loc. Created on Date.
    Now in the output list I want to display a summary of all the count of records by the key characteristic for the query. For example, the Device Location by Hazard Codes query should give us a summary of the count of all device locations per each hazard code.
    Practical Scenario:
    Device Location Hazard Code
    40002748              01
    40002751              05
    40002481              07
    40002746              04
    40002749              04
    40002994              01
    Then in this case it should either display additional third column or additional row saying:
    Device Location Hazard Code
    40002748              01
    40002994              01
    Total Hazard Count: 2
    40002746              04
    40002749              04
    Total Hazard Count: 4
    40002751              05
    40002481              07
    or
    Device Location Hazard Code Total Count
    40002748              01                
    40002994              01                 2
    40002746              04
    40002749              04                 2
    40002751              05                 1
    40002481              07                 1
    I checked statistic tab present in SQ01 also URL [http://help.sap.com/erp2005_ehp_02/helpdata/en/d2/cb4256455611d189710000e8322d00/frameset.htm] but still I am not able to figure out how to display this data.
    Please let me know.
    Thanks

    Hi,
    If you're getting the output in ALV Display, you can simply click on the location column & then click on the Sub-Total button on the ALV toolbar, it will sort all the records according to the location (1 or 2 or...) & give you the total/count of the particular location.
    For any further clarification, let me know.
    Prateek

  • Convert query made u200Bu200Bin SQ01, SQ02 and SQ03 for a transaction set

    Hello people, how do I create a transaction for a report I did in queries with the transaction SQ01, SQ02 and SQ03? ...
    hugs

    Hi Stelio Mucavele
    i had the same issue resolved by below steps
    1>go to SQVI t code and  enter your query name and press enter
    2>In the menu path select Quick view--> additional functions-->Generate Program
    3>After Generating the program In the menu path select Quick view--> additional functions-->Display report Name
    4>Now in se38 enter the report name in Program field and execute
    5>You will get the Initial Selection screen of the report . Go to Menu of System -->Status
    6> Note down the Program name and Screen number
    7>Go to SE93 and Create a Z tcode for the query, Enter the description  and importantly you have to select the 2nd Option radio Button Program and Selection Screen (Report Transaction) and Press enter
    8>In the next screen enter the Report name In Program field and enter the screen number
    9>In the classification Section select Professional user  Transaction
    10>In GUI support section select all the options  i.e SAPGUI for HTML,Java,Windows
    and save
    the system will ask for Package select your package if not there then select local object
    now execute the Z tcode your report will run sucessfully
    Regards
    Vijay hebbal

  • Utilizing SQ01 SQ02 for user report generation of production data

    I am interested in utilizing sap query transactions SQ01, SQ02, and SQ03 to create and customize end user reports that will be used  by our audit team to analyze SAP data in our production environment. My objective would be to have one person with authorization to run SQ01,02,03 and have that user create all the reports that would be required for the team to use. This way there isn't a bunch of users out there using SQ01 indiscriminately or perhaps not using it at all. I currently have authorization to run SQVI but it is limited. From what I understand there is more flexibility with SQ01 because they allow you to create calculated fields and offer more formatting options. Most of these reports would be related to finance, sales, vendor, customer, etc.
    My question is this. How do I create these custom queries and allow multiple users to access and run them? Are the queries created directly in production? Are they created in DEV and then tested in QA before being transported to Prod? I understand you can map an sap query program to a transaction and then add that to a role but isn't the program name generated by SQ01 different in every instance? I would like this code to be reproducible as I have 5 different SAP instances in which these reports would be used. Same reports, different data.
    I am looking to leverage the power of SAP query to produce meaningful reports for our team without having to use programmers to develop them from scratch. What is the optimal approach to doing this without creating a lot of hassles and without creating additional security risks?
    If I create a query based on SAP tables I have access to does the general user also have to have authorization to those tables in order for the query to run for them? In theory the entire team should have authorization to the same standard SAP tables because we all have the same roles assigned but I may have some additional tables assigned to me because I am the IT auditor. Just confirming.
    I appreciate any and all suggestions. I would like to proceed with the best solution as soon as possible.
    Thank you very much.
    Mark

    Hi Mark,
    It is best to create queries in dev rather than doing it in prd directly.
    Query user group can be used to control the access in production.
    You can have one query administrator with access to sq01,2,3 and sqvi who will assign query user group to respective users in prd so they can run these.
    BR,
    Mangesh

  • Authority Check in Queries (SQ01 / SQ02)

    Hi Friends.
    When I run a query (sq01 / sq02) , E.G. that contain the table MARC, the user can select all the plants, but he only must have access to plant "1000". In their roles / profiles, the basis only set authorisation to plant "1000".
    I can resctrict the selection via abab code in the RECORD PROCESSING step of the INFOSET, but I want to know if exist a standar way to restrict this kind of authorisations in queries.
    pls, any help will be nice!
    thanks!
    Edited by: ARTURO SENOSAIN on Jan 20, 2009 4:10 PM

    Use the logical database as the data source for the query:
    " < ... > you should always use logical databases as the data source within InfoSets that are used for query-based reporting. Using a logical database as your data source guarantees that the SAP solution is smart enough to know which areas of the data a user is allowed to see so that only the appropriate data will show in an SAP query report. Regardless of what type of security access the person who created the report has, the system is smart enough to display only the appropriate data for the user executing the report. (Note that this is the case only when logical databases are used as the data source if a SAP query is created using an InfoSet that is based on anything other than a logical database (for example, a table, a table join, a program). It is fair to say that no security whatsoever is in place when the query is run because all records within the tables are displayed in the report output.)"
    Edited by: Jelena Perfiljeva on Jan 20, 2009 5:15 PM
    Edited by: Jelena Perfiljeva on Jan 20, 2009 5:15 PM

Maybe you are looking for

  • How do i share media (music and videos) between all of my devices?

    i currently have (and attempt to use as much as possible) the following devices:  macbook pro 15", ipad 4, iphone 6 plus 64 GB, and appletv 2. i would love it if these devices would talk to each other correctly.  first came the macbook, and i took an

  • Nokia 808 camera lens not working - help

    Hi, my Nokia 808 camera shutter is not opening or closing. It is stuck in a half opened state. M is there anything I can do, before sending in for repairs, to try and reset the shutter? I can't take any photos as they end up over exposed! Thanks

  • How to know global zone in case non global zone is hung

    ....I have nongloabazone1,nongloabazone1,nongloabazone2,nongloabazone3... i am working on nongloabazone1 .. suppose i am giving remote support ... if my nongloabazone1 is hung ..i need to know the global zone on which this nongloabazone1 is installed

  • S4 does says no signal after os6 upgrade

    I installed the upgrade from my computer with no problem. Since I can only connect via 3G and where I am 3G is limited. When I dissable 3G I cannot get connected and I get No Signal on the top left of the screen. My wife did the same ios6 upgrade and

  • Can the apps on the Adobe Add-on web site be used with PSE 12/13

    Can these add-ons be used with Photoshop Elements 12/13? These programs are not in the list of Adobe programs.